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


Please Help Members By Posting Answers For Below Questions

What is the function of new view engine in asp.net? : asp.net mvc

734


Explain what does mvc represent in asp.net? : asp.net mvc

686


What is content place holder?

713


What are the differences between the response.write() and response.output.write()?

754


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

698


Can you explain architecture of your project ?

845


What are the new web part controls in asp.net 2.0 ?

704


Explain the asp.net mvc folder conventions? : asp.net mvc

709


How does http session work?

724


How will you load dynamic assembly?

740


What is advantage of asp.net?

731


What is Web API?

831


What is the benefit of WebAPI over WCF?

752


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

1907


How can we create a website?

713