• Answers
  • Web
Personalize Yedda, (And make Danny Happy)
People ask & answer about almost everything. Tell us what you're interested in... So we can personalize Yedda especially for you
I'm interested in:

Saving data in the client side (using asp.net hidden fileds)

I'm programing in asp.net.

When my page gets to the server side, I'm saving data in the client side (using asp.net hidden fields) in order to use it the next time the page gets to the server.

My problem is that in some pages the data isn't saved. When the page gets into the sever in the second time, the fields are empty! 

I know it should work because in some pages it has worked for me.

What can cause the data to be erased/not saved? 

 


Share Send to a friend Watch Report
 

Best Answer

 
3 helpful answers

Yes it is possible to store data in the client side on hidden fields. If you are using ASP.NET you can use the ViewState (also hidden field implementation) to store any serialized .NET objects.

You can also save your data on javascript object and then forward them to server using XML or JSON.

If you want more information you can ask me anything on my blog: http://caught-in-a-web.blogspot.com/

Hope it helps,

Rotem

Posted 2007-07-31T20:33:18Z
rockrotem was invited by Yedda to answer this question.

Helpful?(2)
Rated as Best Answer

 

All Answers

 

I think its better to use cookies to store data on the client side if you want to use it for alonger time.

Posted 2008-12-08T05:26:24Z

Sign in to participate

Got an answer for beytz? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

Tree View ASP.Net 2.0

How to use Tree View in ASP.net 2.0
Submitted by leemus   2 years ago.
  • viewed 1733 times
Last answer posted 2 years ago by profitbob


Q:

Who uses asp.net

is there any major site that uses asp.net or asp.net 2.0? i mean someone like yahoo,ebay,google, digg, anyone...?
Submitted by navotvolk   3 years ago.
  • viewed 1287 times
Last answer posted 1 month ago by Shreeram


Q:

How do I get user information?

Hello, I'm building a website in asp.net. How do I get user information? screen resolution browser type + version os + version ...
Submitted by beytz   2 years ago.
  • viewed 701 times
Last answer posted 2 years ago by beytz



» More...

Explore Related Posts in Forums

Learning .NET if you already know several languages

In programing. So, here's the million dollar question: How hard will it be to learn .NET? I know background: self taught HTML, high school class in C++, self taught PHP, self taught MySQL/db programing great tutorials. Have fun! .NET is just another programming platform. There is a bit to learning .NET...

Internet Programming Resources

I figured I'd share a few of my bookmarks: C/C++ : cpp Reference Programming in C C Tutorial C book, geared for C/C++ programmers Perl: Perl Man Page Perl Tutorial Network and CGI Programming mostly those programming using Microsoft tools.Developer Fusion has info on .net, asp, asp.net, c/c...

Will Microsoft include JScript .NET in a future version of Internet Explorer...

JScript .NET appears to be a more fully-features language than the existing version of JScript , which is the basis of ASP.NET . This is true. The article you link in rebuttal was to the .NET is generated in a remote server and communicates with the user via http over the internet. ASP.NET built
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License