Calling severside method form script
How to call server side method button click event from the client side script : Script : <%= Page.ClientScript.GetPostBackEventReference(btnClose, String.Empty) %>; Note : Place this code in the script to call the any sever-side method,
Issue While exporting Gridview to Excel while deployment
Issue While exporting Gridview to Excel Issue : Image is not showing in the Excel Solution : The URL must be ImageUrl="http://localhost:63360/Website/Images/help.gif" /> instead of ImageUrl="~/help.gif". So place URL in webcofig <add key="ImagePath" value="http://localhost:63360/Website/Images/"/> CodeBind
find the div inside the Gridview
How to find the div inside the Gridview (outside of gridview function) .aspx file <div id="tooltip" style="display: none;"></div> Code Behind file Make hide of the div foreach (GridViewRow row in gvdStatus.Rows) { if (row.RowType ==
Custom Paging with Numbers
Custom Paging with Numbers .aspx File <div> PageSize: <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="PageSize_Changed"> <asp:ListItem Text="10" Value="10" /> <asp:ListItem Text="25" Value="25" /> <asp:ListItem Text="50" Value="50" /> <asp:ListItem Text="75" Value="75" /> </asp:DropDownList> <hr /> <asp:GridView ID="gvCustomerDetails" runat="server">