<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Aspnet - Tag - Mihir Soni</title><link>https://mihir.cloud/tags/aspnet/</link><description>Mihir Soni (Soni Mihir) — Principal Engineering Manager at Microsoft Azure Compute, founding engineer of OpenSearch at AWS. Cloud computing, distributed systems, and infrastructure engineering leader based in Seattle. Personal site, resume, and writing on tech and personal finance.</description><generator>Hugo 0.165.0 &amp; FixIt v1.0.0-alpha-mti6jl18</generator><language>en-us</language><managingEditor>mihirsoni.123@gmail.com (Mihir Soni)</managingEditor><webMaster>mihirsoni.123@gmail.com (Mihir Soni)</webMaster><copyright>© 2026 Mihir Soni</copyright><lastBuildDate>Fri, 16 Sep 2011 11:33:17 +0530</lastBuildDate><atom:link href="https://mihir.cloud/tags/aspnet/index.xml" rel="self" type="application/rss+xml"/><item><title>jQuery Notification After Postback in ASP.NET</title><link>https://mihir.cloud/posts/jquery-notification-after-postback/</link><pubDate>Fri, 16 Sep 2011 11:33:17 +0530</pubDate><author>mihirsoni.123@gmail.com (Mihir Soni)</author><guid>https://mihir.cloud/posts/jquery-notification-after-postback/</guid><description>&lt;p&gt;Hi all,&lt;/p&gt;&#10;&lt;p&gt;I read in several forums that developers were struggling to show a jQuery notification message on a page after a postback. This matters a lot for making a website&amp;rsquo;s UI attractive nowadays.&lt;/p&gt;&#10;&lt;p&gt;Here&amp;rsquo;s a simple tutorial to solve that.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m using the jQuery &lt;code&gt;showMessage&lt;/code&gt; notification plugin for displaying the message.&lt;/p&gt;&#10;&lt;p&gt;Here&amp;rsquo;s the code for the ASPX page, &lt;code&gt;Default.aspx&lt;/code&gt;:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;&amp;lt;html xmlns=&amp;#34;http://www.w3.org/1999/xhtml&amp;#34;&amp;gt;&#10;&amp;lt;head id=&amp;#34;Head1&amp;#34; runat=&amp;#34;server&amp;#34;&amp;gt;&#10; &amp;lt;title&amp;gt;Jquery Postback demo&amp;lt;/title&amp;gt;&#10; &amp;lt;script src=&amp;#34;JS/jquery.showMessage.js&amp;#34; type=&amp;#34;text/javascript&amp;#34;&amp;gt;&amp;lt;/script&amp;gt;&#10; &amp;lt;script src=&amp;#34;JS/jquery.showMessage.min.js&amp;#34; type=&amp;#34;text/javascript&amp;#34;&amp;gt;&amp;lt;/script&amp;gt;&#10; &amp;lt;link href=&amp;#34;CSS/style_msg.css&amp;#34; rel=&amp;#34;stylesheet&amp;#34; type=&amp;#34;text/css&amp;#34; /&amp;gt;&#10; &amp;lt;script type=&amp;#34;text/javascript&amp;#34;&#10; src=&amp;#34;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&amp;#34;&#10; charset=&amp;#34;utf-8&amp;#34;&amp;gt;&amp;lt;/script&amp;gt;&#10;&amp;lt;/head&amp;gt;&#10;&amp;lt;body&amp;gt;&#10; &amp;lt;form id=&amp;#34;form1&amp;#34; runat=&amp;#34;server&amp;#34;&amp;gt;&#10; &amp;lt;div&amp;gt;&#10; &amp;lt;asp:TextBox ID=&amp;#34;txtFirstname&amp;#34; runat=&amp;#34;server&amp;#34; /&amp;gt;&#10; &amp;lt;asp:Button ID=&amp;#34;btnSubmit&amp;#34; runat=&amp;#34;server&amp;#34; style=&amp;#34;height: 26px&amp;#34; /&amp;gt;&#10; &amp;lt;/div&amp;gt;&#10; &amp;lt;/form&amp;gt;&#10;&amp;lt;/body&amp;gt;&#10;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I&amp;rsquo;ve just added one textbox and one button to the page — here&amp;rsquo;s the code for the button click event:&lt;/p&gt;</description></item><item><title>Get File Size Information Before You Download</title><link>https://mihir.cloud/posts/get-file-size-before-download/</link><pubDate>Wed, 09 Feb 2011 11:03:15 +0530</pubDate><author>mihirsoni.123@gmail.com (Mihir Soni)</author><guid>https://mihir.cloud/posts/get-file-size-before-download/</guid><description>&lt;p&gt;Hello,&lt;/p&gt;&#10;&lt;p&gt;I was browsing ASP.NET resources and found an interesting code snippet for getting a file&amp;rsquo;s size over HTTP before the download actually starts.&lt;/p&gt;&#10;&lt;p&gt;So you can find out the size of a file before you download it. Here&amp;rsquo;s the simple code:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;string completeUrl = &amp;#34;TypeYourDownloadableURL&amp;#34;;&#10;&#10;WebClient obj = new WebClient();&#10;Stream s = obj.OpenRead(completeUrl);&#10;Response.Write(obj.ResponseHeaders[&amp;#34;Content-Length&amp;#34;].ToString());&#10;s.Close();&#10;obj = null;&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>ASP.NET MVC</title><link>https://mihir.cloud/posts/asp-net-mvc/</link><pubDate>Mon, 31 Jan 2011 17:57:16 +0530</pubDate><author>mihirsoni.123@gmail.com (Mihir Soni)</author><guid>https://mihir.cloud/posts/asp-net-mvc/</guid><description>&lt;p&gt;Hello,&lt;/p&gt;&#10;&lt;p&gt;Since I started my internship in January, I wanted to learn the ASP.NET MVC architecture, so I made time to learn it during my internship training.&lt;/p&gt;&#10;&lt;p&gt;ASP.NET provides a great framework called ASP.NET MVC for building MVC applications. It&amp;rsquo;s not totally different from a plain ASP.NET website, but it&amp;rsquo;s not compulsory either — it&amp;rsquo;s up to you whether you want to build your site using the MVC framework or the traditional way.&lt;/p&gt;</description></item><item><title>Third Semester Projects</title><link>https://mihir.cloud/posts/third-semester-projects/</link><pubDate>Mon, 31 Jan 2011 17:14:48 +0530</pubDate><author>mihirsoni.123@gmail.com (Mihir Soni)</author><guid>https://mihir.cloud/posts/third-semester-projects/</guid><description>&lt;p&gt;Hello,&lt;/p&gt;&#10;&lt;p&gt;Since I mentioned my third semester journey in my last post, I&amp;rsquo;d like to describe my projects separately in this one.&lt;/p&gt;&#10;&lt;p&gt;In my third semester I had two projects — one in Software Engineering, and another in Distributed Computing, a.k.a. &lt;strong&gt;DCOM&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;In Software Engineering, we were put into a team of 7 classmates, decided by the professor, and we had to decide on the project definition ourselves.&lt;/p&gt;&#10;&lt;p&gt;We collected ideas from all team members, and eventually landed on something new called &lt;strong&gt;e-society&lt;/strong&gt;, where we planned to reduce the workload of a society&amp;rsquo;s secretary and chairman.&lt;/p&gt;</description></item><item><title>Anthem Toolkit</title><link>https://mihir.cloud/posts/anthem-toolkit/</link><pubDate>Sun, 20 Jun 2010 14:28:56 +0000</pubDate><author>mihirsoni.123@gmail.com (Mihir Soni)</author><guid>https://mihir.cloud/posts/anthem-toolkit/</guid><description>&lt;p&gt;Hello friends,&lt;/p&gt;&#10;&lt;p&gt;Today I&amp;rsquo;m describing the use of the &lt;strong&gt;Anthem&lt;/strong&gt; toolkit.&lt;/p&gt;&#10;&lt;p&gt;Anthem is a very powerful toolkit that&amp;rsquo;s popular for GridView and some other ASP.NET controls.&lt;/p&gt;&#10;&lt;p&gt;Anthem Toolkit is completely based on AJAX, and performs all actions using AJAX techniques, so there&amp;rsquo;s no need for a postback every single time.&lt;/p&gt;&#10;&lt;p&gt;You can use the Anthem GridView easily, and this control toolkit is open source.&lt;/p&gt;&#10;&lt;p&gt;You can download the DLL &lt;a href="http://sourceforge.net/projects/anthem-dot-net/" target="_blank" rel="external nofollow noopener noreferrer"&gt;here&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>