Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to pass value of variable like this

Response.Redirect("http://www.onlinench.com/admin.aspx");


I not want to send from url, i want to send like session but session scope is not available on another sites page plese guide me
Posted
Updated 7-Sep-10 17:12pm
v2

1 solution

Hi VinodKumar,

You can not pass variable from one page to another, but you can pass the value of variable from one page or site to another.

Example:


Response.Redirect("http://www.onlinench.com/admin.aspx?UserName=Imdadhusen&Sex=Male");


The above example i passed two value like UserName=Imdadhusen and Sex=Male
you can access it from server side using

string strUser = Request.QueryString["UserName"];
string strSex = Request.QueryString["Sex"];


Please do let me know, if you still have problem.

Please provide your vote if this would be helpful.

Thanks,
Imdadhusen
 
Share this answer
 
Comments
VinodKumar01 7-Sep-10 23:08pm    
I not want to send from url, i want to send like session but session scope is not available on another sites page plese guide me

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