CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Function in Before Build Select in a Grid

Print topic Send  topic

Author Message
zolw


Posts: 51
Posted: 05/17/2005, 7:54 PM

Hi all,

Again Imm having a little issue I dont know how to solve.

I have a page called "Search_page", this page contains 10 grids.
In every grid I am calling the Before Build Select to modify the WHERE statement. Until here everything is fine.

The problem is that I have to add like 25 lines of code that are exactly the same in all the Before Build Select in the 10 grids and I would like to call a function so I can send the parameters needed in each grid. If I can do it this way I will have 3 lines in each Before Before Select instead of 30.

The thing is I donīt know how can I add the function, every time I try it I get mutliple errors.

Any help?
Using ASP.NET with VB.NET

Thanks,
_________________
Zolw
http://www.xlso.com
View profile  Send private message
Stan
Posted: 05/17/2005, 11:46 PM

Hi

I'm suggest to place your function as Shared member into the DBUtiliy class (you can find in into the common classes, DataUtilty.vb). You should place it directly before 'DBUtility Class tail block comment. After this you can reference it as DBUtilty.FunctionName in any place of the generated code.

Stan
zolw


Posts: 51
Posted: 05/19/2005, 10:26 AM

Thanks Stan.
Worked great!!!!
_________________
Zolw
http://www.xlso.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright Đ 2003-2004 by UltraApps.com  and YesSoftware, Inc.