-
Junior Member
BEst method to pass information
Hello,
a. If there are two web pages a.aspx and b.aspx if i have to pass form data from a.aspx to b.aspx what is the best way.
b. Can I use view state to persform this
-
Contributing Member
Re: BEst method to pass information
if the page contains huge data u need to approch sessions like( if it contains Datagrid'sDataset) else U can simply pass through Qurey String If u use ViewState It will consume most of the time while loading Perfomance Degradation comes in to picture. 
-
Junior Member
Re: BEst method to pass information
No,ViewState cannot be used.ViewStates are used to preserve the state of a page during postback.ie. a.aspx posting back to itself.
In your case,you can use session variables if the data is sensitive.Session variables can even be stored in a state server/sql server.
You might pass it as querystring if the data is not too large.The data is appended in a part of the URL but is open for tempering.Hence,precautions are necessary.
Cookies are also used to mentain state,but cookies are not enabled in every system,hence cookies are useful only if the data you want to store is not critical from your application perspective eg. User Preference etc.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules