Posts

Showing posts from December, 2012

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"                                                  DropShadow="true" OkControlID="OkButton" OnOkScript="ok()" CancelControlID="CancelButton" >                                                 </asp:ModalPopupExtender> This is modelpopup panel <asp:Panel ID="Panel2" runat="server" Style="display: none;width:802px;height:500px" >                           <div>             

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 for IE 6/7 */         }     .ui-combobox-input {         margin: 0;         padding: 0.3em;     }     .ui-autocomplete {     max-height: 300px;     overflow-y: auto;   /* prevent horizontal scrollbar */     overflow-x: hidden; /* add padding to account for vertical scrollbar */     z-index:500 !important; }    

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;                 LinkButton btnPrevPage;                 LinkButton btnNextPage;                 LinkButton btnLastPage;                 Label lblpagesize;                 DropDownList ddlPageSize;                 Label lblsizedetails;                 HtmlGenericControl li1 = new HtmlGenericControl("li");                 btnFirstPage = new LinkButton();                 btnFirstPage.CssClass = "first";                 btnFirstPage.CommandName = "Page";                 btnFirstPage.CommandArgument = "first";