<script> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return pair[1]; } } alert('Query Variable ' + variable + ' not found'); } </script> Now make a request to page.html?x=Hello <script> alert( getQueryVariable("x") ); </script>>Hi - I am struggling with a problem in my ASP.NET project. Normally I use something like this to call reports up in a new browser window...
>strpage = "MyReportPage.aspx?TransactionID=" & CType(Request("RecordID"), String) >btnPrint.Attributes.Add("onclick", "javascript: void LaunchReport('" & strPage & "')") >>In the Page_Load of MyReportPage I call my stored procedure and then call the crystal report.