Questions tagged [itemplate]

50 questions
0
votes
1 answer

State of checkbox lost after postback in a custom template field

I have created a custom checkbox template field by deriving it from System.Web.UI.WebControls.TemplateField. The template for this field has been created by creating a class which implements ITemplate interface. When any postback happens on the page…
Gaurav
  • 330
  • 7
  • 21
0
votes
1 answer

Creating a DataBound UserControl with an ITemplate field that supports 2-way binding i.e. <%# Bind() %>

Is it just me or is there are severe shortage of material on 2-way databinding? anyhow, my problem is, I've created a UserControl to be placed inside a FormView.InsertItemTemplate. My UserControl itself has a ITemplate field. Basically the idea is,…
Nandun
  • 1,802
  • 2
  • 20
  • 35
0
votes
1 answer

Unable to add PageIndex to the GridViewTemplate : ITemplate javascript function

I've got dynamically created GridView in code behind. Now during actual DataBinding event I've got a JavaScript function in place that is saving edited cell and its value. This all works fine without a pager, now when I add pager to GW I need to add…
Jake
  • 169
  • 2
  • 16
0
votes
2 answers

Control HTML rendered by CompositeControl Templated Server Controls

I'm building my first custom server control which inherits from CompositeControl The reason for the control is to be able to have a consistent content area (HTML elements) for multiple online applications that we develop. So instead of having to…
Jacques
  • 6,936
  • 8
  • 43
  • 102
-2
votes
1 answer

How to access methods of User Controls passed as parameter to a Constructor

I am passing an instance of UserControl as this to the Constructor of the Class which inherits the Page Class and Itemplate Interface , I am saving the instance of type userControl , Now How can I access the methods of the user Control. For Ex,…
user14567
  • 3
  • 2
1 2 3
4