O
OHM
Hi,
I'n new to ASP.NET and I have a question maybe someone could answer for me.
I realise that viewstate holds information about the state of the controls
such as the values of text boxes etc.
However, If I have two buttons on a form, how does ASP.NET know which one I
clicked on as they both submit. It cannot be the viewstate which is held
in a hidden field because this is generate when the page is output on
request or postback, so what is it that tells the ASP.NET that button1 was
pressed rather than button2.
I assume that something in the Request object does this, but what ?
TIA
I'n new to ASP.NET and I have a question maybe someone could answer for me.
I realise that viewstate holds information about the state of the controls
such as the values of text boxes etc.
However, If I have two buttons on a form, how does ASP.NET know which one I
clicked on as they both submit. It cannot be the viewstate which is held
in a hidden field because this is generate when the page is output on
request or postback, so what is it that tells the ASP.NET that button1 was
pressed rather than button2.
I assume that something in the Request object does this, but what ?
TIA