1 Replies - 885 Views - Last Post: 23 August 2011 - 04:25 AM Rate Topic: -----

#1 capeluto  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 14-April 11

How to retain variables in pages when load (or preload) method occurs?

Posted 22 August 2011 - 09:55 PM

Hello,

How can I retain variables info in a "global" location in a web app so that if the info in those variables comes from a web service, I only need to call the web services once, and not every time the page load method is called? I know the pages do not retain info. I am only wondering if it is possible in a page in which I am loading the same user control multiple times using ajax and passing info into the user control that comes from a web service. I do not wish to call the web service every time I am adding the user control because the drop downs all contain the same info...

THANK YOU!

Is This A Good Question/Topic? 0
  • +

Replies To: How to retain variables in pages when load (or preload) method occurs?

#2 Nakor  Icon User is offline

  • Professional Lurker
  • member icon

Reputation: 445
  • View blog
  • Posts: 1,501
  • Joined: 28-April 09

Re: How to retain variables in pages when load (or preload) method occurs?

Posted 23 August 2011 - 04:25 AM

store them in either viewstate or session
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1