PaulK
Posts: 15
|
Posted: 01/18/2006, 6:59 AM |
|
Hi,
What is the command to retrieve a parameter in ASP c#. I am basicaly trying to set a value of a text box on a before show event.
I also not sure how you set the value of text boxes in the before show event. I know in PHP i would do something like $pagename->textboxname->setValue("Value"), however im not sure how you do it in asp c#, i presume its item.itemname.setValue("value") ?
i have tried item.oppID.SetValue(Request.QueryString["opID"]) but it doesnt seem to work
|
|
|
PaulK
Posts: 15
|
Posted: 01/18/2006, 7:42 AM |
|
ok seems if i do the following
string tempVal;
tempVal = Request.QueryString["opID"];
System.Web.HttpContext.Current.Response.Write(tempVal);
it prints out the value from the query string im looking for, now i just need to know how to set the value for the textbox in the before show, anyone able to point me in the right direction?
cheers for any help
|
|
|
Stan
|
Posted: 01/18/2006, 7:44 AM |
|
You can use standard action "Retrieve Value for Control" for this.
|
|
|
PaulK
Posts: 15
|
Posted: 01/18/2006, 7:55 AM |
|
ah yeah, never looked at that, cheers Stan :)
|
|
|
|