Hi Luke,
This is a common user problem, they mis-type their address and the shipping delivery fails: What I need is a pop up warning window before submitting order :
protected void btnSubmitOrder_Click(object sender, EventArgs e)
{
Need a Warnning Popup before Submit code
}
This is my solution :
I added this line at PageLoad:
protected void Page_Load(object sender, EventArgs e)
{
......
btnSubmit.Attributes.Add("onclick", "return ConfirmInfo();");
<font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas">}
Then I added this JavaScript code to OnePageCheckout
<script type="text/javascript">
function ConfirmInfo() {
if (confirm("Please ensure you enter your information accurately.") == true) return true;
I NEED TO CALL btnSubmitOrder_CLICK
</script>
My questions is how to call btnsubmitOrder_click from javascript code
Thanks,
|