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 to sign out from forms authentication?
How can I open ashx file in mobile?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What are the ways to sending the data in ASP.NET page?
What are the advantages of using sql stored procedures instead of adhoc sql queries in an asp.net web application?
How do you sign out from forms authentication?
What is state management in asp.net with example?
Define static member?
Which is better session or viewstate?
how to write html code with ssl
What are the elements of a website?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
What are custom controls?
Difference between overriding and overloading?