Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting criteria and calling report
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00941623
Message ID:
00942429
Views:
15
You can pass the values as query string and use something like below to parse it in your client side script.
<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.
>
>This works OK for reports when there's no criteria, but now I have a page with to and from date entry textboxes and I want to pass that information into the page that us loaded by the javascript so that the stored procedure will return the filtered data.
>
>How can I achieve this?
>
>Thanks
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform