Tag Info

New answers tagged

0

If you would like the buttons not to appear with the list field iterator, the simplest way is to customize your custom rendering template (.ascx) associated to list field iterator (spct.NewFormTemplateName in your case). If you would like only "hide" them, you can achieve it via jQuery as well. I blogged about how to perform special actions in our custom ...


1

You can use the control collection using below code foreach (Control c in Page.Controls) { foreach (Control childc in c.Controls) { if (childc is TextBox) { //Use childc.Text property } else if(childc is Label) { ... } //... } }


1

The <%# %> syntax in ASP.NET is only valid in a databinding context, such as in <ItemTemplate> containers of the ListView control, or on controls for which you explicitly call the DataBind() function. Similarly frustrating, in this scenario, is that the <%= %> syntax corresponds to literal output, and cannot be used to assign values to ...


0

You can use HTML tag instead of <asp:CheckBox <input ID="myCheckBox" Checked="True" type="checkbox" /> <label><%# MyNameSpace.MySubNameSpace.StaticClass.GetTranslation("My Text") %></label>



Top 50 recent answers are included