Last post May 15, 2011 11:47 PM by cnranasinghe
May 03, 2011 11:54 AM|Inayat Rasool|LINK
I have 20 Reports which has almost 20 different parameter list for retrieval.
Is there a way to make project dynamic instead of having 20 webpages(with parameters) for different reports on the webpage?
I do need to validate parameters. Thanks.
May 04, 2011 12:00 AM|cnranasinghe|LINK
instead of creating 20 page pages, create one web page to hold the ReportViewer and create 20 Crystal Reports. Then dynamically load the physical CR file in to the Report Viewer. To display parameter section you can creat ASP.Net user controls and add to
the web page dynamically.
May 04, 2011 12:15 PM|Inayat Rasool|LINK
The project I have started/created now has 20 pages with 20 crystal reports. It works fine. So I have to remove the Aspx pages and add ascx right?
That would be 20 User controls again??
Could you please suggest me how to create user control with better validations?
I am curious if this can be done easily in ASP.NET MVC?/
thanks a lot for your suggestion.
May 05, 2011 04:05 AM|cnranasinghe|LINK
yes, your assumption is correct. You can minimize the # user controls by identifying common parameters.
also check this link for user controls for mvc
May 13, 2011 08:07 PM|Inayat Rasool|LINK
Asp.net web User controls are working fine for me. I have already minimized #user controls depending on common parameters however, I am curious to know:
1) I have 4 user controls with 6 parameters in each (after identifying common parameters). There are 2 parameters in each user control which have the same validation to be set. Can I be able to declare those properties in a common place instead of repeatedly
declaring public properties in each User control?
I was intially planning to use XML to generate parameters dynamically but keeping up with all different validations made me go to user controls.
I am really curious to know this answer. Thanks.
May 15, 2011 11:47 PM|cnranasinghe|LINK
I think you can create a seperate class for server side validation. From the usercontrol call the method in that class.