Contents tagged with Web Forms
-
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.
-
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.
-
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.