Tuesday, December 30, 2014

ASP.NET C# Tutorial In Urdu - State Management using Controls



Code: The code is below ....

Default.aspx


Default.aspx.cs (Code behind)


























Receive aspx


Receive.aspx.cs (Code behind)
























Happy Programming!!!

2 comments:

  1. how can we reslove this error
    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:


    Line 19: {
    Line 20: var nametxt = PreviousPage.FindControl("NameTextBox") as TextBox;
    Line 21: NameLable.Text = nametxt.Text;
    Line 22: }
    Line 23: }

    ReplyDelete
    Replies
    1. Make Default.aspx page as start page. Watch again, if you don't understand what I am talking about.

      Delete