Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
besom
Starting Member
11 Posts |
Posted - 2005-07-15 : 05:45:55
|
1.In Webform_1 I enter Id.text=1. How i can use this value in the WebForm_2 as parameter.2.how i can use global var |
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
Posted - 2005-07-15 : 06:28:59
|
Form-Post, Session, Cookie, or Querystring |
 |
|
jhermiz
3564 Posts |
Posted - 2005-07-15 : 08:39:55
|
You can pass parameters to another page using the '?='in the web string (address bar).Then you simply do a request in webform2's page load event.Global variables should be avoided, use the web.config file if you want to store global information. Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]Imperfection living for perfection -- [url]http://jhermiz.blogspot.com/[/url] |
 |
|
TheBluePhoenix
Starting Member
4 Posts |
Posted - 2005-07-22 : 15:27:20
|
I typically use session variables for global variables but I do keep them to a minimum. If the variable is static then you can keep it in the web.config or machine.config.What exactly are you trying to do? If you just need to pass a variable from one page to another then the easiest thing is to pass it along in the url: “pagename.aspx?var1=value&var2=value” Use “&” to separate multiple variables.Are you trying to make a multi-page form? If so, then use panels. Panels rock! They allow you display or hide chunks of HTML code.-----------------------------------------Move like you have a purpose. |
 |
|
|
|
|