variable problem

  • Thread starter Thread starter kishanhathiwala
  • Start date Start date
K

kishanhathiwala

i want to use one variable, say var1, declared in some page, say
page1.aspx, in another page, say page2.aspx? can anybody guide me?

kishan
 
This sounds like you need to store the value in session instead.
page2.aspx has no real awareness of page1.aspx at runtime.
 
Are you redirecting the user to page2 from page1 through either a
Response.Redirect or a hyperlink on the page? If so, you could use pass the
value through to page2 using a query string otherwise session state is
probably the way to go.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top