| John Saunders 2004-06-30, 4:00 pm |
| "Wannabe_G " <WannabeG @discussions.microsoft.com> wrote in message
news:907AE278-1709-4363-A895-7EA616361D78@microsoft.com...
> 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 in to the webform.
You may want to take a look at the resources at
ASP.NET Server Controls
(http://msdn.microsoft.com/library/d...n-us/vbcon/html
/vbconwebformscontrolssg.asp). In particular, you'll be creating a composite
control.
> And someone could please suggest the difference between
> A web ( server Control and a Custom Control).
Those are really two terms for the same thing, except that a Custom Control
is one that you create - it didn't come with .NET.
The other term which me as a newcomer was "user control". That's a
different animal, a greatly-simplified custom control with a large number of
restrictions.
You might also be interested in the following, if you'll be writing a lot of
custom controls:
"Developing Microsoft® ASP.NET Server Controls and Components" from
Microsoft Press, by Nikhil Kothari and Vandana Datye
(http://www.microsoft.com/mspress/books/5728.asp)
--
John Saunders
johnwsaundersiii at hotmail
--
John Saunders
johnwsaundersiii at hotmail
|