Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 12th, 2007, 05:05 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Htmlgenericcontrol

Hi All

i want to know the basic concept of htmlgenericcontrol with example?

pls help me as early as possible.



 
Old December 12th, 2007, 12:36 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

http://msdn2.microsoft.com/en-us/library/7512d0d0(VS.71).aspx

http://msdn2.microsoft.com/en-us/lib...iccontrol.aspx

 
Old December 13th, 2007, 01:05 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can make just about any HTML element a server controllable control instance:



On the server side, this will be:
protected System.Web.UI.HtmlControls.HtmlGenericControl hr1;
   or
Protected hr1 As System.Web.UI.HtmlControls.HtmlGenericControl

Some "plain" html elements map to specific types in the System.Web.UI.HtmlControls namespace such as HtmlInputHidden (<input type="hidden">), HtmlTable (<table>) and so forth.

Once you have a server side instance of these controls you can do various things, but they are limited compared to the controls found in the System.Web.UI.WebControls namespace.

-Peter









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.