ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2018 www.aspforums.com. All rights reserved.Zoom image on MouseOver in ASP.Net DataList using jQuery<p>Hello All,</p> <p><a href="https://www.aspforums.net/Threads/208173/How-to-Zoom-image-on-MouseOver-like-Shopping-Websites-in-ASPNet/">https://www.aspforums.net/Threads/208173/How-to-Zoom-image-on-MouseOver-like-Shopping-Websites-in-ASPNet/</a></p> <p>I was implementing the above funcitonality but I see that when I hover on the image, only the large Image is shown. How can I zoom the image part as I hover my image on different places.</p> <p>I tried the one mentioned below but even this just shows the big image on hover but no zoom functionality. I'm I missing something? Im pasting my code below.</p> <h1 class="header"><a href="https://www.aspsnippets.com/Articles/Zoom-Enlarge-image-on-MouseOver-in-ASPNet-DataList-using-jQuery.aspx">Zoom (Enlarge) image on MouseOver in ASP.Net DataList using jQuery</a></h1> <pre class="brush: html">&lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;http://cdn.rawgit.com/elevateweb/elevatezoom/master/jquery.elevateZoom-3.0.8.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { $(&#34;[id*=imgProductSmall]&#34;).elevateZoom({ cursor: &#39;pointer&#39;, imageCrossfade: true, loadingIcon: &#39;loading.gif&#39; }); }); &lt;/script&gt; &lt;img runat=&#34;server&#34; id=&#34;imgProductSmall&#34; data-zoom-image=&#39;&lt;%# ResolveUrl(Eval(&#34;ZoomImageUrl&#34;).ToString()) %&gt;&#39; /&gt;</pre> <pre class="brush: csharp">string ProductCode = Request.QueryString[&#34;id&#34;].ToString(); lblProductId.Text = ProductCode; imgProductSmall.Src=ResolveUrl(&#34;images/product-images/medium/&#34; + ProductCode + &#34;.jpg&#34;);</pre> <p>The issue is I'm not sure how to pass data-zoom-image =''parameter from code behind. Can you please guide me.</p> <p>Thanks.</p>https://www.aspforums.net:443/Threads/208212/Zoom-image-on-MouseOver-in-ASPNet-DataList-using-jQuery/https://www.aspforums.net:443/Threads/208212/Zoom-image-on-MouseOver-in-ASPNet-DataList-using-jQuery/Thu, 08 Mar 2018 05:27:06 GMTZoom (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>https://www.aspforums.net:443/Threads/501899/Zoom-Enlarge-image-on-MouseOver-in-ASPNet-Repeater-using-jQuery/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/175718/Zip-image-files-stored-in-database-and-download-in-ASPNet/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/240617/Write-data-to-Excel-file-xls-and-xlsx-with-Master-Pages-in-ASPNet/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/111859/Wrap-long-text-in-GridView-Column-in-ASPNet/https://www.aspforums.net:443/Threads/111859/Wrap-long-text-in-GridView-Column-in-ASPNet/Tue, 07 Oct 2014 03:02:40 GMTwhy viewModel is need we have Model to display data to view in mvc<p>Hi</p> <p>why viewModel is need?</p> <p>we have Model to display&nbsp; data to view in mvc</p> <p>&nbsp;</p> <p>Please Explain&nbsp;</p>https://www.aspforums.net:443/Threads/126418/why-viewModel-is-need-we-have-Model-to-display-data-to-view-in-mvc/https://www.aspforums.net:443/Threads/126418/why-viewModel-is-need-we-have-Model-to-display-data-to-view-in-mvc/Fri, 14 Sep 2018 04:39:08 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>https://www.aspforums.net:443/Threads/190830/XmlDataSource-filtering-and-Binding-Issue/https://www.aspforums.net:443/Threads/190830/XmlDataSource-filtering-and-Binding-Issue/Sun, 08 Sep 2013 11:26:34 GMTWhen to ise ASP.Net ListView OnItemCreated Event<p>can anyone explain when onitemcreated event should be used in listview&nbsp;</p>https://www.aspforums.net:443/Threads/261127/When-to-ise-ASPNet-ListView-OnItemCreated-Event/https://www.aspforums.net:443/Threads/261127/When-to-ise-ASPNet-ListView-OnItemCreated-Event/Mon, 27 Aug 2012 01:52:03 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>https://www.aspforums.net:443/Threads/159706/Why-GridView-not-showing-record-in-ASPNet/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/472565/Why-GridView-is-preferred-over-Crystal-Reports-for-Reporting-in-ASPNet/https://www.aspforums.net:443/Threads/472565/Why-GridView-is-preferred-over-Crystal-Reports-for-Reporting-in-ASPNet/Wed, 12 Dec 2012 04:04:30 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>https://www.aspforums.net:443/Threads/766881/While-binding-datalist-how-to-bind-in-next-row-based-on-condition/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/184115/Which-is-better-option-to-store-files-in-File-System-Disk-or-Database-in-ASPNet/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/201303/Which-control-out-of-GridView-Repeater-DataList-is-visible-even-if-no-data-empty-in-ASPNet/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/559766/Where-to-store-large-files-in-Database-or-in-folder/https://www.aspforums.net:443/Threads/559766/Where-to-store-large-files-in-Database-or-in-folder/Mon, 08 Apr 2013 23:40:40 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>https://www.aspforums.net:443/Threads/171828/When-applying-Scrollable-Gridview-the-headers-does-not-match-with-TemplateField/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/252305/What-is-the-use-of-Connection-Open-method-in-ADONet/https://www.aspforums.net:443/Threads/252305/What-is-the-use-of-Connection-Open-method-in-ADONet/Fri, 05 Jul 2013 02:01:47 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>https://www.aspforums.net:443/Threads/319450/What-is-ASPNet-GridView-OnRowDataBound-Event-when-it-is-used-and-how/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/173623/What-does-Eval-statement-mean-in-controls-like-GridView-Repeater-DataList-in-ASPNet/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/952597/What-are-all-the-methods-to-call-controller-from-view-in-ASPNET-MVC/https://www.aspforums.net:443/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>https://www.aspforums.net:443/Threads/769082/Week-wise-Grid-Display-days-of-week-in-Repeater-GridView-in-ASPNet/https://www.aspforums.net:443/Threads/769082/Week-wise-Grid-Display-days-of-week-in-Repeater-GridView-in-ASPNet/Wed, 08 Oct 2014 03:03:24 GMT