|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DropDownList in custom control not firing postback :(postback javascript. Country = New DropDownList Country.AutoPostBack = True but the rendered html is as below <select name="mmEditContact:Country" id="mmEditContact_Country"> Any Ideas? ========== MISC CODE SECTIONS ================ Protected Overrides Sub OnLoad(ByVal e As System.EventArgs) Me.Page.RegisterRequiresPostBack(Me) MyBase.OnLoad(e) End Sub Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter) Ctrl.RenderControl(Output) end sub Hi,
can you show a little bit longer piece of code? Does your composite control also implement INamingContainer interface (as it contains child controls)? -- Show quoteHide quoteTeemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke <FruitBatInSha***@gmail.com> wrote in message news:1139914839.279015.112680@g43g2000cwa.googlegroups.com... >I have a dropdownlist in a custom control that is not rendering the > postback javascript. > > Country = New DropDownList > Country.AutoPostBack = True > > but the rendered html is as below > > <select name="mmEditContact:Country" id="mmEditContact_Country"> > > Any Ideas? > > ========== MISC CODE SECTIONS ================ > Protected Overrides Sub OnLoad(ByVal e As System.EventArgs) > Me.Page.RegisterRequiresPostBack(Me) > MyBase.OnLoad(e) > End Sub > > Protected Overrides Sub Render(ByVal output As > System.Web.UI.HtmlTextWriter) > Ctrl.RenderControl(Output) > end sub >
CustomValidator is not firing
radiobuttonlist.selectedIndex always -1......... Checkbox in datagrid.... How to read value of a dynamically created radiobuttonlist control? DataGrid Functionality Questions Checkbox state after postback Dynamic checkbox loses checked state cancel toolbar buttonclick from client-side javascript asp:Repeater + no viewstate + DataBind() ?? Looking for graphic control to use in .NET |
|||||||||||||||||||||||