D
dandrew22 via DotNetMonster.com
Hi all
I'm completely new to ASP.Net and need some help please.
I'm doing some client side validation using Javascript. The relevant code is
below:
<input type="button" value="submit" onclick='return checkDetails();' />
formObj = document.forms[0]; //refers to the current form.
formObj.submit(); //submits.
It then goes off to the Main_Load function (below) in the Default.master file
(I'm using a master page).
protected void Main_Load(object sender, EventArgs e)
{
//From here I aim to call various server side code behind files to do
the maths.
}
MY QUESTION IS how do I find out when I'm in the above function whether the
function was called from this submit or another submit elsewhere? Is there
a parameter I can send with the submit or something?? Hope I make sense and
thanks in advance.
I'm completely new to ASP.Net and need some help please.
I'm doing some client side validation using Javascript. The relevant code is
below:
<input type="button" value="submit" onclick='return checkDetails();' />
formObj = document.forms[0]; //refers to the current form.
formObj.submit(); //submits.
It then goes off to the Main_Load function (below) in the Default.master file
(I'm using a master page).
protected void Main_Load(object sender, EventArgs e)
{
//From here I aim to call various server side code behind files to do
the maths.
}
MY QUESTION IS how do I find out when I'm in the above function whether the
function was called from this submit or another submit elsewhere? Is there
a parameter I can send with the submit or something?? Hope I make sense and
thanks in advance.