Alternative solution for session
Hi,
all i have project with many session variables which contains data for accessing on next page but when i refresh the page(next one) then all the session data get flush so i have to use another thing to get the last page data to the next page how do i do
without using sever.redirect and view state, cookie,
query string is there any thing like class

prasad k3 reputationPosted Oct 27, 2009, 7:08 AM EDT
umesh rakhe24 reputationPosted Oct 28, 2009, 10:48 PM EDT
naura paxRank #2,843 · 502 reputationPosted Oct 28, 2009, 11:39 PM EDT
you can also use other techniques like querystring eg:
aspx1 private void Button1_Click (object sender, System.EventArgs e) { string url; url="anotherwebform.aspx?name=" + TextBox1.Text + "&email=" + TextBox2.Text; Response.Redirect(url); } aspx2:private void Page_Load (object sender, System.EventArgs e) { Label1.Text=Request.QueryString["name"]; Label2.Text=Request.QueryString["email"]; }umesh rakhe24 reputationPosted Oct 30, 2009, 4:32 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 30, 2009, 6:56 AM EDT
session can send Objects that i not possible by other way..
as you want to pass Datatable use database
Insert the datatable data to Database's temporary table and Retrieve it to another page from DataBase:)
but Session is Better way than this according to me :)
if it helps you check "Do you like this answer"