Hi all,
I am a java programmer and this is the first time I movw to asp .net. However, there is some points i couldnt find out and hopefully i can have some help from you guys.
I have form with is very long so i need to devided it to 6 pages and i want to keep all the values of previous page in cache, until the last page submitted, i will retrieve all the values and submit the form. How to achieve that? I tried Session but it didnt work, I saved one variable in the first page into Session and retrieve it in the second page but it has no value. Somehitng like this:
FIrst page: Sesssion["name"] = "lam";
Second page: string name=(string)Session["name"];
but the variable 'name' has no values.
One other thing is that I wonder if in asp .net we have the option put the whole object to a form. FOr example:
In ex.aspx.cs
class People{
string firstname;
string lastname;
//getter and settter
}
In ex.aspx:
<form action="">
<textfield id"people.firstname" runat"server" />
<textfield id"people.lastname" runat"server" />
</form>
Any help please.