Click here to Skip to main content
15,039,244 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to prohibit repeated passwords in default membership? Pin
moazzamahmed29-Mar-07 10:54
Membermoazzamahmed29-Mar-07 10:54 
GeneralRe: How to prohibit repeated passwords in default membership? Pin
Not Active30-Mar-07 2:23
mentorNot Active30-Mar-07 2:23 
QuestionWriting Validation summary message from Client side script Pin
snir_ya29-Mar-07 6:32
Membersnir_ya29-Mar-07 6:32 
AnswerRe: Writing Validation summary message from Client side script Pin
Vasudevan Deepak Kumar29-Mar-07 6:45
MemberVasudevan Deepak Kumar29-Mar-07 6:45 
QuestionRe: Writing Validation summary message from Client side script Pin
snir_ya29-Mar-07 7:01
Membersnir_ya29-Mar-07 7:01 
GeneralRe: Writing Validation summary message from Client side script Pin
snir_ya29-Mar-07 7:48
Membersnir_ya29-Mar-07 7:48 
AnswerRe: Writing Validation summary message from Client side script Pin
Kunal P29-Mar-07 21:44
MemberKunal P29-Mar-07 21:44 
QuestionUsing for loops within aspx? Pin
muppet00729-Mar-07 6:26
Membermuppet00729-Mar-07 6:26 
I'm trying to save myself some time and loads of typing, and want to use a for loop to generate table rows within a DataList element.

This is what the code looks like in general:
<asp:datalist ...="">
<itemtemplate>
...
<table...>
...
<% for (int i=1; i<=10; i++) { %>
<%# DataBinder.Eval(Container.DataItem, "somefield_a_"+i.ToString())%><%# DataBinder.Eval(Container.DataItem, "somefield_b_"+i.ToString())%><%# DataBinder.Eval(Container.DataItem, "somefield_c_"+i.ToString())%><% } %>




The dots are there to make this readable, there are hundreds of fields in the data source and the template is quite large. Some of them end in _1, _2, _3 etc and rather than typing in all the rows I'd like to just specify one and let the for loop do the work for me.

I guess something like this would have been fine in ASP but it's obviously not working in .NET.

Is there any way to achieve what I'm trying to do in .NET?
AnswerRe: Using for loops within aspx? Pin
kubben29-Mar-07 6:40
Memberkubben29-Mar-07 6:40 
GeneralRe: Using for loops within aspx? Pin
muppet00729-Mar-07 6:52
Membermuppet00729-Mar-07 6:52 
GeneralRe: Using for loops within aspx? Pin
kubben29-Mar-07 7:20
Memberkubben29-Mar-07 7:20 
AnswerRe: Using for loops within aspx? Pin
Not Active29-Mar-07 7:04
mentorNot Active29-Mar-07 7:04 
Questioninserting listbox item into databse Pin
Kunal P29-Mar-07 5:43
MemberKunal P29-Mar-07 5:43 
AnswerRe: inserting listbox item into databse Pin
Not Active29-Mar-07 5:52
mentorNot Active29-Mar-07 5:52 
GeneralRe: inserting listbox item into databse Pin
Kunal P29-Mar-07 5:55
MemberKunal P29-Mar-07 5:55 
GeneralRe: inserting listbox item into databse Pin
Not Active29-Mar-07 6:08
mentorNot Active29-Mar-07 6:08 
GeneralRe: inserting listbox item into databse Pin
Kunal P29-Mar-07 6:11
MemberKunal P29-Mar-07 6:11 
QuestionServer Error in '/aspx' Application. Pin
nothingbutcat29-Mar-07 5:04
Membernothingbutcat29-Mar-07 5:04 
AnswerRe: Server Error in '/aspx' Application. Pin
Paddy Boyd29-Mar-07 5:09
MemberPaddy Boyd29-Mar-07 5:09 
GeneralRe: Server Error in '/aspx' Application. Pin
nothingbutcat29-Mar-07 5:29
Membernothingbutcat29-Mar-07 5:29 
GeneralRe: Server Error in '/aspx' Application. Pin
Paddy Boyd29-Mar-07 5:31
MemberPaddy Boyd29-Mar-07 5:31 
GeneralRe: Server Error in '/aspx' Application. Pin
Not Active29-Mar-07 5:45
mentorNot Active29-Mar-07 5:45 
GeneralRe: Server Error in '/aspx' Application. Pin
Paddy Boyd29-Mar-07 5:49
MemberPaddy Boyd29-Mar-07 5:49 
AnswerRe: Server Error in '/aspx' Application. Pin
Not Active29-Mar-07 5:49
mentorNot Active29-Mar-07 5:49 
GeneralRe: Server Error in '/aspx' Application. Pin
nothingbutcat29-Mar-07 6:50
Membernothingbutcat29-Mar-07 6:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.