Click here to Skip to main content
16,016,537 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: inherit page in asp.net Pin
Sandeep Akhare4-May-07 2:36
Sandeep Akhare4-May-07 2:36 
GeneralRe: inherit page in asp.net Pin
badgrs4-May-07 3:15
badgrs4-May-07 3:15 
GeneralRe: inherit page in asp.net Pin
Sandeep Akhare4-May-07 3:21
Sandeep Akhare4-May-07 3:21 
AnswerRe: inherit page in asp.net Pin
Sherin Iranimose8-May-07 1:10
Sherin Iranimose8-May-07 1:10 
QuestionEnter key press and the CheckBoxList Pin
ToddHileHoffer4-May-07 1:52
ToddHileHoffer4-May-07 1:52 
Questionautocomplete extender [modified] Pin
Sandeep_Kumbhar4-May-07 1:52
Sandeep_Kumbhar4-May-07 1:52 
AnswerRe: autocomplete extender Pin
Ibuprofen4-May-07 4:31
Ibuprofen4-May-07 4:31 
QuestionImage in a DataGrid Pin
Paul McGann4-May-07 0:26
professionalPaul McGann4-May-07 0:26 
I am trying to display images in a datagrid. I can place the image control into the datagrid ok, but when it comes to retrieving the imageurl from my sqlexpress database it doesn't load the image. Can anyone help please? Below is some of the code i have already.

<asp:DataGrid ID="dg_candidates" runat="server" AutoGenerateColumns="False" Width="600px" DataSourceID="SqlDataSource1">
<Columns>
<asp:TemplateColumn>
<ItemTemplate> <asp:Imageid="img_candidate"runat="server"AlternateText="Candidate" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.image") %>'></asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label ID="lbl_candidate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.candidate") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label ID="lbl_votes" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.votes") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<mbrsc:RowSelectorColumn></mbrsc:RowSelectorColumn>
</Columns>
</asp:DataGrid><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Conn %>"
SelectCommand="SELECT [Candidate], [Image], [Votes] FROM [Candidates]"></asp:SqlDataSource>
AnswerRe: Image in a DataGrid Pin
Chetan Ranpariya4-May-07 0:29
Chetan Ranpariya4-May-07 0:29 
GeneralRe: Image in a DataGrid Pin
Paul McGann4-May-07 2:18
professionalPaul McGann4-May-07 2:18 
GeneralRe: Image in a DataGrid Pin
Arun.Immanuel4-May-07 2:43
Arun.Immanuel4-May-07 2:43 
GeneralRe: Image in a DataGrid Pin
Chetan Ranpariya6-May-07 21:59
Chetan Ranpariya6-May-07 21:59 
Questionhow to refresh the data Pin
Kissy163-May-07 23:50
Kissy163-May-07 23:50 
AnswerRe: how to refresh the data Pin
Paddy Boyd3-May-07 23:51
Paddy Boyd3-May-07 23:51 
GeneralRe: how to refresh the data Pin
Kissy164-May-07 0:48
Kissy164-May-07 0:48 
GeneralRe: how to refresh the data Pin
marky7774-May-07 2:52
marky7774-May-07 2:52 
QuestionGridview Questions Pin
kallileo3-May-07 23:40
kallileo3-May-07 23:40 
AnswerRe: Gridview Questions Pin
Spunky Coder4-May-07 0:18
Spunky Coder4-May-07 0:18 
AnswerRe: Gridview Questions Pin
Chetan Ranpariya4-May-07 0:27
Chetan Ranpariya4-May-07 0:27 
GeneralRe: Gridview Questions Pin
kallileo4-May-07 1:20
kallileo4-May-07 1:20 
Questiondatalist control and navigation panel Pin
tradakad3-May-07 22:22
tradakad3-May-07 22:22 
AnswerRe: datalist control and navigation panel Pin
Spunky Coder3-May-07 22:30
Spunky Coder3-May-07 22:30 
GeneralRe: datalist control and navigation panel Pin
tradakad3-May-07 22:46
tradakad3-May-07 22:46 
GeneralRe: datalist control and navigation panel Pin
Spunky Coder3-May-07 22:57
Spunky Coder3-May-07 22:57 
GeneralRe: datalist control and navigation panel Pin
tradakad4-May-07 7:43
tradakad4-May-07 7:43 

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.