Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / September 2003

Tip: Looking for answers? Try searching our database.

Adding Server Control dynamically in CodeBehind

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Serge - 22 Sep 2003 16:46 GMT
Hi,

Is there a way to add server controls on HttpResponse
without using a PlaceHolder control?

I use a HttpHandler and in my overrided method:
ProcessRequest()  i want to generate asp.net server
controls that will be rendered in html tags...

do you know some cool web sites related to this issues?  
could someone giving me some tips of how to do it?

Thanks a lot.

Serge
John Saunders - 22 Sep 2003 17:12 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> do you know some cool web sites related to this issues?
> could someone giving me some tips of how to do it?

I think that if you want to use server controls, your HttpHandler will need
to derive from System.Web.UI.Page. You should then be able to add an
HtmlForm control to the page, and add controls to the HtmlForm's Controls
collection.
Signature

John Saunders
Internet Engineer
john.saunders@surfcontrol.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.