S
Steve Richter
I like the idea of being able to place server controls in an assembly
and use them in all of my web applications. On the other hand I like
the ease of using an .ascx file when I write user controls.
so far in my practice drills to learn server controls I have done a lot
of rendering calls to write HTML to the HtmlTextWriter object:
protected override void Render( HtmlTextWriter InWriter )
{
InWriter.AddStyleAttribute( "font-family", "Verdana,Arial" ) ;
InWriter.RenderBeginTag( "table" ) ;
InWriter.RenderEndTag( ) ;
}
which is a lot of work. When I write a user control I can use the
..ascx file to build the control from Web Controls and other user
controls.
Should I keep on reading up on server controls? Will I learn how to
write a server control in a similar fashion to writing a user control?
thanks,
-Steve
and use them in all of my web applications. On the other hand I like
the ease of using an .ascx file when I write user controls.
so far in my practice drills to learn server controls I have done a lot
of rendering calls to write HTML to the HtmlTextWriter object:
protected override void Render( HtmlTextWriter InWriter )
{
InWriter.AddStyleAttribute( "font-family", "Verdana,Arial" ) ;
InWriter.RenderBeginTag( "table" ) ;
InWriter.RenderEndTag( ) ;
}
which is a lot of work. When I write a user control I can use the
..ascx file to build the control from Web Controls and other user
controls.
Should I keep on reading up on server controls? Will I learn how to
write a server control in a similar fashion to writing a user control?
thanks,
-Steve