ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Zoom (Enlarge) image on MouseOver in ASP.Net Repeater using jQuery<p>Hi sir ,</p> <p>i am refering the link&nbsp;</p> <p><a href="http://www.aspsnippets.com/Articles/Zoom-Enlarge-image-on-MouseOver-in-ASPNet-DataList-using-jQuery.aspx">http://www.aspsnippets.com/Articles/Zoom-Enlarge-image-on-MouseOver-in-ASPNet-DataList-using-jQuery.aspx</a></p> <p>can u help with repeater control for this.</p> <p>Thanks</p>http://www.aspforums.net/Threads/501899/Zoom-Enlarge-image-on-MouseOver-in-ASPNet-Repeater-using-jQuery/http://www.aspforums.net/Threads/501899/Zoom-Enlarge-image-on-MouseOver-in-ASPNet-Repeater-using-jQuery/Mon, 01 Jun 2015 22:47:57 GMTZip image files stored in database and download in ASP.Net<p>I have images saved in database, now I want to this images fetch from database and save into zipfile and return to the user for download in mvc4? How do that functionality.</p>http://www.aspforums.net/Threads/175718/Zip-image-files-stored-in-database-and-download-in-ASPNet/http://www.aspforums.net/Threads/175718/Zip-image-files-stored-in-database-and-download-in-ASPNet/Thu, 08 Jan 2015 06:57:53 GMTWrite data to Excel file (.xls and .xlsx) with Master Pages in ASP.Net <p>&nbsp;</p> <pre class="brush: html">hi Mudassar Sir, I am learning Asp.net programming. I was very much fond of Your Help in this forum. Sir, I have following problem: I am referring to your example in below url: http://www.aspsnippets.com/Articles/Write-data-to-Excel-file-xls-and-xlsx-in-ASPNet.aspx the code works good when my webform is not inside content place holder of Master page. but, when i use same code in the webform which lies inside content place holder of a Master page, downloading of excel doesnot happen. I dont know why. Sir kindly Help....</pre> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/240617/Write-data-to-Excel-file-xls-and-xlsx-with-Master-Pages-in-ASPNet/http://www.aspforums.net/Threads/240617/Write-data-to-Excel-file-xls-and-xlsx-with-Master-Pages-in-ASPNet/Tue, 22 Sep 2015 11:17:22 GMTWrap long text in GridView Column in ASP.Net<p>any idea how to wrap the column of a gridiew?</p>http://www.aspforums.net/Threads/111859/Wrap-long-text-in-GridView-Column-in-ASPNet/http://www.aspforums.net/Threads/111859/Wrap-long-text-in-GridView-Column-in-ASPNet/Tue, 07 Oct 2014 03:02:40 GMTWhy GridView not showing record in ASP.Net<p>hello all ,</p> <p>i have a botton , and the code behind it as below :</p> <p>&nbsp;</p> <pre class="brush: csharp">protected void btnView_Click(object sender, EventArgs e) { SqlDataAdapter sda = new SqlDataAdapter(&#34;Select * from tblMain&#34;, conn); DataTable dt = new DataTable(); sda.Fill(dt); gv2.DataSource = dt; conn.Close(); }</pre> <p>&nbsp;</p> <p>when i run the web page and click the btnview .. the page is still empty ?!!</p> <p>why is that&nbsp;</p> <p>&nbsp;</p> <p>the other question is :</p> <p>if i want to refresh the data of the gv2, automatically after ading data to it how to do it ?</p> <p>&nbsp;</p> <p>regards</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/159706/Why-GridView-not-showing-record-in-ASPNet/http://www.aspforums.net/Threads/159706/Why-GridView-not-showing-record-in-ASPNet/Tue, 29 Nov 2016 02:12:13 GMTWhy GridView is preferred over Crystal Reports for Reporting in ASP.Net<p>sir why we are mostly use gridview&nbsp; not prefer crystal report for displaying report</p>http://www.aspforums.net/Threads/472565/Why-GridView-is-preferred-over-Crystal-Reports-for-Reporting-in-ASPNet/http://www.aspforums.net/Threads/472565/Why-GridView-is-preferred-over-Crystal-Reports-for-Reporting-in-ASPNet/Wed, 12 Dec 2012 04:04:30 GMTXmlDataSource filtering and Binding Issue<pre class="brush: xml">&lt;%@ Page Language=&#34;C#&#34; AutoEventWireup=&#34;true&#34; CodeBehind=&#34;WebForm8.aspx.cs&#34; Inherits=&#34;WebApplication5.NewFolder4.WebForm8&#34; %&gt; &lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt; &lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; &lt;div&gt; &lt;asp:XmlDataSource ID=&#34;XmlDataSource1&#34; runat=&#34;server&#34;&gt; &lt;Data&gt; &lt;employeeinformationbyday&gt; &lt;emp id=&#34;100&#34; empname=&#34;Samanta&#34; genid=&#34;1&#34; OfficeTime=&#34;today&#34; /&gt; &lt;emp id=&#34;200&#34; empname=&#34;Lusia&#34; genid=&#34;11&#34; OfficeTime=&#34;yesterday&#34; /&gt; &lt;emp id=&#34;200&#34; empname=&#34;Andria&#34; genid=&#34;100&#34; OfficeTime=&#34;today&#34; /&gt; &lt;/employeeinformationbyday&gt; &lt;/Data&gt; &lt;/asp:XmlDataSource&gt; &lt;asp:GridView ID=&#34;GridView1&#34; runat=&#34;server&#34; AutoGenerateColumns=&#34;false&#34;&gt; &lt;Columns&gt; &lt;asp:TemplateField HeaderText=&#34;empname&#34;&gt; &lt;ItemTemplate&gt; &lt;asp:Label ID=&#34;Label1&#34; runat=&#34;server&#34; Text=&#39;&lt;%# Eval(&#34;empname&#34;) %&gt;&#39;&gt;&lt;/asp:Label&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; &lt;/Columns&gt; &lt;/asp:GridView&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>*** You can chnage your Gridview style as you need&nbsp;</p> <p>&nbsp;</p> <p>Bind empname only from the XmlDataSource to GridView where Officetime="today"</p> <p>&nbsp;</p> <p><span style="text-decoration: underline;">Output :</span></p> <p>Samanta</p> <p><span>Andria</span></p> <div><span><br /></span></div> <div><span style="text-decoration: underline;">output to next line, please use "\n"&nbsp;</span></div> <div><span><br /></span></div> <div><span><br /></span></div> <div><span style="text-decoration: underline;">Please <strong>do not use</strong> LINQ, Generics and XML</span></div> <div><span><span><br /></span></span></div> <div><span><span><br /></span></span></div> <div><span style="text-decoration: underline;"><strong>You can use&nbsp;</strong>Collections and WebControls, HtmlControls&nbsp;</span></div> <div><span style="text-decoration: underline;"><br /></span></div> <div><span style="text-decoration: underline;"><br /></span></div> <div>The code may be look like this</div> <div>&nbsp;</div> <div>&nbsp;</div> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { XmlDocument myXml = new XmlDocument(); myXml = (XmlDocument)XmlDataSource1.GetXmlDocument(); XmlReader xtr = new XmlNodeReader(myXml); DataSet ds = new DataSet(); DataTable dt = new DataTable(); DataRow[] dr; DataTable dtfilter = new DataTable(); //Here i load all xml data in to dataset ds.ReadXml(xtr); dt = ds.Tables[0]; //Filter here above employe no ten records dr = dt.Select(&#34;OfficeTime = &#39;Today&#39;&#34;); dtfilter = dr.CopyToDataTable(); GridView1.DataSource = dtfilter; GridView1.DataBind(); }</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/190830/XmlDataSource-filtering-and-Binding-Issue/http://www.aspforums.net/Threads/190830/XmlDataSource-filtering-and-Binding-Issue/Sun, 08 Sep 2013 11:26:34 GMTWhile binding datalist how to bind in next row based on condition<p>I am using Datalist to bind userdetails which contains department name. With RepeatColumns="2" &amp; RepeatDirection=" Horizontal". Now i want to check a condition while binding.</p> <p>for Example; If i am binding with 5 users having 3 users with same department and remaining 2 users with different departments then i want to show 1st 3 users having same department in two rows and remaining to users in next two rows.</p> <p>Can anyone help on this?</p> <pre class="brush: html">&lt;asp:DataList ID=&#34;dlHaysContacts&#34; runat=&#34;server&#34; RepeatColumns=&#34;2&#34; RepeatDirection=&#34; Horizontal&#34;&gt; &lt;ItemTemplate&gt; &lt;div class=&#34;dlSettings&#34;&gt; &lt;div&gt; &lt;asp:LinkButton ID=&#34;lnkHaysContactName&#34; runat=&#34;server&#34; Text=&#39;&lt;%# Eval(&#34;HaysContactName&#34;) %&gt;&#39; OnClientClick=&#39;&lt;%# String.Format(&#34;EmailToServiceTeam(\&#34;{0}\&#34;);&#34;, Eval(&#34;hays_contact_email&#34;)) %&gt;&#39;&gt;&lt;/asp:LinkButton&gt; &lt;/div&gt; &lt;div&gt; &lt;asp:Label Style=&#34;text-align: justify&#34; ID=&#34;lblServiceArea&#34; runat=&#34;server&#34; Text=&#39;&lt;%# Eval(&#34;department_name&#34;) %&gt;&#39;&gt;&lt;/asp:Label&gt; &lt;/div&gt; &lt;div&gt; &lt;asp:Label Style=&#34;text-align: justify&#34; ID=&#34;lblRole&#34; runat=&#34;server&#34; Text=&#39;&lt;%# Eval(&#34;hays_contact_title&#34;) %&gt;&#39;&gt;&lt;/asp:Label&gt; &lt;/div&gt; &lt;div&gt; &lt;b&gt;p: &lt;/b&gt; &lt;asp:Label ID=&#34;lblPhone&#34; runat=&#34;server&#34; Text=&#39;&lt;%# Eval(&#34;hays_contact_phone&#34;) %&gt;&#39;&gt;&lt;/asp:Label&gt; &lt;/div&gt; &lt;/div&gt; &lt;/ItemTemplate&gt; &lt;/asp:DataList&gt;</pre>http://www.aspforums.net/Threads/766881/While-binding-datalist-how-to-bind-in-next-row-based-on-condition/http://www.aspforums.net/Threads/766881/While-binding-datalist-how-to-bind-in-next-row-based-on-condition/Fri, 18 Mar 2016 08:37:00 GMTWhich is better option to store files in File System (Disk) or Database in ASP.Net<p>I am working on a journal website where user submit manuscripts , pdf files , is it good idea to store pdf files on directory or on database.</p> <p>&nbsp;</p> <p>Thanks.</p>http://www.aspforums.net/Threads/184115/Which-is-better-option-to-store-files-in-File-System-Disk-or-Database-in-ASPNet/http://www.aspforums.net/Threads/184115/Which-is-better-option-to-store-files-in-File-System-Disk-or-Database-in-ASPNet/Thu, 29 Aug 2013 01:39:49 GMTWhich control out of GridView, Repeater, DataList is visible even if no data (empty) in ASP.Net<p>Which control can be viewed if the datas are in empty also?</p>http://www.aspforums.net/Threads/201303/Which-control-out-of-GridView-Repeater-DataList-is-visible-even-if-no-data-empty-in-ASPNet/http://www.aspforums.net/Threads/201303/Which-control-out-of-GridView-Repeater-DataList-is-visible-even-if-no-data-empty-in-ASPNet/Thu, 18 Sep 2014 05:10:46 GMTWhere to store large files (in Database or in folder)<p>Hello,</p> <p>I am curious to know the following:</p> <p>We are going to develop a website where we need to store large number of files. The file size may be uptp 50 MB. What approach should we follow:</p> <p>1) We should store files in Database</p> <p>2) We should have a directory and store all the files in that</p> <p>3) We should hire a SAN Storage and use this seperate location to store the files.</p> <p>Please suggest.</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/559766/Where-to-store-large-files-in-Database-or-in-folder/http://www.aspforums.net/Threads/559766/Where-to-store-large-files-in-Database-or-in-folder/Mon, 08 Apr 2013 23:40:40 GMTWhen to ise ASP.Net ListView OnItemCreated Event<p>can anyone explain when onitemcreated event should be used in listview&nbsp;</p>http://www.aspforums.net/Threads/261127/When-to-ise-ASPNet-ListView-OnItemCreated-Event/http://www.aspforums.net/Threads/261127/When-to-ise-ASPNet-ListView-OnItemCreated-Event/Mon, 27 Aug 2012 01:52:03 GMTWhen applying Scrollable Gridview the headers does not match with TemplateField<p>Sir,</p> <p>&nbsp;&nbsp;&nbsp; I used the link below</p> <p>http://www.aspsnippets.com/Articles/Scrollable-GridView-with-Fixed-Headers-using-jQuery-Plugin.aspx</p> <p>I have nearly 25 columns in my Gridview so when i apply the scrollable grdview the header does not align with template field.</p> <p>Thanks in advance</p>http://www.aspforums.net/Threads/171828/When-applying-Scrollable-Gridview-the-headers-does-not-match-with-TemplateField/http://www.aspforums.net/Threads/171828/When-applying-Scrollable-Gridview-the-headers-does-not-match-with-TemplateField/Thu, 21 Feb 2013 22:42:24 GMTWhat is the use of Connection Open method in ADO.Net<p>we usually open a connection by con.open() and close the connection by con.close().when we create a method like,</p> <p>public void conopen()</p> <p>{</p> <p>if(connectionstate.open)</p> <p>con.open();</p> <p>con.close();</p> <p>}</p> <p>what is basically the use of this method..??...why we create this method when we have co.open() and con.close();</p>http://www.aspforums.net/Threads/252305/What-is-the-use-of-Connection-Open-method-in-ADONet/http://www.aspforums.net/Threads/252305/What-is-the-use-of-Connection-Open-method-in-ADONet/Fri, 05 Jul 2013 02:01:47 GMTwhat is solution to bind fileupload control wit session value<p><em>FileUpload1 = (FileUpload) Session["fileLocation"];</em>&nbsp;&nbsp;&nbsp;<strong>not working</strong></p> <p>FileUpload1.SaveAs(Server.MapPath("UploadDoc................)</p> <p>&nbsp;</p> <p>if not then please suggest how can i do with other way</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/668498/what-is-solution-to-bind-fileupload-control-wit-session-value/http://www.aspforums.net/Threads/668498/what-is-solution-to-bind-fileupload-control-wit-session-value/Sat, 22 Jul 2017 12:20:32 GMTWhat is ASP.Net GridView OnRowDataBound Event when it is used and how<p>What is GridView Event "RowDataBound" ?</p> <p>When it is used ? And How ?</p> <p>Please explain it Briefly with some exaple..</p>http://www.aspforums.net/Threads/319450/What-is-ASPNet-GridView-OnRowDataBound-Event-when-it-is-used-and-how/http://www.aspforums.net/Threads/319450/What-is-ASPNet-GridView-OnRowDataBound-Event-when-it-is-used-and-how/Thu, 06 Jun 2013 01:44:46 GMTWhat does Eval statement mean in controls like GridView Repeater DataList in ASP.Net<p>&lt;asp:Label ID="lblsize" runat="server" Text='&lt;%# Eval("size")%&gt;' /&gt;</p> <p>&nbsp;</p> <p>in the syntax above, what is<strong> '&lt;%# Eval("size")%&gt;'</strong> means? thanx in advance..</p>http://www.aspforums.net/Threads/173623/What-does-Eval-statement-mean-in-controls-like-GridView-Repeater-DataList-in-ASPNet/http://www.aspforums.net/Threads/173623/What-does-Eval-statement-mean-in-controls-like-GridView-Repeater-DataList-in-ASPNet/Thu, 22 Aug 2013 02:39:57 GMTWhat are all the methods to call controller from view in ASP.NET MVC<p>Please send me the answer..</p> <p>please list out all the methods.</p>http://www.aspforums.net/Threads/952597/What-are-all-the-methods-to-call-controller-from-view-in-ASPNET-MVC/http://www.aspforums.net/Threads/952597/What-are-all-the-methods-to-call-controller-from-view-in-ASPNET-MVC/Wed, 08 Jun 2016 07:03:05 GMTWeek wise Grid: Display days of week in Repeater / GridView in ASP.Net<p>How to show current date along with six days as a week in html header with navigation bar for next week and previous week?</p>http://www.aspforums.net/Threads/769082/Week-wise-Grid-Display-days-of-week-in-Repeater-GridView-in-ASPNet/http://www.aspforums.net/Threads/769082/Week-wise-Grid-Display-days-of-week-in-Repeater-GridView-in-ASPNet/Wed, 08 Oct 2014 03:03:24 GMTWebSite Performance decreasing due to more records in gridview<p>Hi,</p> <p>In my website need to display 5000+ records in gridview. So, I used custom paging for static page bar and displaying 100 records per page. In stored procedure using ROW NUMBER() keyword to retrieve specific records from the database. Even though website is running dead slow. Is there any alternate way apart from the ROW NUMBER() to increase the website performance.&nbsp; Can anyone please suggest me...It is very critical for me. ...I followed the below article to achive custom paging. </p>http://www.aspforums.net/Threads/880990/WebSite-Performance-decreasing-due-to-more-records-in-gridview/http://www.aspforums.net/Threads/880990/WebSite-Performance-decreasing-due-to-more-records-in-gridview/Sun, 01 Apr 2012 01:00:43 GMT