Print Page | Close Window

Passing ASP.Net paramater from Client to Server

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=13597
Printed Date: 28 Apr 2024 at 6:09am


Topic: Passing ASP.Net paramater from Client to Server
Posted By: ggoodall
Subject: Passing ASP.Net paramater from Client to Server
Date Posted: 24 Jun 2011 at 10:44am
In an ASP.NET application I have a crystal report that has one parameter field that is used in the select expert.  When the webpage loads and the user selects the report name from a list of available reports, a "Parameter Fields(s)" dialogue is displayed.  It gives the name and description of the parameter field with a Value texbox that the user uses to input the value.  Also, there is a submit button below.  When a value is entered and the submit button is clicked a javascript function named submitParameterValues() is executed.  This must be a default function associated with the submit button since I didn't set up the association.  Until I added the javascript function onto the page, I received an error.  The page does not post back however and the report does not load.  The "Parameter Field(s)" dialogue continues to display.  
 
My question is how do I capture the value of the parameter and cause the postback and then get the report to generate.
 
P.S. I have other crystal reports that do NOT have parameter values that generate just fine.
 
Thanks Smile



Print Page | Close Window