Posts

anchor tag font size applying inside divtag from codebehind c#

<div id = "sidenav" class = "column" runat = "server" > <table cellpadding = "10" cellspacing = "10" > <tr> <td> <ul id = "abcd" runat = "server" > <li><a href = "ViewEvents.aspx" > Events </a></li> <li><a href = "PhotoGalleries.aspx" > Photo Galleries </a></li> <li><a href = "InProgress.aspx" > Location </a></li> <li><a href = "InProgress.aspx" > Officials </a></li> <li><a href = "InProgress.aspx" > Honours Board </a></li> <li><a href = "InProgress.aspx" > History </a></li> <li><a href = "InProgress.aspx...

Display another page in modelpopupExtender

Hi All, In this example am displaying another pager in model pop up extender in page.  This is model pop up page.  <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>                                                  <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"                                                  TargetControlID="LinkButton1" PopupControlID="Panel2" BackgroundCssClass="modalBackground"         ...

Jquery autocomplete inside gridview dropdownlist

 <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />     <script src="http://code.jquery.com/jquery-1.8.3.js"></script>     <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>     <link rel="stylesheet" href="/resources/demos/style.css" />     <style>     .ui-combobox {         position: relative;         display: inline-block;     }     .ui-combobox-toggle {         position: absolute;         top: 0;         bottom: 0;         margin-left: -32px;         padding: 10;         /* adjust styles...

Gridview Peging Example

Image
public void ApplyPagingStyle(GridView GridView1)         {             GridViewRow row = GridView1.BottomPagerRow;             if (row != null)             {                 HtmlGenericControl ul = new HtmlGenericControl("ul");                 ul.Attributes.Add("class", "pagination clearfix");                 PlaceHolder ph;                 LinkButton lnkPaging;                 LinkButton btnFirstPage;    ...

Number Allignment in gridview for dynamic data display

  protected void dgBatting1_RowDataBound(object sender, GridViewRowEventArgs e)         {             DataTable dt=(DataTable)((GridView)sender).DataSource;             if (e.Row.RowType == DataControlRowType.DataRow)             {                 for(int i=0; i < e.Row.Cells.Count; i++)                 {                     if (dt.Columns[i].DataType == typeof(System.Int32) || dt.Columns[i].DataType == typeof(System.Decimal))                     { ...

Keyboard Shortcut Keys for Visual Studio

Ctrl-Del Delete next "word" Ctrl-Shift-S Saves all files and projects F7 Switches from the design view to the code view in the editor Shift-F7 Switches from the code view to the design view in the editor Shift-F8 or F8 Navigate to compile time errors Alt-Shift-A Add Existing Item(file) to selected project Ctrl-Shift-A Add New Item(file) to selected project F12 Moves the cursor to the selected method, variable, class definition. Ctrl-] Moves the cursor to the matching brace in the document. If the cursor is on an opening brace, this will move to the corresponding closing brace and vice versa Shift-Tab Moves current line or selected lines one tab stop to the left Ctrl-K, Ctrl-C Marks the current line or selected lines of code as a comment, using the correct comment syntax for the programming language Ctrl-K, Ctrl-U Rem...

Find control in gridview_rowcommand event

 protected void dgAvailability_RowCommand(object sender, GridViewCommandEventArgs e)         {             try             {                 if (e.CommandName == "Save")                 {                     GridViewRow row = (GridViewRow)(((Button)e.CommandSource).NamingContainer);                     DropDownList ddl = (DropDownList)row.Cells[3].FindControl("ddlResponse");                     BFixturePlayer obj...