Click here to Skip to main content
15,922,325 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: AutoCompleteExtender inside ModalPopupExtender Pin
Ali Al Omairi(Abu AlHassan)25-Sep-11 20:50
professionalAli Al Omairi(Abu AlHassan)25-Sep-11 20:50 
QuestionDropDownList Pin
reyhane ramezanian23-Sep-11 6:02
reyhane ramezanian23-Sep-11 6:02 
AnswerRe: DropDownList Pin
TheGreatAndPowerfulOz23-Sep-11 6:24
TheGreatAndPowerfulOz23-Sep-11 6:24 
AnswerRe: DropDownList Pin
Dalek Dave25-Sep-11 21:40
professionalDalek Dave25-Sep-11 21:40 
JokeRe: DropDownList Pin
Pravin Patil, Mumbai26-Sep-11 1:51
Pravin Patil, Mumbai26-Sep-11 1:51 
QuestionCreating a new Website Solution by using http doesn't work Pin
nstk23-Sep-11 0:57
nstk23-Sep-11 0:57 
QuestionOn data binding EntityObjects to a FormView. Pin
Brady Kelly22-Sep-11 22:46
Brady Kelly22-Sep-11 22:46 
Questionformat a string in Data Repeater (list array as a data source) Pin
Farhad Eft22-Sep-11 20:25
Farhad Eft22-Sep-11 20:25 
Hi
I have a repeater control and I used array list as the data source.
This array has only one field and it's a number to be used as the identification.


how can i format the image server control url in my data repeater to show the right image with right Id!

thank you so much


Here is my source code:

C#
List<int> lstID = new List<int>();

var query2 = context.Offers.Select(p => new { itemId = p.OfferId }).Skip(1).Take(6).ToList();

foreach (var item in query2)
{
    lstID.Add(item.itemId);
}

RepeaterOthers.DataSource = lstID;
RepeaterOthers.DataBind();



and here is where i'd like to use that offerId:

<asp:Repeater ID="RepeaterOthers" runat="server">
<ItemTemplate>
<asp:Image ID="ImageFront" runat="server" ImageUrl="~/images/{0}.jpg" />

</ItemTemplate>
</asp:Repeater>
AnswerRe: format a string in Data Repeater (list array as a data source) Pin
Parwej Ahamad22-Sep-11 23:20
professionalParwej Ahamad22-Sep-11 23:20 
GeneralRe: format a string in Data Repeater (list array as a data source) Pin
Farhad Eft22-Sep-11 23:37
Farhad Eft22-Sep-11 23:37 
GeneralRe: format a string in Data Repeater (list array as a data source) Pin
Parwej Ahamad22-Sep-11 23:41
professionalParwej Ahamad22-Sep-11 23:41 
QuestionIssue with modalpopup on master page. Pin
shock58922-Sep-11 19:23
shock58922-Sep-11 19:23 
AnswerRe: Issue with modalpopup on master page. Pin
Parwej Ahamad22-Sep-11 23:24
professionalParwej Ahamad22-Sep-11 23:24 
AnswerRe: Issue with modalpopup on master page. Pin
jagdish Bhandari23-Sep-11 1:16
jagdish Bhandari23-Sep-11 1:16 
QuestionExport dataset to Excel Pin
countmein22-Sep-11 12:10
countmein22-Sep-11 12:10 
AnswerRe: Export dataset to Excel Pin
uspatel23-Sep-11 2:47
professionaluspatel23-Sep-11 2:47 
GeneralRe: Export dataset to Excel Pin
countmein23-Sep-11 4:01
countmein23-Sep-11 4:01 
QuestionASP.NET MVC3 Pin
eddieangel22-Sep-11 11:03
eddieangel22-Sep-11 11:03 
QuestionC#.asp.net 2010 development plan Pin
Member 821751722-Sep-11 6:03
Member 821751722-Sep-11 6:03 
QuestionWant a solution for this problem Pin
Dinesh Denny22-Sep-11 3:01
Dinesh Denny22-Sep-11 3:01 
AnswerRe: Want a solution for this problem Pin
m@dhu22-Sep-11 3:48
m@dhu22-Sep-11 3:48 
AnswerRe: Want a solution for this problem Pin
Shah Rizal22-Sep-11 16:20
Shah Rizal22-Sep-11 16:20 
QuestionGet frame on another page Pin
Mugdha_Aditya22-Sep-11 2:51
Mugdha_Aditya22-Sep-11 2:51 
QuestionNeed to access physical file in iSeries by using asp.net Pin
Member 322226421-Sep-11 15:02
Member 322226421-Sep-11 15:02 
QuestionQuestion on entity class in the layer Pin
DotNetXenon21-Sep-11 9:07
DotNetXenon21-Sep-11 9:07 

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.