Posts

Showing posts from May, 2014

MS Captcha with refresh button in asp.net

Image
MS Captcha with refresh button in asp.net Step 1: Design web from .aspx Page < form id ="form1" runat ="server">     < div >         < asp : ScriptManager ID ="sm" runat ="server">         </ asp : ScriptManager >         < asp : UpdatePanel ID ="up1" runat ="server">             < ContentTemplate >                 < cc1 : CaptchaControl ID ="Captcha1" runat ="server" CaptchaBackgroundNoise ="Low" CaptchaLength ="6"                     CaptchaHeight ="80" CaptchaWidth ="350" CaptchaLineNoise ="None" CaptchaMinTimeout ="5"          ...

Change Tab order of controls inside Gridview

Image
Change Tab order of controls inside Gridview Normally tab order for controls inside Gridview is always next from its previous control . But in some scenario if you want to change tab order according to your requirement,you can use this approach.   Step 1: Design Web form .aspx page < div >         < asp : GridView ID ="gv" runat ="server" AutoGenerateColumns ="false"             BorderWidth ="0" GridLines ="None" CssClass ="w100p grid form" OnRowDataBound ="gv_RowDataBound"       AlternatingRowStyle-BackColor ="WhiteSmoke">             < HeaderStyle BackColor ="#3366ff" Font-Bold ="true" ForeColor ="White" />             < Columns >              ...

Count Number of Online user in Asp.net Application.

Image
Count Number of Online user in Asp.net Application. For getting count of User in your application, you need to add Global.aspx File in your project. After adding Global file just follow these simple 4 steps. Step 1:- Application setting code in Global.asax Global.asax <% @ Application Language ="C#" %> <% @ Import Namespace ="Telerik_controls_test" %> < script RunAt ="server">     void Application_Start( object sender, EventArgs e)     {         // Code that runs on application startup         Application[ "usercount" ] = 0;     }     void Application_End( object sender, EventArgs e)     {         //  Code that runs on application shutdown     }     void Application_Error( object sender, EventArgs e...

Set Maxlength to Multiline Textbox using J-Query

Image
Set Maxlength to Multiline Textbox using J-Query < head runat ="server">     < title ></ title >     < script >         function Check(textBox, maxLength) {             if (textBox.value.length > maxLength) {                 alert( "You cannot enter more than " + maxLength + " characters." );                 textBox.value = textBox.value.substr(0, maxLength);             }         }     </ script > </ head > < body >     < form id ="form1" runat ="server">     < div >     ...

Dropdown with checkbox List Control in Asp.net

Image
Dropdown with checkbox List Control in Asp.net Step 1: Design Web form .aspx page Css for Controls < style type ="text/css">         .PnlDesign         {             background-color : #FFF ;             border : 1px solid #8D8D8D ;             min-height : 71px ;             color : #333333 !important ;             font-family : 'HelveticaNeueRegular' ,Arial,Helvetica,sans-serif !important ;             font-size : 12px !important ;             font-weight : normal !important ;   ...