0

Double Click event for a Row in a Grid View

1. First while on OnRowDataBound Method of your GridView insert the following: if (e.Row.RowType == DataControlRowType.DataRow){ for (int i = 0; i < (e.Row.Cells.Count); i++){ e.Row.Attributes.Add("ondblclick", "Javascript:rowDblClick();");...
0

GridView Row Color Change Using CSS

First define the css which you want to use. This you could do by defining a seperate css file or by adding the css in the same file. I have declared the css in the same file. The head section of my .aspx file looks like below. <head runat="server">     <title>Untitled Page</title>     <style>      .RowCss tr:hover     {         background-color:Orange;     }     </style> </head> Next...
0

Check whether a HTML control exists or not

<!DOCTYPE html><html> <head>    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>    <title>Check whether a control exists</title> </head>  <body>     <script type="text/javascript">        function check() {           if (document.getElementById('btn_yasser')) {               alert('Exists !');           }           else {               alert('Not present');           }       }    </script>     <input type="button" id="btn_yasser" value="click me" onClick="check();" />  </body>  </html>The...
0

Session Management For Grid View Control

I recently came across a situation, where I had to use session management for GRID VIEW CONTROL. I had a search page where there was a grid displaying some data. Whenever a search was made, the data was fetched from the back end and displayed in the grid view. Now whenever the user navigates...
4

Add Row / Columns to GridView (Programmatically)

1) Create a DataTable object to which than we will bind the GridView DataTable dt = new DataTable();2) IF you need two columns than create two DataColumn objects DataColumn dc1 = new DataColumn("first", typeof(string)); DataColumn dc2 = new DataColumn("second", typeof(string));DataColumn dc3 =...
0
Database Basics using C#: The following demonstrates a Register Page where the user is allowed to register, by entering a username and password. These inputs are saved in a table in database and later verified when user wants to login using the login page. Section I:Code for Register Page   ...
0

SET PATH IN WINDOWS 7

Setting Path on Windows 7 Start -> Control Panel -> System -> Advanced Click on Environment Variables, under System Variables, find PATH, and click on it. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the...
0

Best place to learn Jquery

Check out this site http://jqfundamentals.com/book/index.h...
0

Simple AJAX Tutorial

As usual, we will use the good old "Hello, world!" as our very first example. We will begin with the code, and then we'll do a bit of explanation afterwards. If you haven't already done so, you should create a new ASP.NET website project in Visual Web Developer. The IDE will create a Default.aspx...
1

AJAX TabContainer Tutorial

An ASP.NET AJAX TabContainer creates a set of Tabs that can be used to save screen space and organize content. The TabContainer contains a number of TabPanel controls. You can place your controls inside each TabPanel. In this article, we will explore some common tips and tricks with the ASP.NET AJAX...
 

2011 ·Code-Studio by yrus.