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
Is asp.net different from asp? If yes, explain how?
How many web config files can be created for an application?
What is new asp.net core?
Describe session handling in a webfarm, how does it work and what are the limits?
What is the Intermittent crashing of application in production?
Where do we store our connection string in asp.net application?
i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?
What is asp.net master page?
What is a query string in a url?
What is inheritance and an how it be used, example with an example?
Can we use html in asp.net?
What is the page life cycle in asp.net?
Which browsers support the xmlhttprequest object?
What are directives in asp.net?
What describes a query?