Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ASCX strategies

Reply
Thread Tools

ASCX strategies

 
 
Jason Shohet
Guest
Posts: n/a
 
      11-10-2003
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



 
Reply With Quote
 
 
 
 
S Gopikrishna
Guest
Posts: n/a
 
      11-11-2003
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


>
>Thanks
>Jason Shohet
>
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TabStrip/Multipage using UserControl (.ascx) contained within a UserControl(.ascx) shaileenpatel@yahoo.com ASP .Net Web Controls 2 05-03-2005 05:01 PM
Multiple *.ascx files with a single *.ascx.cs in VS.NET 2003 Holger (David) Wagner ASP .Net 2 07-03-2004 09:23 AM
datasource of child .ascx not visible to parent .ascx Joe ASP .Net Web Controls 1 02-16-2004 07:27 AM
can a dg be added to an ascx? ascx call a ws? Jason Shohet ASP .Net 1 11-10-2003 07:08 PM
[ASCX] Add an ascx in a webcontrol... Quentin ASP .Net 1 07-29-2003 07:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57