Passing multiple form references in asp.net

  • Thread starter Thread starter amahale
  • Start date Start date
A

amahale

Hi All,

I am trying to implement paging for datalists on web forms. I have all
the code in a class so that each web form can access that class. The
code works fine when i use a single form. My query is how should I
pass the reference of each web forms to the class so that paging can be
implemented on the respective form.

E.g to simplify...

Web form1, webform2 etc with datalists.
Classtest with function1,function2
How can i pass reference of webform1,webform2,... to the class
Any help would be highly appreciated.
Thanks!
 
Hi All,

I am trying to implement paging for datalists on web forms. I have all
the code in a class so that each web form can access that class. The
code works fine when i use a single form. My query is how should I
pass the reference of each web forms to the class so that paging can be
implemented on the respective form.

E.g to simplify...

Web form1, webform2 etc with datalists.
Classtest with function1,function2
How can i pass reference of webform1,webform2,... to the class

Why would you pass webform1 to the class? Does the class do something to the
form, or does it just do something with the datalists? If the latter, then
just pass the datalist to the class.

BTW, consider whether you want to pass something to a class or to a method
in the class.

John Saunders
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top