Posts

Showing posts from December, 2013

Add Item In Another Dropdownlist on selection of First Dropdownlist using Jquery

Add Item In Another Dropdownlist on selection of First Dropdownlist using Jquery Jquery Refrence and workinf Function < script type ="text/javascript" src ="http://code.jquery.com/jquery-1.10.1.min.js"></ script >     < script type ="text/javascript">         $(document).ready( function () {             $( "#drd1" ).change( function () {                 var selectedVal = $( this ).val();                 //  alert(selectedVal);                 if (selectedVal == "1" ) {                     $( "#drd2" ).get(0).option...

From Date Should Be Greater than To Date Check In asp.net

From Date Should Be Greater than To Date Check In asp.net Step :1 Design  web from .aspx page < div >         < asp : ScriptManager ID ="sm" runat ="server">         </ asp : ScriptManager >         From         < asp : TextBox ID ="txtFrom" runat ="server" OnTextChanged ="txtFrom_TextChanged" AutoPostBack ="true"></ asp : TextBox >         < cc1 : CalendarExtender ID ="CalendarExtender2" runat ="server" PopupButtonID ="txtFrom"             Enabled ="True" TargetControlID ="txtFrom" ClearTime ="True" TodaysDateFormat ="MM/dd/yyyy"             Format ="MM/dd/yyyy">         </ cc1 : CalendarExten...

Get GridView Selected Row on Button Click Event

Image
Get GridView Selected Row on Button Click Event Step 1: Design web form .aspx Page < div >         < asp : GridView ID ="gr" runat ="server" DataKeyNames ="Name" AutoGenerateColumns ="false"             AlternatingRowStyle-BackColor ="WhiteSmoke" Width ="40%" OnRowDataBound ="gr_RowDataBound"             OnSelectedIndexChanged ="GridView1_SelectedIndexChanged">             < HeaderStyle BackColor ="#3366ff" Font-Bold ="true" ForeColor ="White" />             < Columns >                 < asp : BoundField DataField ="Name" HeaderText ="Name" />          ...

GridView Row Single click Event for fetching its Data

Image
GridView Row Single click Event for fetching its Data   Step 1: Design web form .aspx Page       < asp : GridView ID ="gr" runat ="server" DataKeyNames ="Name" AutoGenerateColumns ="false"             AlternatingRowStyle-BackColor ="WhiteSmoke" Width ="40%" OnRowDataBound ="gr_RowDataBound"             OnSelectedIndexChanged ="GridView1_SelectedIndexChanged">             < HeaderStyle BackColor ="#3366ff" Font-Bold ="true" ForeColor ="White" />             < Columns >                 < asp : BoundField DataField ="Name" HeaderText ="Name" />              ...

GridView Row Double click Event for fetching its Data

Image
GridView Row Double click Event for fetching its Data Step 1: Design web from .aspx page   < asp : GridView ID ="gr" runat ="server" DataKeyNames ="Name" AutoGenerateColumns ="false"             AlternatingRowStyle-BackColor ="WhiteSmoke" Width ="40%" OnRowDataBound ="gr_RowDataBound"             OnSelectedIndexChanged ="GridView1_SelectedIndexChanged">             < HeaderStyle BackColor ="#3366ff" Font-Bold ="true" ForeColor ="White" />             < Columns >                 < asp : BoundField DataField ="Name" HeaderText ="Name" />                 < as...

Add Multiple Rows in Telerik Radgrid on Button click and Save its Data

Image
Add Multiple Rows in Telerik Radgrid on Button click and Save its Data Step 1: Design web form .aspx page   < div >         < asp : ScriptManager ID ="SM" runat ="server">         </ asp : ScriptManager >         < telerik : RadGrid ID ="RadGrid1" runat ="server" AutoGenerateColumns ="false" Width ="50%"             OnNeedDataSource ="RadGrid1_NeedDataSource" OnItemDataBound ="RadGrid1_ItemDataBound"             OnItemCommand ="RadGrid1_ItemCommand">             < MasterTableView DataKeyNames ="ID" CommandItemDisplay ="Top">                 < Columns >     ...