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
How can we identify that the Page is Post Back?
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?
Can you change a Master Page dynamically at runtime?
how to debug web services on consumer side?
If you are using two select queries and retrieving data. how do you access second query's result set using data reader?
Where is asp.net session stored?
Can I combine classic asp and asp.net pages?
Securitywise What are the Enhancements in 2.0?
What is the difference between client-side and server-side validations in ASP.NET?
What is AutoEventWireup attribute for ?
What are the advantages of using Master Pages?
What is bound controls
What is server side session management?
What is rich control in asp.net?