Click here to Skip to main content
15,908,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I wanna send a string data with responce.redirect("ETC.aspx"). Can you help me?
Posted
Comments
Yatin chauhan 26-Jul-12 8:01am    
What you want to pass in string??? can u give more specification about that what u want actually???

Hello dude use this code may be helpful............

Response.Redirect("ETC.aspx?Name=rohan&fName=rajiv");
 
Share this answer
 
Comments
sesenyg 26-Jul-12 7:56am    
hi,
I write this code like your advise but the code could not find the address.
Can you explain more detailed?
this is my code

string X = dr[0].ToString();
Response.Redirect("ETC.aspx?Data=X ");
sanwar_mal_jat 26-Jul-12 8:11am    
Where exist your ETC.aspx page as like in root or other folder .......
sanwar_mal_jat 26-Jul-12 8:09am    
Hello Friend use this code as like......

string X = dr[0].ToString();
Response.Redirect("ETC.aspx?Data="+X);
sesenyg 26-Jul-12 8:21am    
Thank you, it solved problem perfectly:)
Sounds like you are talking of QueryString.

This will help: Passing variables between pages using QueryString[^]
 
Share this answer
 
Comments
sesenyg 26-Jul-12 8:21am    
thanks:)
Sandeep Mewara 26-Jul-12 13:25pm    
Welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900