How do you pass session values from one page to another ?
Answers were Sorted based on User's Feedback
Answer / pravesh chourasia
1.In first page set session variable. e.g.
Session ["Name"] = "Pravesh";
Here "Name" is name of session variable and "Pravesh" is
the value of session variable "Name".
2. In next page get the sesion variable. e.g.:-
string myName=Session["Name"].ToString();
| Is This Answer Correct ? | 98 Yes | 28 No |
Answer / hari
Get the value from Login Page where the Session Iniciated Like
Sesstion["UserID"]
and you may use this value on another page
Like
EnteredBy=Convert.Toint64(Session["UserID"])
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / vimal chauhan
response.redirect("requireform.aspx?"& txtbox1.text)
| Is This Answer Correct ? | 5 Yes | 15 No |
Answer / raja mohamed
request query:
response.redirect("requireform.aspx"?get=txtbox1.text);
requireform.aspx
txtbox2.text=get
server transfer:
dim my as string
m="value"
server.transfer("requireform.aspx"?get=m)
requireform:
dim t as string
t=page.request("m")
| Is This Answer Correct ? | 11 Yes | 34 No |
Can you please anyone explain in detailed Webservices concepts in Asp.net?
in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview
Explain how can we inherit a static member?
How you can stop the validation of ASP.NET controls from client side?
0 Answers Sans Pareil IT Services,
What is pre-init event in ASP.NET 2.0 page life cycle?
What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
What is the difference between session.abandon() vs clear()?
Where web.config file is used?
How would you enable impersonation in the web.config file?
Which protocol is used to call web service?
I’m having some trouble with cas. How can I diagnose my problem?
Describe session handling in a webfarm, how does it work and what are the limits?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)