Reply
How to rename ID and iterate server controls
Old 03-04-2008, 05:04 PM How to rename ID and iterate server controls
Junior Talker

Posts: 3
Say if I have the following server control in my page body

Code:
    <%  
        For j = 0 To ArrayList.GetUpperBound(0)
    %>
    <span id="Name" runat="server"></span> <br />
    <% Next %>
I can iterate thru them and create multiple sets of the above control, but how do I change the ID so that for example, ID for the first one is Name1 and then Name2 ...so on?
wolfpac is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 03-06-2008, 02:28 AM Re: How to rename ID and iterate server controls
chrishirst's Avatar
Super Moderator

Posts: 10,639
Location: Blackpool. UK
id="name<%=j%>"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to How to rename ID and iterate server controls
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.13590 seconds with 14 queries