ASCX strategies

J

Jason Shohet

We have some db-search functionality that we need in several asp.net apps.
How to get reuse out of this...
I was thinking of putting the search criteria, and the datagrid that
displays the results, in an ascx control that can be plopped down in any of
our apps.

1. I'm just not sure about putting a datagrid in an ascx -- any minuses to
doing this?

2. Can an ascx can call a web service (thats where we put our ADO stuff --
where I would retrieve the ds and send it back to be put in the datagrid).
I recall trying to do this once a year ago, and it couldn't call a
service...

Thanks
Jason Shohet
 
S

S Gopikrishna

My Answers inline
-----Original Message-----
We have some db-search functionality that we need in several asp.net apps.
How to get reuse out of this...
I was thinking of putting the search criteria, and the datagrid that
displays the results, in an ascx control that can be plopped down in any of
our apps.
Perfect


1. I'm just not sure about putting a datagrid in an ascx -- any minuses to
doing this?

I can't think anything negetiove with this approach.
Infact this is one of the suggested approaches
2. Can an ascx can call a web service (thats where we put our ADO stuff --
where I would retrieve the ds and send it back to be put in the datagrid).
I recall trying to do this once a year ago, and it couldn't call a
service...

Yes Ascx can call webservice like any other ASP.NET Page
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top