Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Custom Controls

Reply
Thread Tools

Custom Controls

 
 
Wannabe_Geek
Guest
Posts: n/a
 
      06-30-2004
Hi
Iam new to MS .Net technology just getting along with it....I created a custom control ,which takes in a query and displays the data in a tabular format....something similar to a datagrid.

Since its a custom Control I drag and drop and use it in my Pages. I overload the render method of my Custom Control and I pass the data that is to be displayed.

Now there is a requisite I have to add a Control ( Say for ex a Dropdown List box)
Could you please suggest me how do I add a Web-Control dynamically from a Custom -Control.

And someone could please suggest the difference between
A web ( server Control and a Custom Control).

 
Reply With Quote
 
 
 
 
Mike Bell
Guest
Posts: n/a
 
      07-01-2004
I would say create a public property to your grid control that lets it know
whether to add your DDL control or not. Add your DDL control in the
CreateChildControls section of your grid control, based on that property
value. Does that make sense?

"Wannabe_Geek" <> wrote in message
news:969559D6-D859-49E6-B89D-...
> Hi
> Iam new to MS .Net technology just getting along with it....I created a

custom control ,which takes in a query and displays the data in a tabular
format....something similar to a datagrid.
>
> Since its a custom Control I drag and drop and use it in my Pages. I

overload the render method of my Custom Control and I pass the data that is
to be displayed.
>
> Now there is a requisite I have to add a Control ( Say for ex a Dropdown

List box)
> Could you please suggest me how do I add a Web-Control dynamically from a

Custom -Control.
>
> And someone could please suggest the difference between
> A web ( server Control and a Custom Control).
>




 
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
databound custom controls vs composite databound custom controls rodchar ASP .Net 0 11-26-2007 03:51 PM
Custom Controls: Import a custom namespace and use its functions within user ASP .Net 1 07-19-2007 11:03 AM
Custom Control : One custom property to array of controls anon ASP .Net Web Controls 0 01-15-2005 11:32 AM
User Controls and Custom Controls Dag ASP .Net 5 05-08-2004 07:24 AM
IntelliSense on Web User Controls and Web Custom Controls Axel Dahmen ASP .Net 1 11-12-2003 06:12 AM



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