tag:blogger.com,1999:blog-3826986716234513713.post3590715928918119622..comments2024-01-20T11:51:35.299+05:30Comments on Csharp Asp.Net Articles C# VB Tutorials Code Examples Samples: Save Store Files In Sql Database Download From GridView Asp.NetAnonymoushttp://www.blogger.com/profile/10629107305544485629noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-3826986716234513713.post-4716790001705714352014-04-06T18:18:29.796+05:302014-04-06T18:18:29.796+05:30i am getting error
String or binary data would be...i am getting error <br />String or binary data would be truncated.<br />The statement has been terminated.<br />cmd.ExecuteNonQuery();<br /><br />I have done varbinary i sql data baseAmit Kehsarwanihttps://www.blogger.com/profile/01670402493368892296noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-73288329612510690182014-03-23T09:35:34.127+05:302014-03-23T09:35:34.127+05:30Thanks for your article. Why i get error when upl...Thanks for your article. Why i get error when upload MP3 file.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-83183590138448481682012-10-03T22:32:15.364+05:302012-10-03T22:32:15.364+05:30Thanks very much, really appreaciate your helpThanks very much, really appreaciate your helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-3248627631559924602012-08-30T16:19:28.646+05:302012-08-30T16:19:28.646+05:30@Asha: Beginning ASP.NET 2.0 with C# (Wrox Publica...@Asha: Beginning ASP.NET 2.0 with C# (Wrox Publication) is good to start Anonymoushttps://www.blogger.com/profile/10629107305544485629noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-71588372914024167852012-08-29T14:56:24.640+05:302012-08-29T14:56:24.640+05:30Hi Amit,
Can you suggest me which book is good to...Hi Amit,<br /><br />Can you suggest me which book is good to learn C# .Net.Ashahttps://www.blogger.com/profile/08849247982957968097noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-77605125635216355512012-08-28T10:13:45.620+05:302012-08-28T10:13:45.620+05:30hi Amit,
thank you as you suggested i changed the...hi Amit,<br /><br />thank you as you suggested i changed the connection string now its working properly. thanks again:-)Ashahttps://www.blogger.com/profile/08849247982957968097noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-31102432787153689052012-08-23T22:08:45.659+05:302012-08-23T22:08:45.659+05:30@Asha: please check your connection string name in...@Asha: please check your connection string name in web.config file and write that instead of ConnectionStringAnonymoushttps://www.blogger.com/profile/10629107305544485629noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-19596577964339479332012-08-20T11:35:38.629+05:302012-08-20T11:35:38.629+05:30Hi,
i m getting an error can you please help me
T...Hi,<br />i m getting an error can you please help me<br /><br />The connection name 'ConnectionString' was not found in the applications configuration or the connection string is empty.<br /><br /><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" Ashahttps://www.blogger.com/profile/08849247982957968097noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-85293122455336915172012-08-16T11:00:37.056+05:302012-08-16T11:00:37.056+05:30@Avove: Create Docs folder in root of your applica...@Avove: Create Docs folder in root of your application, which as you mentioned above seems right <br /><br />There might be problem of path you are using, use <br /><br />FileStream fStream = new FileStream(Server.MapPath("<b>~\</b>Docs") + @"\" + fileName, FileMode.Create);<br /><br />And <br /><br />Response.Redirect(@"~\Docs\" + fileName);<br /><br />BTW why don&#Anonymoushttps://www.blogger.com/profile/10629107305544485629noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-55380962281357873552012-08-15T20:10:52.319+05:302012-08-15T20:10:52.319+05:30i am getting the same problem ,i placed the Docs f...i am getting the same problem ,i placed the Docs folder in<br />E:\File Download\<br /> -App_Data<br /> Database.mdf<br />-Default.aspx<br />-Docs<br /><br />can you provide me the exact location how to placeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-14409711192105901972012-08-11T18:13:39.367+05:302012-08-11T18:13:39.367+05:30@Above : You need to manually create Docs folder i...@Above : You need to manually create <b>Docs folder in root</b> of your application firstAnonymoushttps://www.blogger.com/profile/10629107305544485629noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-45772434731535269322012-08-10T18:55:00.670+05:302012-08-10T18:55:00.670+05:30i am getting this type error,i try to change the p...i am getting this type error,i try to change the path "docs" then also it is not help full,or we have to create a new folder of "docs" file in the drive..<br /><br />ERROR<br /><br />Could not find a part of the path 'E:\File Download\Docs\images.jpg'.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-60580791621762358272012-07-17T23:51:30.903+05:302012-07-17T23:51:30.903+05:30@Above: please check datatype of DocData Column of...@Above: please check datatype of DocData Column of your database table, it should be VarBinary <br /><br />Dim uploadedDocument As New SqlParameter("@DocData", SqlDbType.Binary, fileSize)<br /> uploadedDocument.Value = documentBinary<br /> cmd.Parameters.Add(uploadedDocument)<br /><br />I guess it's varchar in your table or you are using wrong column for this dataAnonymoushttps://www.blogger.com/profile/10629107305544485629noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-11047103195222168462012-07-17T22:12:46.508+05:302012-07-17T22:12:46.508+05:30Hi, I am getting the following error:
Implicit con...Hi, I am getting the following error:<br />Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query.<br /><br />on:<br /> Dim result As Integer = cmd.ExecuteNonQuery()<br /><br />Tks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-8317786849893978722012-06-25T23:51:00.245+05:302012-06-25T23:51:00.245+05:30@Above: the code shows Save As dialog, if it's...@Above: the code shows Save As dialog, if it's opening files in browser then you can check your browser settings to not open filesAnonymoushttps://www.blogger.com/profile/10629107305544485629noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-58651370372771886102012-06-25T23:16:50.584+05:302012-06-25T23:16:50.584+05:30How to save files to computer rather than loading ...How to save files to computer rather than loading the files in browser...?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-57116027480519344532012-06-25T23:13:57.379+05:302012-06-25T23:13:57.379+05:30How to deny access to Docs folder created in serve...How to deny access to Docs folder created in server. Flaw in this code, user can access all files from directory listing.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-73047887309851368982012-06-17T00:24:29.836+05:302012-06-17T00:24:29.836+05:30@Above: plz check html source of gridview, it shou...@Above: plz check html source of gridview, it should have command property defined for button <br /><br />asp:ButtonField ButtonType="Image" <br /> ImageUrl="~/download.png" <br /> <b>CommandName="Download"</b> <br /> HeaderText="Download"<br /><br />btw did you try the source code attached with this article ?Anonymoushttps://www.blogger.com/profile/10629107305544485629noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-48967171438635283872012-06-16T21:59:55.238+05:302012-06-16T21:59:55.238+05:30Getting an error:Input string was not in a correct...Getting an error:Input string was not in a correct format. for the statement int index = Convert.ToInt32(e.CommandArgument);<br />please help me!Niranjan Reddyhttps://www.blogger.com/profile/05991238073790373521noreply@blogger.comtag:blogger.com,1999:blog-3826986716234513713.post-22901235313140710822012-03-14T21:22:17.081+05:302012-03-14T21:22:17.081+05:30Thanks, this helped me download an image field int...Thanks, this helped me download an image field into an excel file.Anonymoushttps://www.blogger.com/profile/09292634721159742880noreply@blogger.com