Solved

asp.net default textbox text

Posted on 2012-03-24
2
374 Views
Last Modified: 2012-03-24
How do you set textbox text on form load using ASP.NET not js. This will be a value obtained from request.params.
0
Comment
Question by:cehrnow
2 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 37761597
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
 

Author Closing Comment

by:cehrnow
ID: 37761661
Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question