Solved

asp.net default textbox text

Posted on 2012-03-24
2
371 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now