Dear Bill,
you are not required to add name/value pair for each control as it will not work.
the main concept of history control is it store data in browser's history as a one dimensional array.e.g.
history.add("a","a");
will add one history point. if in next step u add history.add("b","b"); it will add next history point, but when u will click on back/forward button you will be
able to recover state of one object only.i hope you understand what i mean to say.
so instead of adding individual name/value pair for control in history point create a serializable class in which you define as many field you want to store.
like
[serializable]
class myhistorypoint
{
private string name,address,phoneno,emailid,sex;
myhistorypoint()
{
name="";
address="";
phoneno=''";
emailid="";
sex="";
}
public string getname
{
get
{
getname=name;
}
set
{
name=value;
}
} and create property for other filed as well
}
now on you aspx.vb page create object of this class like
myhistorypoint newpoint=new myhistorypoint ();
and store your state in this object.now your this single object has all the state like name,address,phoneno,emailid,sex.then add this object as history point
e.g.
History1.AddHistoryPoint("mypoint", (myhistorypoint)newpoint);
now you can easily recover you entire state.
so enjoy now.
thanks
shikhar