|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem programmatically creating tabstrip webcontrolI am trying to programmatically build a tabstrip (creating a template
class for my site that contains a tabstrip in the header). I'm using the tabstrip from "Microsoft.web.ui.webcontrol" (iewebcontrols). Now my problem is how to add HTML for this control to my asp.net page using literalControls? Just do
Page_Load(...) { Initialize(your_tab_strip_control); Controls.Add(your_tab_strip_control); } HTH CHeers, Gaurav Vaish http://mastergaurav.org http://mastergaurav.blogspot.com ---------------------------- Thanks for ur reply. but now problem is how to catch its event i tried
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load DrawTabStrip() AddHandler MyTabStrip.SelectedIndexChange, AddressOf MyTabStrip_SelectedIndexChange End Sub Private Sub MyTabStrip_SelectedIndexChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabStrip1.SelectedIndexChange If MyTabStrip.SelectedIndex = 0 Then Response.Write("A") Else Response.Write("B") End If End Sub but it gives an error "__myTabStrip_State__" is undefined. it draws it after end of HTML tag... </HTML> <?XML:NAMESPACE PREFIX="TSNS" /><?IMPORT NAMESPACE="TSNS" IMPLEMENTATION="WebControl/1_0/tabstrip.htc" /> <TSNS:TabStrip id="MyTabStrip" ... Now Please tell me how to capture the events...
) expected erro when trying to create a popup
click on TreeNode User Control, vanishes Capturing event from other custom control within another custom control Which event? DataList inside a datalist. Free TreeView Controls ? Textbox interpreting html tags (like the label) Hiding Email address edit font problem |
|||||||||||||||||||||||