I was just testing. I created a text box and a button in first asp.net application and on the button event i stored the value of text box in a session that got stored in database.
Now i created another asp.net application with just a text box. Now I want to call the value of the text box in the first asp.net application.
How will I do it?
I have already read all the theoretical application. If someone could write down the code for it, it would be great help.
I have used
<mode="SQLServer"
sqlConnectionString="data source=.;integrated security=true">
in web.config.
I have also successfully created the ASPState database in SQL Server 2008 R2.
protected void Button1_Click(object sender, EventArgs e)
{
Session["mydb"] = TextBox1.Text;
}
I am storing value of textbox like this. Its getting stored in the database under table "ASPStateTempSessions" in encrypted form in column SessionId.
Now I am not getting how to call this value stored in database in the text box in my second web application.
I hope you understand my problem. Please help me!!