sending two parameters over to another page

J

JJ297

I want to send Titleid and [descriptions] over to the other page how
do I do this? I know how to send one how do I add another?

Response.Redirect("checkoutItem.aspx?TitleID=" &
GridView1.SelectedValue)

Thanks!
 
A

Andrew

Response.Redirect(string.format("checkoutItem.aspx?TitleID={0}&Description={1}", GridView1.SelectedValue, DescriptionVar);
 
S

siccolo

I want to send Titleid and [descriptions] over to the other page how
do I do this?  I know how to send one how do I add another?

 Response.Redirect("checkoutItem.aspx?TitleID=" &
GridView1.SelectedValue)

Thanks!

aaa....use "&" delimeter?
Response.Redirect ("kuku.aspx?TitleID=999&SecondValue=666")
 
J

JJ297

I want to send Titleid and [descriptions] over to the other page how
do I do this?  I know how to send one how do I add another?
 Response.Redirect("checkoutItem.aspx?TitleID=" &
GridView1.SelectedValue)

aaa....use "&" delimeter?
Response.Redirect ("kuku.aspx?TitleID=999&SecondValue=666")

Tried this but it's still not working.

Response.Redirect("checkoutitem.aspx?Titleid= " & "classificationid= "
& GridView1.SelectedValue)
 
S

sloan

You should UrlEncode and UrlDecode the values as well.

http://msdn2.microsoft.com/en-us/library/system.web.httputility.urlencode.aspx



I want to send Titleid and [descriptions] over to the other page how
do I do this? I know how to send one how do I add another?
Response.Redirect("checkoutItem.aspx?TitleID=" &
GridView1.SelectedValue)

aaa....use "&" delimeter?
Response.Redirect ("kuku.aspx?TitleID=999&SecondValue=666")

Tried this but it's still not working.

Response.Redirect("checkoutitem.aspx?Titleid= " & "classificationid= "
& GridView1.SelectedValue)
 
S

siccolo

You should UrlEncode and UrlDecode the values as well.

http://msdn2.microsoft.com/en-us/library/system.web.httputility.urlen...


I want to send Titleid and [descriptions] over to the other page how
do I do this? I know how to send one how do I add another?
Response.Redirect("checkoutItem.aspx?TitleID=" &
GridView1.SelectedValue)
Thanks!
aaa....use "&" delimeter?
Response.Redirect ("kuku.aspx?TitleID=999&SecondValue=666")

Tried this but it's still not working.

Response.Redirect("checkoutitem.aspx?Titleid= " & "classificationid= "
& GridView1.SelectedValue)

there's extra "&" needed:

Response.Redirect("checkoutitem.aspx?Titleid= " & "&classificationid=
"
& GridView1.SelectedValue)
 
M

Mr. R

HI

Don't know if this make sence or not but I think the error might be because
you add SPACES between the double quat " and the &. You also us one " and
then the & you need two "" to send an empty string or maybe =& without any "
to send an empty string. Also to add " to a string you probably need to do
some thing like \". I'm new to C# but that's how you do it in C/C++.

The following line looks like VB code
Response.Redirect("checkoutitem.aspx?Titleid= " & "classificationid= " &
GridView1.SelectedValue)

I "think" the right C# code would be
Response.Redirect("checkoutitem.aspx?Titleid=" + "&classificationid=&" +
GridView1.SelectedValue );

Or is this VB Code? Then try skip the spaces only. Note that the & are
within the quated strings. How does C#ASP act on null parameters. Does ASP
act the same way as PHP?


Try This
Response.Redirect("checkoutitem.aspx?Titleid=999&classificationid=" +
GridView1.SelectedValue);

Don't forget the ";" at the end of the line. If you do it will give you a
compiler error (I guess)

Lars


"JJ297" <[email protected]> skrev i meddelandet
I want to send Titleid and [descriptions] over to the other page how
do I do this? I know how to send one how do I add another?
Response.Redirect("checkoutItem.aspx?TitleID=" &
GridView1.SelectedValue)

aaa....use "&" delimeter?
Response.Redirect ("kuku.aspx?TitleID=999&SecondValue=666")

Tried this but it's still not working.

Response.Redirect("checkoutitem.aspx?Titleid= " & "classificationid= "
& GridView1.SelectedValue)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top