Author Topic: ASP.NET framework - Page_Load Question  (Read 631 times)

0 Members and 1 Guest are viewing this topic.

Offline twilitegxaTopic starter

  • Devotee
  • Posts: 1,009
  • Gender: Female
  • Amor Vincit Omnia
    • View Profile
ASP.NET framework - Page_Load Question
« on: September 17, 2009, 04:33:28 PM »
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:
[
Code: [Select]
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?
PHP 5.3.0 | MySQL 5.1.36 | Apache 2.2.11