in database table is thier . in that table fields are
photoid , photoname,photo... i want display image in the
gridview
Answer Posted / krishnasamy2008
Using C#(Asp.net)
-------------
<asp:TemplateColumn HeaderText ="Photo" >
<ItemTemplate>
<asp:image
</ItemTemplate>
<asp:Image ID="udphoto" ImageUrl='<%#Eval("Photo")%>'
runat="server" />
<HeaderStyle ForeColor ="blue" />
</asp:TemplateColumn>
Using Vb.Net(Asp.net)
-------------
<asp:TemplateColumn HeaderText ="Photo" >
<ItemTemplate>
<asp:image
</ItemTemplate>
<asp:Image ID="udphoto"
ImageUrl='<%#DataBinder.Eval(Container.DataItem,"Photo")%>'
runat="server" />
<HeaderStyle ForeColor ="blue" />
</asp:TemplateColumn>
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the function of new view engine in asp.net? : asp.net mvc
Explain what does mvc represent in asp.net? : asp.net mvc
What is content place holder?
What are the differences between the response.write() and response.output.write()?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
Can you explain architecture of your project ?
What are the new web part controls in asp.net 2.0 ?
Explain the asp.net mvc folder conventions? : asp.net mvc
How does http session work?
How will you load dynamic assembly?
What is advantage of asp.net?
What is Web API?
What is the benefit of WebAPI over WCF?
which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites
How can we create a website?