asp.net default textbox text

How do you set textbox text on form load using ASP.NET not js. This will be a value obtained from request.params.
cehrnowAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Miguel OzConnect With a Mentor Software EngineerCommented:
Assuming your query string is newParText.

protected void Page_Load(object sender, EventArgs e)
{
  string v = Request.QueryString["newParText"];
   if(v != null && !Postback)
    TextBox1.Text = v;
}

Check:
http://www.dotnetperls.com/querystring
0
 
cehrnowAuthor Commented:
Thanks.
0
All Courses

From novice to tech pro — start learning today.