| Author: Yugi 06 Aug 2008 | Member Level: Gold | Rating: Points: 3 |
urs is state management problem
use sessions to pass values from one form to other
create seession session.add("key",value); get session value
string sname=session("key").tostring();
for more queries contact yugi.it@gmail.com
|
| Author: ANIL PANDEY 06 Aug 2008 | Member Level: Diamond | Rating: Points: 4 |
u can use the Query String to pass the Value from one page to another.. or Using the Session is also the Best Idea..
u can use session like this
session("id") = "TextBox1.Text";
or Response.Redirect("form2.aspx?id="+TextBox1.Text);
hope this Will Work for u..
Thanks Anil
Thanks & Regards Anil Kumar Pandey
|
| Author: D.Jeya kumar(JK) 06 Aug 2008 | Member Level: Diamond | Rating: Points: 4 |
Hi,
Using session vairable we can share the values between any web forms.
the syntax is In vb.net
Session("Variable")="Some value" dim str as string= Session("Variable")
In c#
Session["Variable"]="Some value"; string str=Session["Variable")
Regards JK
|