Jump to content
  • Advertisement
Sign in to follow this  
Toolmaker

[.net] ASP.NET: Persisting state information of usercontrols?

This topic is 4253 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm currently writing my own little pager control in asp.net for a site. While most of the code is done, I'm having 1 little trouble: The control refuses to remember it's values properly, and just takes the initial values I used during creation. How do I persist this information? Also, at the moment I recreate all the controls after an index has changed. Is there a better way to do this? Toolmaker

Share this post


Link to post
Share on other sites
Advertisement
I would have to see the code, but have you tried saving the control's settings by writing them to its viewstate manually?

Share this post


Link to post
Share on other sites
Quote:
Original post by WanMaster
I would have to see the code, but have you tried saving the control's settings by writing them to its viewstate manually?


That's what I forgot, thanks. (I'm relatively new to ASPX)

I also found this article on how ASPX handles page loads, etc. Might be useful background information for anyone having the same issue.

Toolmaker

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!