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
What is session in asp.net?
How many types of state management are there in asp net?
Can you explain autopostback?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
If you are using components in your application, how can you handle exceptions raised in a component?
What is the use of the tag in the web.config file?
What is difference between Server.Transfer and Response.Redirect in ASP.NET?
What is an asp.net web form?
What r the asp.net list controls and diff. Between them?
How to use multiple scriptmanager controls in a web page?
Define static function?
How do you implement postback with a text box?
How do u deploy ur project?
What is a proxy in web service?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.