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
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
Can a master page have more than one contentplaceholder?
What is the equivalent of date() and time() in asp.net?
What is the difference between response.redirect and server.transfer?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
What’s the use of “GLOBAL.ASAX” file?
What are the security types in asp.net?
What is data grid view in asp.net?
Can asp.net work on an nt server?
How does session id work?
How do you secure your configuration files to be accessed remotely by unauthorized users?
What are server-side comments in ASP.NET?
Is asp net front end or backend?
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?