Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prepopulating a form by URL

Status
Not open for further replies.

homeguard

IS-IT--Management
Jul 12, 2007
47
US
I am looking to prepopulate a form i made with ASP.Net, I used prepop function with my old reg ASP form and it works but i cant get it to work for my .Net form. Anyone know what i am doing wrong?

ASP:
Default.asp?prepop=yes&member_id=1235-456-7890&member_plan_code=United

ASP.Net:
Default.aspx?prepop=yes&TextBox1=1235-456-7890&TextBox2=United
 
You will need to pick up the informtion on load of the page and populate the text fields

Code:
    protected void Page_Load(object sender, EventArgs e)
    {
        TextBox1.Text = Request.QueryString["TextBox1"];
        TextBox2.Text = Request.QueryString["TextBox2"];
    }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top