Contents tagged with ASP.NET
-
Preview image file before upload to webserver
You can use javascript to preview the selected image before uploading it to the server.
-
Facts About Gridview Events..
would like to share with you some facts about the Events fired in the GridView: ---------------------------------------------------------- RowCommand Is Fired BEFORE SelectedIndexChanging Is Fired BEFORE SelectedIndexChanged ----------------------------------------------------------- ---------------------------------------------------------- RowDeleting Is Fired BEFORE ObjectDataSource Delete Method Is Fired BEFORE RowDeleted ----------------------------------------------------------- ----------------------------------------------------------- The CommandName in: 1- ButtonField 2- CommandField 3- TemplateField containing a Button, LinkButton, ImageButton If set to: 1- Delete 2- Select 3- Insert 4- Edit 5- etc... The first method to fire is RowCommand before any other method. For example, if you have set OnRowDeleted, OnRowDeleting, OnRowCommand in the GridView on your page, the events are as follows: 1- RowCommand 2- OnRowDeleting 3- OnRowDeleted Hope the information above helps you out... Happy Programming :) Rami M. Nassar
-
HOW TO: Add a default ListItem to a DropDownList
This can be done one of 2 ways. A default ListItem can be added to a DropDownList programmatically with the following syntax after binding data to the DropDownList:
-
Benefits Of LINQ
Yesterday I was seeking for articles about benefits and advantages of LINQ technologies, and I found alot which I tried to mention them here (some of them I took from msdn forums)..
-
HOW TO: Merge Two Tables in One GridView
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
-
HOW TO: Accessing Config File Programmatically
The .NET Framework 2.0 provides APIs for accessing settings in a configuration file.
Here’s how you access the mail settings of a config file programmatically such as example…