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 comment
https://forums.phpfreaks.com/topic/174632-aspnet-framework-page_load-question/
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.