Category: ASP.NET
ASP.NET tutorials and snippets
-
Using IF Then Else in Eval in ASP.NET
When using Eval in your gridview or datalist view, we will bind the coloumn value using the Eval statement. Sometimes we need to check if the value of the Eval exists so that we can take appropriate mesures. For example checking the image value if…
-
Retrieving ID or other values from the DataList in ItemDataBound Event
When using DataList control, you may want to obtain the ID or other values from the item in the DataList ItemDataBound Event using the following snippets in asp.net and C# There are two cases and you can get the values from the both case 1.…
-
HTTP Error 500.52 – URL Rewrite Module Error – Class not registered IIS 7
Well this is a small hint, that worked for me. I was trying to convert an application with SEO URL using IIS 7 URL REWRITE MODULE 2. I downloaded the the module and successfully installed. Using IIS MANAGER recreated the seo url rules using URL…
-
Asp.net Month DropDownlist
It is boring to type month dropdownlist. I will just keep it here handy.
-
Catching SqlDataSource Exception in asp.net C#
All right, here is a simple tip to catch sqldatasource exception for delete, update, insert, select when using with gridview, dataview, formview, detailsview. If we were coding using 3-tier architecture, the exception can be caught easily using try catch and finally. The exception can arise…
-
Delete confirmation in Gridview in asp.net
Hi all, Just thought to keep this snippet handy. When you create a gridview from a table and you add delete command in it. Whenever you click the delete command or link , the record gets deleted immediately. If there is a javascript popup confirmation…
-
Iterating through CheckBoxList Control and obtaining values in ASP.NET
In this tutorial, I will show you how to iterate through the selected items of CheckBoxList Control and obtaining the values. The checkboxlist control has more than one check box and more than one check box can be selected. All these selected values are stored…
-
Adding Page Title, Meta Tags dynamically in ASP.NET 3.5 C#
For Search Engine Optimization you have to add the page title and the meta tags in the all the pages. If it is a static page you can just add in the head section of the page. But in a dynamic asp.net page you have…
-
IE 6 upgrade warning in your asp.net pages using C#
IF IE6 does not deliver your pages as designed. you can force a small warning box to IE6 users to upgrade their browsers. The demo shown here is for one aspx page, you can include this in your master page to show throughout the site.…
-
Using FileUpload Control to upload files in ASP.NET and C#
Learn how to use FileUpload Control to upload files in ASP.NET and C# with this simple tutorial. For this tutorial you have to add a fileupload control to upload file, a label control to display the result and an image control to display the uploaded…