| | |
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 activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





