I need to display image on IMAGE control at my ASP.NET page. Image is saved on SQL binary field. How can I retrive image from binary field and display on Image control? Please help me.
Dong Kim
Posts
-
How can I display image from SQL Binary field on Image control? -
How to connect PROGRESS databse?Is there anyone who knows about how to connect PROGRESS databse? How do I make connection string with ADO.NET? Please let me know.
-
How can I find user click Back Button at IE?When my asp.net code page open, there are 2 dataset object created. I need to dispose these datasets when user click back button. How can I find user click back button at IE menu? Please let me know.
-
exporting gridview data into excel, i got this error. Help~I do have that tag in aspx page coding. Anything else?
-
exporting gridview data into excel, i got this error. Help~I tried to export gridview info to excel. I got this error. Control 'grdLIST' of type 'GridView' must be placed inside a form tag with runat=server. This my gridview design. <asp:GridView ID="grdLIST" runat="server" Visible="False"> </asp:GridView> I didn't setup fields, because field name is changing due to date term. This is aspx codeing protected void cmdEXCEL_Click(object sender, EventArgs e) { Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); Response.AddHeader("content-disposition", "attachment;filename=CadilacReport.xls"); Response.Charset = string.Empty; Response.Cache.SetCacheability(System.Web.HttpCacheability.Public); Response.ContentType = "application/vnd.xls"; System.IO.StringWriter stringWrite = new System.IO.StringWriter(); HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); if (grdLIST.HeaderRow != null && grdLIST.HeaderRow.Cells != null) { for (int ct = 0; ct < grdLIST.HeaderRow.Cells.Count; ct++) { string headerText = grdLIST.HeaderRow.Cells[ct].Text; if (grdLIST.HeaderRow.Cells[ct].HasControls()) { if (grdLIST.HeaderRow.Cells[ct].Controls[0].GetType().ToString() == "System.Web.UI.WebControls.DataCountrlLinkButton") { headerText = ((LinkButton)grdLIST.HeaderRow.Cells[ct].Controls[0]).Text; } grdLIST.HeaderRow.Cells[ct].Controls.Clear(); } grdLIST.HeaderRow.Cells[ct].Text = headerText; } } if (grdLIST.FooterRow != null) { grdLIST.FooterRow.Visible = false; } grdLIST.RenderControl(htmlWrite); Response.Write(stringWrite.ToString()); Response.End(); } at grdLIST.RenderControl(htmlWrite);, I got that error. How can I solve it? Please help.
-
How can I do multi column sort dataset table?I use a dataset as a temp. table. This dataset is created during running time. After input all the data, I need to sort dataset table. How can I do multi-column sorting on dataset table? Can I use 'Select ... Order By ' on dataset table? Please let me know. Thanks
-
How can I export data from gridview to excel?I need to export to data from gridview in ASP.NET page to excel workbook at client computer. How can I do that? Can i do same way with windows application? Please let me know. Thanks.
-
For connecting network folder, how can i input user name and password?I need to get a file list from network folder in IIS server. I use ASP.NET code for this job. string[] Files; Files = Directory.GetFiles("G:\\" + cmbFILE.Text + "\\"); This is the coding. When I tried to test, It showed a error with logon failure: unknown user name or bad password. How can I input userid and password with that coding? IIS and file server within workgroup but not in domain. Please anyone can help me?
-
How can I access local computer database from ASP.NET application?if I select drive C:, does it look for in IIS server or client computer? Could you show me some example?
-
How can I access local computer database from ASP.NET application?Is there anyway to connect local computer database such as MDB or SQL express from ASP.NET application? Please let me know.
-
how can i get file list from web folder?Web folder mean virtual folder from IIS.
-
how can i get file list from web folder?I need to get file list from a web folder. How can i get file list from web folder? Please help me.
-
how to open jpeg file?I don't want to use image box unless, there is a way to show full size picture. Is there anyway to do?
-
how to open jpeg file?How can I open a jpeg file from local or network folder at IE? Please let me know.
-
how to turn popup blocker off in ASP.NET with c#?Is there any way to turm off and on popup blocker of IE within coding? Please let me know....
-
How can i open new popup IE windows in Windows Vista?cTMPSCRIPT = "<script language='javascript'>" + "window.open('frmPOPRT.aspx','P/O Preview'," + "'width=auto,height=auto,toolbar=no,menubar=yes,scrollbar=yes,resizable=yes')</script>"; ClientScript.RegisterStartupScript(this.GetType(), "Preview", cTMPSCRIPT); This is the code i used. However, when i tried with IE7 and Vista, it won't open new window. This is the error I got. Line: 61 Char: 1 Error: Invalid argument Code: 0 URL:.... How can I solve this problem? Please help me. Thanks
-
How to do print in c#?How can i do print in c#" 1> setting default printer 2> how can i do new document? 3> how can i do end document? Please help me. Thanks
-
Gridview template field. I have to click Update twice for edit mode. how can i make it work with single click?How can I do that? Please let me know little more detail.
-
how to validate check box?I'm still new at ASP.NET and java coding. How can I do that? any example?
-
Gridview template field. I have to click Update twice for edit mode. how can i make it work with single click?I have gridview for update by template field. Update activate with click twice. How can i make it work with single click? This is coding .aspx -> <asp:BoundField DataField="ITM_MGRP" HeaderText="M-Grp" ReadOnly="True" /> <asp:BoundField DataField="ITM_SGRP" HeaderText="S-Grp" ReadOnly="True" /> <asp:BoundField DataField="POD_ITEMID" HeaderText="ID" ReadOnly="True" /> <asp:BoundField DataField="ITM_DESCIP" HeaderText="Description" ReadOnly="True" /> <asp:BoundField DataField="IVD_UPC" HeaderText="UPC" ReadOnly="True"><HeaderStyle Width="0px" /><ItemStyle Width="0px" /></asp:BoundField> <asp:BoundField DataField="POD_UNIT" HeaderText="Unit" ReadOnly="True" /> <asp:BoundField DataField="POD_QTY" HeaderText="Ord Qty" ReadOnly="True"> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Left" /> </asp:BoundField> <asp:TemplateField HeaderText="Rcv Price"> <ItemTemplate> <asp:Label ID="lRCVPRI" runat="server" Text='<%# Bind("RCVPRICE") %>' Width="40px"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtRCVPRI" runat="server" Text='<% Bind("RCVPRICE") %>' Width="40px"></asp:TextBox> </EditItemTemplate> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Right" /> </asp:TemplateField> <asp:TemplateField HeaderText="Rcv Qty" > <ItemTemplate> <asp:Label ID="lRCVQTY" runat="server" Text='<%# Bind("RCVQTY") %>' Width="30px"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtRCVQTY" runat="server" Text='<% Bind("RCVQTY") %>' Width="30px"></asp:TextBox> </EditItemTemplate> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Right" /> </asp:TemplateField> &l