How to store without using sessions, cookies or any database
How can the data in different asp pages can be stored with out using sessions, cookies or any database.for eg like naukri registration where different pages have different fields for registration process and data storage is done only after submitting the last page. However you can revert back to edit data. I was asked this question in a recent interview.Can any one let me know how this can be done?
Re: How to store without using sessions, cookies or any database
Hi,
You can use hidden field to store your data.
....Jitendra
Re: How to store without using sessions, cookies or any database
hi,
u can use query string
Re: How to store without using sessions, cookies or any database
[QUOTE=mailtokarthik24;19235]hi,
u can use query string[/QUOTE]
but query strings have a length limitation rt?
it wont help us to store multi step data such as naukri
Re: How to store without using sessions, cookies or any database
hidden fields are the best, when navigating to and from a page, use the mechanism of parsing and de-parsing of the content of that page using some vbscript coding.
Thiks kind of situtation would generally occur in a few contigeous pages, not more... hope so !
:rolleyes:
Re: How to store without using sessions, cookies or any database
my guess would be use "URL Rewriting"
Re: How to store without using sessions, cookies or any database
By append in query string.
Re: How to store without using sessions, cookies or any database
isn't URL Rewriting and appending to query string the same?
Re: How to store without using sessions, cookies or any database
Use ViewState ... How and why find out by yourself ... and check out the Wizard component ...
Re: How to store without using sessions, cookies or any database
Every control has by def EnabledViewState = true ... it`s preservs it`s value during navigation throug the site
Re: How to store without using sessions, cookies or any database
I think history pages will be storing all the information while we r doing online
Re: How to store without using sessions, cookies or any database
By using ViewState .
ViewState can be Enabled or disabled
1 Control property- EnableViewState=true / false
2 page directive -EnableViewstate = true / false
So if you want to use viewstate be sure that viewstate is not disabled for control and in page directive
Re: How to store without using sessions, cookies or any database
i am using a gridview. I have set enableviewstate property to false. During postback RowCommand is not getting fired. What should i do to fire this event.
Re: How to store without using sessions, cookies or any database
you can store into xml file and finaly into database. hidden fields alterante is view state if you are working in asp.net