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 |
 |
 |
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 |
 |
 |
|