ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Zip folder containing Excel files and then download in ASP.Net<p>Hi all</p> <p>Can any one give me an idea about how to zip the folder and ask for the open save prompt in</p> <p>&nbsp;</p>, 17 Jan 2013 22:33:21 GMTWord Document Using<p>im getting the error,</p> <p>Error3Could not resolve COM reference "0002e558-0000-0000-c000-000000000046" version 1.1. Object reference not set to an instance of an object</p>, 22 Sep 2015 02:23:09 GMTWhat Software or API is needed to integrate Barcode Scanner in ASP.Net Website<p>hi</p> <p>&nbsp;please guide me the right way to using barcode scanner integrated into existing or new application.&nbsp;</p>, 23 May 2013 04:46:28 GMTWhat is Spring.Net and how to use it in ASP.Net<p><span>Hello,</span><br /><span>&nbsp;</span><br /><span>I heard the concept&nbsp;</span><strong>Spring in JAVA</strong><span>, but I found that, we have&nbsp;</span><strong>Spring in .Net also</strong><span>.</span><br /><span>If it is there,</span><strong>&nbsp;then what is it and how to use?</strong><br /><strong>Why should I use Spring.Net?<br />What will be the advantages?</strong><br /><span>&nbsp;</span><br /><span>Thank you in advance...........</span></p>, 26 Jun 2013 01:53:52 GMTWhat is OCR template and how to use it in .net application<p>i need to implement application using ocr template&nbsp; ,i am new to this concept</p> <p>so will u give any tutorial related to ocr template using rad controls ? my task is using rad controls</p> <p>in grid grid view i need to display records from database then i have to do task on&nbsp; ocr template ?please give me related tutorials related ocr templates using rad controls?</p>, 26 Jun 2013 01:49:27 GMTWatermark PDF using iTextSharp in ASP.Net<p>can you please tell me that how to add watermark to uploaded doc (pdf or image files).<br /><br />The workflow will be-<br /><br />User register at portal -&gt; user upload some required document (like financial proof or some kind) -&gt; When saving them to database -&gt; a watermark (predefined by admin at backend in admin panel as - Logo or Text) will be added to those uploaded document on top and bottom or wherever possible on the uploaded document.<br /><br />So in future when admin views the document uploaded by him in his account, it will be displayed with stamp or the whatermark. it will proof that the document is uploaded to server by user or whatever.&nbsp; :P<br /><br />Now, this we have found way to do in jpg, but in case of pdf its quite tough.. please guide.<br /><br />Thanks..:)</p>, 10 Sep 2014 04:59:01 GMTUnable to open large PDF files in browser in ASP.Net<p>&nbsp;<a href=""></a></p> <p>I tried your article which is very helpful but I can't open large .pdf file with it where is the problem</p>, 04 Aug 2014 05:16:43 GMTUnable to display PDF file in browser in ASP.Net<p>&nbsp;</p> <pre class="brush: html">&lt;asp:HyperLink ID=&#34;HyperLink7&#34; runat=&#34;server&#34; Target = &#34;_blank&#34; Text = &#34;Show PDF&#34; NavigateUrl = &#39;~/mypdf.pdf&#39;&gt;&lt;/asp:HyperLink&gt;</pre> <p>If I use this html code how to make the pdf file open in new tab in browser</p>, 17 Jul 2014 01:20:26 GMTVideo is not playing with flow player in ASP.Net<p>Hi&nbsp;</p> <p>I am storing the .mp4 video in the videos folder which i have created in the solution explorer and storing the name,path in the database. Fetching the video and appending in the DataList. But the video is not playing, I am using flowplayer plugin</p> <p>Here is my code: </p> <pre class="brush: html">&lt;asp:DataList ID=&#34;DataList1&#34; Visible=&#34;true&#34; runat=&#34;server&#34; AutoGenerateColumns=&#34;false&#34; &nbsp;&nbsp;&nbsp;&nbsp;RepeatColumns=&#34;2&#34; CellSpacing=&#34;5&#34;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;ItemTemplate&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;u&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%# Eval(&#34;Name&#34;) %&gt;&lt;/u&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;hr /&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a class=&#34;player&#34; style=&#34;height: 300px; width: 300px; display: block&#34; href=&#39;&lt;%# Eval(&#34;Path&#34;) %&gt;&#39;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/a&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;/ItemTemplate&gt; &lt;/asp:DataList&gt; &lt;script src=&#34;FlowPlayer/flowplayer-3.2.12.min.js&#34; type=&#34;text/javascript&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; flowplayer(&#34;a.player&#34;, &#34;;, { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plugins: { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pseudo: { url: &#34;FlowPlayer/flowplayer.pseudostreaming-3.2.12.swf&#34; } &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clip: { provider: &#39;pseudo&#39;, autoPlay: false}, &nbsp;&nbsp;&nbsp;&nbsp;}); &lt;/script&gt;</pre> <p>And on the page load i am binding the video </p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { &nbsp;&nbsp;&nbsp; if (!IsPostBack) &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BindGrid(); &nbsp;&nbsp;&nbsp; } } private void BindGrid() { &nbsp;&nbsp;&nbsp; string strConnString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString; &nbsp;&nbsp;&nbsp; using (SqlConnection con = new SqlConnection(strConnString)) &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (SqlCommand cmd = new SqlCommand()) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd.CommandText = "select Id, Name, Path from videopath"; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd.Connection = con; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Open(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataList1.DataSource = cmd.ExecuteReader(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataList1.DataBind(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Close(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; } }</pre> <p>&nbsp;</p>, 15 Nov 2016 00:31:45 GMTVerification of user using mobile number by sending 6 digit code as SMS in ASP.Net<p>Hi</p> <p>i want to add verification of user by sending 6 digit code to his mobile number during regisration .Tell me the way how can i do this.</p> <p>Thanks&nbsp;</p> <p>Puneet</p>, 27 Apr 2013 23:34:35 GMTValidate DropDownCheckBoxes control using RequiredField validator in ASP.Net<p>This my code plz help me thank you</p> <pre class="brush: html">&lt;cc2:DropDownCheckBoxes ID=&#34;cblCustomerList&#34; runat=&#34;server&#34; Width=&#34;180px&#34;&gt; &lt;Style SelectBoxWidth=&#34;195&#34; DropDownBoxBoxWidth=&#34;160&#34; DropDownBoxBoxHeight=&#34;195&#34;/&gt; &lt;Items&gt; &lt;asp:ListItem Text = &#34;Kidneys Donor&#34; Value = &#34;Kidneys Donor&#34;&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text = &#34;Lungs Donor&#34; Value = &#34;Lungs Donor&#34; &gt;Eye Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem Text = &#34;Pancreas Donor&#34; Value = &#34;Pancreas Donor&#34; &gt;Blood Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem Text = &#34;One&#34; Value = &#34;1&#34;&gt;Heart Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem Text = &#34;One&#34; Value = &#34;1&#34; &gt;Liver Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem &gt;Kidneys Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;Lungs Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;Pancreas Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;Intestines Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;Cornea Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;Skin Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;Heart Valves Donor&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;Tendons Donor&lt;/asp:ListItem&gt; &lt;/Items&gt; &lt;/cc2:DropDownCheckBoxes&gt; </pre> <p>&nbsp;</p>, 02 Feb 2015 22:17:52 GMTValidate ASP.Net DropDownList CheckBoxList Server control using JavaScript<p>Hi,</p> <p>How to validate&nbsp;DropDownCheckBoxes control at client side(javascript or Jquery)? I would like to restrict the user to submit the page if no item is selected in the dropdowncheckboxes control. i.e no check box is checked.</p> <p>Please provide the Javascript/Jquery code to validate the control at client side.</p> <p>&nbsp;</p> <p>Thanks and regards,</p> <p>Narender Charla</p>, 29 Apr 2015 08:05:39 GMTUltraWebGrid vs Gridview<p>I have using Ultrawebgrid in 2005&nbsp; i want replace gridview with same functionalty. its possible ? help please ...</p>, 14 Jun 2012 01:55:16 GMTTrack when Email is opened and update database in ASP.Net<p>Hi,</p> <p>I want to know that after sending email to multiple users that how many mails are&nbsp;<strong>Bounced, Open, not open.</strong></p> <p>Please Can You Help me to implement code for how to track open mail and didn't open.</p> <p>Please Help me.</p> <p>Thanks in advance</p>, 12 Dec 2017 23:21:23 GMTUsing XMLWorker to reference external css file in ASP.Net<p>I know&nbsp;&nbsp;I am mixing htmlworker and xmlworker horribly, please forgive.</p> <p>I had an htmlworker that I succeeded in converting to xmlworker.</p> <p>The big problem I am having is including css that you see at the bottom of the code so that the font size could be smaller than it currently shows when the PDF is generated.</p> <p>Could you please help me with making it complete xmlworker that calls an external css file?</p> <p>There is more code for the string body. I just put a small sample to show what I am trying to accomplish.</p> <p>Many thanks in advance</p> <p>&nbsp;</p> <pre class="brush: csharp">string body = &#34;&lt;br /&gt;&#34;; body = body + &#34;&lt;table border=&#39;1&#39; style=&#39;width:90%; text-align:left&#39;&gt;&#34;; body = body + &#34; &lt;tr&gt;&#34;; body = body + &#34; &lt;td style=&#39;width:20%&#39;&gt;Title: &lt;input name=&#39;txtTitle&#39; type=&#39;text&#39; id=&#39;txtTitle&#39; style=&#39;color: #0093B2;font-weight:bold;&#39; /&gt;&#34; + lblTitle.Text + &#34;&lt;/td&gt;&lt;td style=&#39;width:20%&#39;&gt;Preparer Name: &lt;input id=&#39;txtpreparerName&#39; style=&#39;color: #0093B2;font-weight:bold;&#39; /&gt;&#34; + lblpreparerName.Text + &#34;&lt;/td&gt;&lt;td style=&#39;width:20%&#39;&gt;Email: &lt;input name=&#39;txtEmail&#39; type=&#39;text&#39; id=&#39;txtEmail&#39; style=&#39;color: #0093B2;font-weight:bold;&#39; /&gt;&#34; + lblEmail.Text + &#34;&lt;/td&gt;&lt;td style=&#39;width:20%&#39;&gt;Date: &lt;span id=&#39;signDate&#39; style=&#39;color: #0093B2;font-weight:bold;&#39;&gt;&#34; + lblSignDate.Text + &#34;&lt;/span&gt;&lt;/td&gt;&#34;; body = body + &#34; &lt;/tr&gt;&#34;; body = body + &#34; &lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&#34;; body = body + &#34; &lt;br /&gt;&lt;br /&gt;&#34;; StringReader sr = new StringReader(body.ToString()); Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f); HTMLWorker htmlparser = new HTMLWorker(pdfDoc); iTextSharp.tool.xml.pipeline.css.ICSSResolver CSSResolver = XMLWorkerHelper.GetInstance().GetDefaultCssResolver(true); using (MemoryStream memoryStream = new MemoryStream()) { PdfWriter writer = PdfWriter.GetInstance(pdfDoc, memoryStream); pdfDoc.Open(); var xmlWorkerHelper = XMLWorkerHelper.GetInstance(); var cssResolver = new StyleAttrCSSResolver(); var xmlWorkerFontProvider = new XMLWorkerFontProvider(); foreach (string font in fonts) { xmlWorkerFontProvider.Register(font); } var cssAppliers = new CssAppliersImpl(xmlWorkerFontProvider); var htmlContext = new HtmlPipelineContext(cssAppliers); htmlContext.SetTagFactory(Tags.GetHtmlTagProcessorFactory()); PdfWriterPipeline pdfWriterPipeline = new PdfWriterPipeline(pdfDoc, pdfWriter); HtmlPipeline htmlPipeline = new HtmlPipeline(htmlContext, pdfWriterPipeline); CssResolverPipeline cssResolverPipeline = new CssResolverPipeline(cssResolver, htmlPipeline); XMLWorker xmlWorker = new XMLWorker(cssResolverPipeline, true); //htmlparser.Parse(sr); XMLParser xmlParser = new XMLParser(xmlWorker); pdfDoc.Close(); byte[] bytes = memoryStream.ToArray(); memoryStream.Close(); //css body { font-family: Century Gothic; font-size: 10pt; color: #000000; } </pre> <p>&nbsp;</p>, 22 Mar 2018 01:15:38 GMTUsing iTextSharp to change Page Extraction property to allow in ASP.Net<p>Hi,</p> <p>This question is based on the plugin itextsharp. I need to change only the pdf extraction properties. Rest of the property I can able to change. Please see my code below after the image which is taken from below site. The Actual issue was well explained in below link.</p> <p>&nbsp;</p> <p><img src="" alt="" width="472" height="480" /></p> <p>&nbsp;</p> <pre class="brush: csharp">using iTextSharp.text.pdf; using (Stream input = new FileStream(InputFile, FileMode.Open, FileAccess.Read, FileShare.Read)) { using (Stream output = new FileStream(OutputFile, FileMode.Create, FileAccess.Write, FileShare.None)) { PdfReader reader = new PdfReader(input); PdfEncryptor.Encrypt(reader, output, true, userpwd, masterpwd,PdfWriter.AllowScreenReaders); } }</pre>, 21 Dec 2017 04:41:49 GMTUsing Fusion Flash charts in ASP.Net<p><span id="result_box" lang="en"><span class="hps">Hello</span> <span class="hps">friends, I am</span> <span class="hps">looking for an example</span> <span class="hps">of</span> <span class="hps">how</span> <span class="hps">Asp.Net</span> <span class="hps">and</span> <span class="hps">FusionChart</span> <span class="hps">work</span>, someone <span class="hps">has an example</span> <span class="hps">to get started.</span> <br /><br /><strong><span class="hps">Thank you for your help</span></strong></span></p>, 02 Nov 2014 21:46:29 GMTUse External CSS with iTextSharp while export to PDF using VB.Net in ASP.Net <p>I need to use External CSS file whle creating pdf from HTML page using Itext sharp in;</p> <p>Can you please help me in this?</p>, 06 Feb 2018 00:05:20 GMTUploadify sql server upload<p>hi</p> <p>i'm just wondering whether i can use uploaify for uploading huge lot of file in sql server db. I think uploadify is the right tool for my project but i new to programming. All i want is save file name, file type, file size and actual file into sql server when start uploading the files..</p> <p>&nbsp;</p> <p>any help appreciated</p> <p>thanks</p> <p>mohamed</p>, 23 May 2012 04:45:48 GMTUpload a Word Document and display it for Review on Web page in ASP.Net<p>Hi, i would like to know how to show a uploaded document in for reviewing the documentation. Im making a website about review system as a class project and i would like to know how to code them.</p> <p>it would be a real pleasure if i could get some assist from you. thank you for your&nbsp; time.</p>, 26 Nov 2017 23:08:01 GMT