CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2011

    Angry throw new NotImplementedException(); not understanding

    so when im tryin to click on the button 1 error appers ..
    i also have created the other webform but i can not connect to the other wform with the button.
    i use vb 2008
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

    Server Error in '/' Application.
    The method or operation is not implemented.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NotImplementedException: The method or operation is not implemented.

    Source Error:

    Line 23: internal void Show()
    Line 24: {
    Line 25: throw new NotImplementedException();
    Line 26: }
    Line 27: }

    using System;
    using System.Collections;
    using System.Configuration;
    using System.Data;
    using System.Linq;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Linq;
    using System.Windows.Forms;

    namespace WebApplication1
    public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)


    protected void TextBox1_TextChanged(object sender, EventArgs e)


    protected void Button1_Click(object sender, EventArgs e)
    if (TextBox1.Text == "1234" && TextBox2.Text == "ari")
    WebForm1 webform1 = new WebForm1();

  2. #2
    Join Date
    May 2007

    Re: throw new NotImplementedException(); not understanding

    Why don't you change the line which does "throw new NotImplementedException ()" to make it do whatever it is you want...
    www.monotorrent.com For all your .NET bittorrent needs

    NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.

  3. #3
    Join Date
    Jun 2008

    Re: throw new NotImplementedException(); not understanding

    You have code... under your control... which throws a NotImplementedException... so, ummmm... get rid of it or implement the method?

  4. #4
    Join Date
    Feb 2011
    United States

    Re: throw new NotImplementedException(); not understanding

    This code is used:

    throw new NotImplementedException()
    when a programmer wants to write the signature for a method that is called from another subroutine but doesn't want to implement ("write the code for") the called method yet. This protects programmers from forgetting that these methods are incomplete (because they error out). If this code was not used, then the method would just be blank ("do nothing"). Thus, you should delete throw new NotImplementedException() and write code to handle what happens when that method is called.

    Does that clearly explain the issue?
    Best Regards,

    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.