Z
Zubair.NET!
Hi,
I am working on somebody else's code built in ASP.NET/C#, during some
of the request, ASP.NET Pages refreshes twice unexpectedly.
My application runs in an IFrame with a LHS navigation tree, I am
passing querystrings using javascript on a HTML button control, which
results in performing different operations on querystring.
Button:
<input type="submit" name="DeleteYes" value="Delete" class="button"
onclick="DoPostBack('yesdelete');" style="WIDTH:95px">
_Javascript:
function DoPostBack(action)
{
document.frmDirectory.hdnAction.value = action;
document.frmDirectory.submit();
}
Using C# - switch-case statement to handle the current operation:
case "yesdelete" :
DeleteCurrentSubDirectory();
break;
Please let me know, what is causing the page to reload twice?
I am working on somebody else's code built in ASP.NET/C#, during some
of the request, ASP.NET Pages refreshes twice unexpectedly.
My application runs in an IFrame with a LHS navigation tree, I am
passing querystrings using javascript on a HTML button control, which
results in performing different operations on querystring.
Button:
<input type="submit" name="DeleteYes" value="Delete" class="button"
onclick="DoPostBack('yesdelete');" style="WIDTH:95px">
_Javascript:
function DoPostBack(action)
{
document.frmDirectory.hdnAction.value = action;
document.frmDirectory.submit();
}
Using C# - switch-case statement to handle the current operation:
case "yesdelete" :
DeleteCurrentSubDirectory();
break;
Please let me know, what is causing the page to reload twice?