HI,
I have 3 asp:button's in a page, two buttons are calling different other pages when they clicked and
one is to refresh the self page.
Begin.aspx:
Code:
'Lots of other stuff
<asp:button Id="doCheck" runat="server" text="Check" onClientClick="BeforeCheck()">
<asp:button Id="doRefresh" runat="server" text="Refresh">
<asp:button Id="doContinue" runat="server" text="Continue">
doCheck calls Begin.aspx with V=Y (I am passing this as query string)
dpRefresh calls Begin.aspx with V=N (or without V value)
doContinue calls Pickup.aspx
Code:
function BeforeCheck(){
//Doing some calculation here and assigning to hidden fields before submission.
theMain.action ="Begin.aspx?V=Y&NUM=<% response.write(sID)%>";
theMain.submit;
}
Problem is:
Once I click doRefresh, its working and carrying 'V' value as 'Y'
after that, if I place mouse on doRefresh button, in status bar, its showing
Begin.aspx?V=Y&NUM=12345
in button click event doRefresh_click, I assigned value for 'V' as 'N'. But this event firing after page_load..
I think its becasue I am calling self page.. in page_load I wrote Request("V").. Its taking value as 'Y'
How to solve this issue? How can I change the value of 'V' once user clicks Refresh button and then Submit..
Suggest me.