Item Template

Visual Studio .Net


  • 1. VS 2003 Bug? Changes ID strings to numeric values...
    When we highlight a class in class view and select 'Events' in the 'Properties' window, the events under 'Menu Commands' display numeric values rather than string IDs. The other event sections display the proper string IDs. Then, when a change is made to a dialog, a quick look at the .rc file reveals that the IDE replaced all of the string IDs in the .rc file with numeric values. We found a hotfix for a similar issue with VS .NET 2002 but we're using VS .NET 2003. SW is C++ (no managed code). IDE is VS .NET 2003 (Version is 7.1.3088). Right now we can only make changes to UI components by editing the text in the .rc file with the text editor rather than the UI designer or the IDs are all changed to numeric values and we must undo the checkout of the file. Is there a hotfix for this issue in VS 2003?
  • 2. Data Connection Problem: Modify Connection Disabled & Cannot View Stored Proc
    After adding a data connection to the VS.NET 2003 Server Explorer I am unable to modify the connection. If I right-click on the data connection the Modify Connection option is disabled. Also I am unable to view or execute any stored procedures. I can see the stored procedure and view a list of the parameters but double-clicking does not display the procedure's code. With tables I am able to retrieve data but not make any changes. These problems occur with any type of data connection. I have tried both SQL Server and Oracle. I have also tried both with and without XP SP2 installed on the machine. Has anyone else run into this problem? If so, what is the fix?
  • 3. addin failed to load - class not registered
    trying to get a demo addin to work in visual studio ... used the addin wizard to create it, used configuration manager to check "build" for both the addin and setup. When I open a project I get an error message: "addin failed to load - class not registered" The name of the class is my addin. How do I register my addin class? thanks, -Steve
  • 4. C# Code Snippets not installed
    I just recently installed VS.2005 Team Edition Beta 2 and the C# code snippets do not appear to be installed? when I use the "prop" snippet and [Tab] or [Enter] nothing happens. I looked at the Code Snippet Manager and Visual Basic has plent of code snippets but then I use the combo box to view C# snippets there isn't anything there. Any help you can give me will be greatly appreciated. Thanks JoezCode

Item Template

Postby Kevin S Gallagher » Sat, 07 Jul 2007 01:08:21 GMT

I created a item template which is a form with one button sitting on a 
panel. It shows up fine in the Add new items section. Now I want to remove 
it and can not find out how too. Seems help is great for adding them but 
didn't see anything for removing them.



Re: Item Template

Postby Kevin S Gallagher » Sat, 07 Jul 2007 01:13:01 GMT

Never mind.

I find the answer under "Update an existing template" which says to work on 
the zip file under
My Documents\Visual Studio 2005\My Exported Templates\
so I simply delete the zip and it was removed from the templates.

Similar Threads:

1.How to add multiple items to Item template col of datagrid at runt


I am creating a Datagrid at runtime and I have to create all the columns of 
grid at runtime... I am facing problem in the item template column. Here I 
want to place more than one control... For example Suppose there is a 
template column tc and i want to place two drop downlist in this tc say 
DrpList1 and DrpList2... Can anyone provide me any idea how to do this... I 
am getting many examples of adding items to the item template column by 
inheriting ITemplate and it is also working... but they are only associated 
with the single a single template column... And i want multiple 
controls in a single template column...

Please suggest.........


2.Aligning the controls in the item template of the datagrid

I have got the datagrid control with item template 
property , and i want to align the textboxes or checkboxes 
in the header template of the datagrid?
When i am trying for it i am getting these controls 
aligned in the horizontal fashion . 
Is there any way to align the controls vertically?

Thank you.

3.Can't View Item Template in Designer Viewer


I creted a usercontrol which has an ITemplate in it named ItemTemplate.
 I am using ASP 2.0.

When I drag the user control on to my .aspx page everything looks fine.
 Once I add the
<ItemTemplate></ItemTemplate> tags the control no longer displays
inside the design viewer.  I can add any asp, html or other controls in
between the <ItemTemplate></ItemTemplate> and they appear when I run
the webpage.  Why do these not appear in my designer view?  Also, is
there a way so I can make the <ItemTemplate> editable in the designer
view like you can with the asp:gridview.  In the asp:gridview you are
able to click Edit Templates, select one and put whatever HTML you want
right there in the designer view.  Then click End Editing and it goes
back to the normal control view.  I am doing this with a User Control
because it saves a lot of time of trying to create my own web user
control.  I know when you create a web control you have to set up the
GetDesignerHTML() in order to see it in design view, but I didn't read
about anything like that for user controls.  All the Item template is a
place holder for the  HTML that will be defined in the .aspx page
between <ItemTemplate></ItemTemplate>.

Also, Yes I did instantiate the ItemTemplate as shown below.

 private ITemplate _itemTemplate;

    public ITemplate ItemTemplate
        get { return _itemTemplate; }
        set { _itemTemplate = value; }

    protected override void OnInit(EventArgs e)

        if (_itemTemplate != null)



Thank you,


4.Hoe to get DataList Checkbox status in item template

I want to get the status of the checkbox control in the 
item template of the DataList in the code behind

Using findcontrol i am not able to get the status of the 
checkbox . How shouls i get the status of the checkbox 
whether it is checked or not?\

Thank you

5.How to get DataList Checkbox status in item template


I am getting the error as null object reference
I am no able to get the checkbox of the datalist into the 
my checkbox ie., myCheckBox 

What could be the problem?

Thank you

>-----Original Message-----
>foreach(DataListItem item in MyDataList.Items) {
>    CheckBox myCheckBox = (CheckBox)item.FindControl
>    if (myCheckBox.Checked)
>    {
>        //do some work
>     }
>"Vannela" < XXXX@XXXXX.COM > wrote in 
>news:00b901c3c395$cb22ba20$ XXXX@XXXXX.COM ...
>> I want to get the status of the checkbox control in the
>> item template of the DataList in the code behind
>> Using findcontrol i am not able to get the status of the
>> checkbox . How shouls i get the status of the checkbox
>> whether it is checked or not?\
>> Thank you

6. item template and edit delete button

7. Change color of Item Template TextBox on Condition

8. how to get back the value from item template

Return to Visual Studio .Net


Who is online

Users browsing this forum: No registered users and 36 guest