Browse by Tags

Related Posts

  • Trying to add text to the Value attribute of a CustomTextBox

    Hi! I made these little test with Custom Control. As the title said it's text box. As you can see down there I overwrite the TagKey to have a TextBox. But, in my RenderControl method I try to add some text in the Value attribute of the TextBox and it's not working. Someone who know why? [DefaultProperty...
    Posted to Custom Server Controls (Forum) by dlusignan on 03-11-2008, 12:00 AM
    Filed under: HtmlTextWriterTag, AddAttribute, textbox, "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
  • Re: Retrieving all properties of control how to -asp.net

    Thanks dude, But this code help me to retrieve only one level of attributes after exicuting your code output displaying only one level atrributes & its values. I mean to say if i u look at "Font" its having sub childProperties those are not retriving. actually i have to apply this technique to datagrid...
    Posted to Custom Server Controls (Forum) by mpar16 on 11-22-2006, 12:00 AM
    Filed under: user control, user control dropdownlist, componet art nav bar, CompositeControl, control, control-composite, control-databound, Custom Validation Controls, databoundcontrol, debugging, DualList, "design-time", AddAttribute, Dynamic Control Generation, WebUserControl Child Viewstate, UserControl, web control, asp.net 1.1 controls ajax viewstate, aspx, ControlDesigner, "properties pane", usercontrol complex properties declarative syntax, custom control
  • 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
  • Composite control with Smart Panel

    Hi! After several of search in book and on the web, I did'nt find any in formation about How can I add Smart Task Panel to permit the edition of template in a custom/composite control. Does anyone know how?
    Posted to Custom Server Controls (Forum) by dlusignan on 01-16-2007, 12:00 AM
    Filed under: Composite Control, CompositeControl, designer, AddAttribute
Page 1 of 1 (6 items)