Sunday, October 23, 2011

Mis. coding tit-bits



Tuesday, September 27, 2011

Redirection Process




Wednesday, September 21, 2011

Form Authentication

Form Authentication

Tuesday, September 20, 2011

TinyMCE Editor

Integrate TinyMce Editor in Asp.Net with Validation

Some Lesser Known C# Operators

Some Miscellaneous Coding Tips

Monday, September 19, 2011

2. Captcha Control in asp.net

2. Captcha Control in asp.net

Friday, August 26, 2011

1. Captcha Control in asp.net



1. Captcha Control in Asp.Net

Wednesday, August 3, 2011

Jquery Calendar in asp.net

JQuery Calendar

Monday, August 1, 2011

To make Ajax work on Live Server

TO MAKE AJAX RUN ON LIVE SERVER

Format Text for Input



To Clear Special Characters

Javascript Message Display

Javascript message box

Sunday, June 19, 2011

Gridview Header Checkbox CheckAll

GridView_Alphabetic Paging

Displaying two columns in dropdownlist

GridView Sorting


Pre Selecting Items In Dropdownlist In Gridview Edit Mode

How To Post HTML/Java Code in your blog posts

Removing the blogger navigation bar from a template

To control excess data to display in gridview cell


Change row color in Gridview on mouse over

If you have the need to change the row color of a row in a gridview when you mouse over (and mouse out) you can add some code to the RowDataBound event.
Here is a sample:

GridView with clickable rows

If you need to have a GridView with rows that you can click on you will need to set the onClick event for each row.
Here is a code sample for the RowDataBound event of a GridView.
This examples pulls the value of cell 0 and appends it to the url.

Gridview Pager Formatting


Format Gridview Cell Data with OnRowCreated function

Auto_Tab Script

TableToString_ListToTable_Use2

TableToString_ListToTable_Use1

TableToString_ListToTable_Use

dbo.NameWithCommaa

dbo.ListToTable

dbo.TableToString

[dbo].[UTILfn_Split]

Sql Utility Stored Procedures


List down the DataType and Size Of all Columns of All Tables in a SQL Server 2005/2008 Database



StoredProc to Delete All Tables,SPs,Views,Triggers From a Database


Just run this query on the Selected Database....

HighSlidePopUp Using values in HTML.


(When values are availabe in HTML i.e In Eval)

HighSlidePopUp Using codeBehind Values

(When values are available in code behind eg. in viewstate etc.)

LogIn PopUp

Open Login box in a PopUp

Friday, June 17, 2011

SQL Random List Of Records


GridView:- LinkButtons_AnchorTag_HyperLinks



File Upload with File-Type Check

Function To Clear the Controls

File Upload: Thumbnail

Change Status Function-2

Change Status Function

Url Function: Status Image

Generate Random Password..

JQuery Validation on Multiline Textbox Character Count..

Javascript validation on multiline texbox for character count

At Least 'n' Characters required..

At Least 'n' Characters required..

ImageType Validation in File Upload Control


CheckBox Validation: JavaScript

CheckBox Validation: JavaScript

TO CHECK IF EMAIL ALREADY EXISTS


AJAX:- TO CHECK IF EMAIL ALREADY EXISTS....

Tuesday, June 14, 2011

Only Numbers

Javascript textbox validation to allow only numbers, decimal and backspace

Saturday, May 28, 2011

GridView1_PageIndexChanging Event


Gridview_RowDeleting Event


Gridview_RowCanceling Event


Gridview_RowEditing Event


Gridview_RowCommand Event



Gridview_RowCreated Event

 protected void grdData_RowCreated(object sender, GridViewRowEventArgs e)
 {
  if ((e.Row.RowType == DataControlRowType.DataRow) &&  
                       (e.Row.RowState == DataControlRowState.Selected))
   {        
   string strCellvalue = DataBinder.Eval(e.Row.DataItem, "categoryname").ToString();     if (strCellvalue == "Admin")      
    {
      e.Row.BackColor = System.Drawing.Color.LightPink;
    }
  }
 }


Gridview Row_DataBound Event

Gridview Total For Current Page

 

To Show Gridview Total on Current Page

Sunday, May 15, 2011

Convert commaString To Int Array

Convert commaString To Int Array

Convert Int Array To Comma Strings

CONVERT INTEGER ARRAY TO COMMA STRINGs

Twitter Delicious Facebook Digg Stumbleupon Favorites More