cybernation989
asked on
Retrieving QueryString Information
This is not an exam or homework
You are in charge of receiving QueryString information for the page "MyPage.aspx", (e.g. "MyPage.aspx?UserName=Bob" ). Which of the following reads the information from the QueryString and assigns the value to a label called "Label1" that has been added to the page?
1. Label1.Text = Server.QueryString("UserNa me")
2. Label1.Text = Page.QueryString("UserName ")
3. Label1.Text = HttpContext.QueryString("U serName")
4. Label1.Text = Request.QueryString("UserN ame")
You are in charge of receiving QueryString information for the page "MyPage.aspx", (e.g. "MyPage.aspx?UserName=Bob"
1. Label1.Text = Server.QueryString("UserNa
2. Label1.Text = Page.QueryString("UserName
3. Label1.Text = HttpContext.QueryString("U
4. Label1.Text = Request.QueryString("UserN
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
At first I was going to say 2 but after checking out http://www.pcreview.co.uk/forums/thread-1273353.php I would have to say 4 Since I am new to asp.net please let me know what you think
befor assigning the query string to the label it should be converted to a string
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I am sorry, but this looks too much like it, or like exam preparation.
you should be able to answer that by trying out, if necessary...