Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > can a dg be added to an ascx? ascx call a ws?

Reply
Thread Tools

can a dg be added to an ascx? ascx call a ws?

 
 
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
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      11-10-2003
> 1. I'm just not sure about putting a datagrid in an ascx -- any minuses
to
> doing this?


None whatsoever.

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


Sure can.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

" Jason Shohet" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
 
 
 
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
how come user control added to page doesn't get added to codebehind file? Bennett Haselton ASP .Net 1 11-08-2004 09:26 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
[ASCX] Add an ascx in a webcontrol... Quentin ASP .Net 1 07-29-2003 07:37 PM



Advertisments