|
|
Using Friendly URLs in ASP.NET Web Forms |
|
Websites often need to generate SEO friendly URLs. In ASP.NET Web Forms applications, a URL is tied to a physical .aspx file. This default mapping between a URL and physical file makes it difficult for Web Forms applications to generate SEO friendly URLs. One option available to ASP.NET developers is to use URL routing features. Alternatively they can also use Friendly Urls - a feature that allows you to quickly and easily use SEO friendly URLs in Web Forms applications. This article discusses how. |
|
Posted On : 02 Jun 2013 |
|
|
Select, Zip and Download Files displayed in a GridView |
|
Sometime back I wrote an article that shows how to zip and unzip files programmatically using System.IO.Compression classes. Using these classes along with ASP.NET controls you can allow user user to select one or more files from a list and then programmatically "bundle" these files into a ZIP achieve. This short post shows how. |
|
Posted On : 29 May 2013 |
|
|
Edit GridView data without displaying default Edit, Update and Cancel buttons |
|
ASP.NET GridView control provides an easy way to edit and update data with the help of CommandField column type. The default CommandField arrangement is such that the Edit, Update and Cancel buttons are displayed in a column. The problem with this design is that the GridView edit column always occupies some screen real estate. Additionally in the edit mode the GridView expands horizontally disturbing the page layout. Luckily, with some easy trick you can render an editable GridView without displaying the default Edit, Update and Cancel buttons. This post shows how. |
|
Posted On : 15 Apr 2013 |
|
|
Convert GridView Data to CSV using jQuery |
|
At times you may want to allow the end user to save GridView data into CSV format for further processing (say for opening later in Excel). Doing so using server side code is quite common. However, this requires an extra round trip to the server. You can also convert data from a GridView into CSV using jQuery. This post shows how. |
|
Posted On : 08 Apr 2013 |
|
|
Display a list of audio / video files using HTML5 and GridView |
|
Recently one of the readers asked this question - How to display a list of audio and video files in ASP.NET web form? Additional requirements were - a) The database contains audio as well as video file URLs. At run time depending on whether a file is audio file or video file appropriate media player should be displayed to the user. b) At a time only one media file should be playing from a given list. This post provides one of the possible solution to the problem.
|
|
Posted On : 02 Apr 2013 |
|
|
Sending Notifications using ASP.NET SignalR |
|
Web applications needing real-time communication can use HTML5 features such as Web Sockets and Server Sent Events. While these techniques can be used in modern web applications they can't be used with browsers not supporting HTML5. Additionally, they can pose some difficulty in complex scenarios. ASP.NET SignalR is a library that allows you to perform real-time communication in web applications easily. In this article you will learn the basics of using SignalR in an ASP.NET web forms application. |
|
Posted On : 23 Mar 2013 |
|
|
Top 10 Things to Know about TypeScript |
|
TypeScript is a superset of JavaScript that provides typed nature to your code. TypeScript can be used for cross-browser development and is an open source project. This article is intended to give you a quick overview of the top 10 features of this new scripting language. You can download TypeScript here. The remainder of this article assumes that you are already familiar with some object oriented language such as C# and are acquainted with the general vocabulary of object oriented programming. |
|
Posted On : 28 Feb 2013 |
|
|
Using TypeScript to Perform CRUD Operations |
|
TypeScript is a superset of JavaScript that provides typed nature to your code. TypeScript can also be used with existing popular JavaScript libraries such as jQuery. This allows you to make use of the rich functionality offered by these external libraries in your TypeScript code. To that end this article explains how jQuery can be integrated with TypeScript to make Ajax calls to an ASP.NET Web API. The example discussed shows how CRUD operations can be carried out using TypeScript, jQuery and Web API. |
|
Posted On : 16 Feb 2013 |
|
|
Using TypeScript in Visual Studio 2012 |
|
Modern web applications rely heavily on client side scripting for various needs ranging from validations to Ajax calls. Many web developers who are more familiar with the server side programming model of ASP.NET find it difficult to quickly and efficiently use JavaScript. They will find TypeScript a nice addition to their skill-set. TypeScript is a superset of JavaScript that provides typed nature to your code. More importantly TypeScript code, when compiled gets converted into the same standard JavaScript. This means after compiling the TypeScript code you can use the resultant JavaScript in any browser that supports JavaScript. This article is intended to give you a quick overview of this new scripting language. |
|
Posted On : 22 Jan 2013 |
|
|
Working with OData Queries in ASP.NET Web API |
|
OData protocol allows you to create RESTful data services by exposing URI end points. ASP.NET Web API supports OData queries so that your data can be consumed by the client over HTTP with the help of OData query options. To that end this article illustrates how to work with the OData support provided in the Web API, and how to write OData queries. |
|
Posted On : 11 Jan 2013 |
|
|