Friday, January 18, 2013

Using Filter in jquery


$("input[id*='chkListSubCat']:checkbox").click(function () {
                        if ($(this).is(':checked')) {
                            if ($(this).val() != "-1") {                                $("input[id*='chkListSubCat']:checkbox").filter('[value="-1"]').attr("checked", false);
                            }
                            else
                                $("input[id*='chkListSubCat']:checkbox").filter('[value!="-1"]').attr("checked", false);
                        }
                    });

Friday, January 4, 2013

Get page number from datapager control in asp.net


<asp:DataPager ID="listPager" runat="server"   PagedControlID="lviewEarnSearch" PageSize="10"   OnPreRender="listPager_PreRender" QueryStringField="pageid">
  <Fields>
    <asp:NumericPagerField />
    <asp:NextPreviousPagerField LastPageText=">>>" ShowNextPageButton="false" ShowLastPageButton="True" ShowPreviousPageButton="False" />
  </Fields>
</asp:DataPager>

"QueryStringField" is used for Get Page Number of paging. 

Thursday, January 3, 2013

Search

Custom Search
Protected by Copyscape Plagiarism Software