title: How can I retrieve query string from my webpage .ASPX to my HTML file script?
body: <p>Here is my Code in my page 'Welcome.aspx.cs':</p>
  
  <pre><code>protected void Page_PreRender(object sender, EventArgs e)
  {
     string menus = string.Empty;
     if (this.hfAccessLvl.Value == string.Empty)
     {
          Response.Redirect("login.aspx");
     }          
     myMenu.Text = AlMenu("js/MyMenu.html?accesLevel=" + this.hfAccessLvl.Value + "|" + virtualDrive, "no", "400px", "100");
  }
  </code></pre>
  
  <p>In my MyMenu.html code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body runat="server"&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;head runat="server"&gt;
          &lt;meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1" /&gt;
          &lt;title&gt;Test Only&lt;/title&gt;
          &lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt;
          &lt;script language="JavaScript" src="crossbrowser.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script language="JavaScript" src="outlook.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;                        
                var o = new createOutlookBar('Bar',0,0,screenSize.width,screenSize.height,'#606060','white')
                var p
                var accessLevell = GetQueryString('accesLevel').split('|')[0]; // Get Access level of user
                var virtualDrive = GetQueryString('accesLevel').split('|')[1];  // Get Virtual drive that was set if any...
                //create first panel
                p = new createPanel('al','Nestle Web Sites');
                p.addButton('home.gif','Home','parent.location="' + virtualDrive + '/Welcome.aspx"');
                p.addButton('home.gif','Log-Out','parent.location="' + virtualDrive + '/Login.aspx"');
                o.addPanel(p);            
                o.draw();        
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now I want to get the query string value that I'd pass from Welcome.aspx.cs in my MyMenu.html script file:</p>
  
  <pre><code>var accessLevell = GetQueryString('accesLevel').split('|')[0]; 
  var virtualDrive = GetQueryString('accesLevel').split('|')[1];  
  </code></pre>