Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to convert DetailsView ItemTemplate/Label to code?

Reply
Thread Tools

How to convert DetailsView ItemTemplate/Label to code?

 
 
Pete
Guest
Posts: n/a
 
      10-15-2007
I need to convert DetailsView's ItemTemplate/Label lines from tagged
to VB code so I can loop over the 41 fields in the control.
In this example the middle 3 lines are the last ones I still need to
convert:

<aspetailsView ID="DetailsView1" runat="server"
<Fields>
<asp:TemplateField HeaderText="Field1ID"
InsertVisible="False">
<ItemTemplate>
<asp:Label ID="lblField1ID" Text='<%#
Eval("Field1ID") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Fields>
</aspetailsView>

Help in the conversion of those 3 lines would sure be appreciated!

-Pete

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
To convert to J2SE 6 or not to convert, that is the question... Jaap Java 4 07-10-2006 09:03 AM
DetailsView - Changing to Insert Mode (Not By Using the Insert Button In the DetailsView Control) Feege ASP .Net Web Controls 0 12-20-2005 12:28 AM
convert list of strings to set of regexes; convert list of strings to trie Klaus Neuner Python 7 07-26-2004 07:25 AM
Do I need to Convert with Convert.ToInt32(session("myNumber")) ? Andreas Klemt ASP .Net 1 07-23-2003 02:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57