Sample source code for JavaScript Page Processing

We have provided below sample source code for JavaScript Page Processing in Asp.Net. You can copy and paste it in your pages to create the sample application. Code for Processing Page (PageProcessor.aspx)
<html xmlns="">
<head runat="server">
    <title>Please wait...We Are Processing Your Request..</title>

        function PageOnLoad() {
            location.href = "<%=PageToLoad%>";
            document.images['imgsrc'].src = "Images/Loading.gif";

<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0" onload="PageOnLoad();">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
                <td height="50" class="NormalText" align="center" valign="bottom">
                        We are processing your request. Please wait..
                <td align="center" height="250" valign="top">
                    <img src="" name="imgsrc" />
Source Code of code-behind file (PageProcessor.aspx.cs)
  protected string PageToLoad;

    protected void Page_Load(object sender, EventArgs e)
        PageToLoad = Request.QueryString["PageId"];

Post a Comment


Close Menu