Browse by Tags

Related Posts

  • Re: Custom Button Rendering

    Inherit from Button Class and override RenderBeginTag & RenderEndTag methods this way: public virtual void RenderBeginTag(HtmlTextWriter writer) { writer.RenderBeginTag(HtmlTextWriterTag.Div); base.RenderBeginTag(writer); } public virtual void RenderEndTag(HtmlTextWriter writer) { base.RenderEndTag...
    Posted to Custom Server Controls (Forum) by mosessaur on 05-21-2007, 12:00 AM
    Filed under: RenderBeginTag, RenderEndTag, custom control
  • TreeNode.Text color customization

    i need to customize treenode text with different colors in treeview web controls. i extended TreeNode class and overrided RenderPreText as follows: protected override void RenderPreText(HtmlTextWriter writer) { writer.AddAttribute(HtmlTextWriterAttribute.Class, cssClass); writer.RenderBeginTag(HtmlTextWriterTag...
    Posted to Custom Server Controls (Forum) by antonzotov on 02-17-2007, 12:00 AM
    Filed under: RenderBeginTag, RenderEndTag, RenderPostText, RenderPreText, Server Controls, StyleSheet values, TreeNode, TreeView, Treeview web control from a Web user Control, asp.net 2.0, control, AddAttribute, CreateNode
  • How to render HTML containing ASP tags from a custom control?

    We have a custom control that retrieves HTML forms from a database and renders them to the screen. Now there is a need to add in some enhanced controls not available as standard HTML form controls (eg, a date picker composite custom control that emits javascript). Users create the HTML for these forms...
    Posted to Custom Server Controls (Forum) by ckershaw on 12-12-2006, 12:00 AM
    Filed under: RenderBeginTag, RenderEndTag, server control, control, custom control, how to, HtmlTextWriter, asp.net 2.0
  • Re: Custom TreeNode: how to implement postback?

    Solved it myself by thinking about it in a different light: I now generate the links to the pages in RenderPreText, and I add a TreeNodeSelectAction .Select to each custom TreeNode -- I also set the ImageUrl of the TreeNode and when a user clicks on that, I can access the event and do what I need to...
    Posted to Custom Server Controls (Forum) by BCdotNET on 10-17-2006, 12:00 AM
    Filed under: OnSelectedNodeChanged, RenderBeginTag, SelectAction, SelectedNode, TreeNode, TreeNodeSelectAction, TreeView, ImageToolTip, ImageUrl, AddAttribute, CreateNode, RenderPreText, RenderEndTag, SaveViewState, HtmlTextWriter, LoadViewState
  • Custom TreeNode: how to implement postback?

    I use a TreeView to display a sitemap, but I wanted next to every link a small image; when clicked, it would add the link to a list of favorites in the Profile of the site user. So I made a custom TreeNode, but I cannot figure out how to make the image postback to the page and expose an event that I...
    Posted to Custom Server Controls (Forum) by BCdotNET on 10-16-2006, 12:00 AM
    Filed under: postback, Profile, RenderBeginTag, TreeNode, TreeView, custom TreeNode, HtmlTextWriterTag, AddAttribute, RenderPreText, RenderEndTag, RenderPostText, HtmlTextWriter
Page 1 of 1 (5 items)