Jump to content

ASP.NET framework - Page_Load Question


twilitegxa

Recommended Posts

I need to add a Page_Load event handler that sets the contents of the Name text box to "name" if you are not posting back to the page. I have this:

[

protected void Page_Load(object sender, EventArgs e)
    {
        name.Text = "Name";
    }

 

But it is still showing when posting back to the page after validation. Can anyone help?

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.