| | |
image not displaying in grid view form sql server & ASP.NET. anyone help me if u knw?
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2008
Posts: 10
Reputation:
Solved Threads: 0
image not displaying in grid view form sql server & ASP.NET. anyone help me if u knw?
0
#1 Oct 28th, 2008
i have a page in which i m using grid control to display data from sql server. i have two
fields in my table.name,image in which image datatype is image.i m using an sqldatasoure for
data binding.when i run my page image not displayed in my page.only name field is displayed.
what is the problem here?give me any suggestion? thanks in advance...
i used following ASP.NET code here..
output like this:
name picture
sunset here emptybox
waterlilies empty box
fields in my table.name,image in which image datatype is image.i m using an sqldatasoure for
data binding.when i run my page image not displayed in my page.only name field is displayed.
what is the problem here?give me any suggestion? thanks in advance...
i used following ASP.NET code here..
asp.net Syntax (Toggle Plain Text)
<form id="form1" runat="server"> <div> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:uploadConnectionString %>" SelectCommand="SELECT * FROM [image]"></asp:SqlDataSource> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Style="z-index: 100; left: 82px; position: absolute; top: 146px" Width="270px"> <Columns> <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" /> <asp:ImageField DataImageUrlField="pic" HeaderText="picture" > </asp:ImageField> </Columns> </asp:GridView> </div> </form>
output like this:
name picture
sunset here emptybox
waterlilies empty box
Last edited by peter_budo; Oct 29th, 2008 at 7:23 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Re: image not displaying in grid view form sql server & ASP.NET. anyone help me if u knw?
0
#2 Oct 31st, 2008
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: What is a DLL?
- Next Thread: Problem with Crystal Report in ASP.NET
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox child class compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv form gridview gudi iis image javascript list listbox menu mouse mssql nameisnotdeclared news novell numerical opera order parent problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security select serializesmo.table sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview typeof validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xsl





