Click here to Skip to main content
13,350,047 members (47,434 online)
   

ASP.NET

 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
indian14330-Oct-17 9:13
memberindian14330-Oct-17 9:13 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
A_Griffin30-Oct-17 10:10
memberA_Griffin30-Oct-17 10:10 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
indian14330-Oct-17 10:15
memberindian14330-Oct-17 10:15 
QuestionDirectory name invalid error in asp.net Pin
AmKuSa25-Oct-17 3:19
memberAmKuSa25-Oct-17 3:19 
SuggestionRe: Directory name invalid error in asp.net Pin
Richard Deeming25-Oct-17 4:40
mvpRichard Deeming25-Oct-17 4:40 
GeneralRe: Directory name invalid error in asp.net Pin
AmKuSa25-Oct-17 5:16
memberAmKuSa25-Oct-17 5:16 
GeneralRe: Directory name invalid error in asp.net Pin
Richard Deeming25-Oct-17 5:41
mvpRichard Deeming25-Oct-17 5:41 
Questioncustom paging Pin
netbrain software22-Oct-17 1:29
membernetbrain software22-Oct-17 1:29 
Hello friends,

I have 5 lac (or more in future) Data to access in my asp.net webform.
Currently using GridView with Custom Paging with repeater control.

Note : my codes are based on this :-

[^]

private void BindPager(int totalRecordCount, int currentPageIndex, int pageSize)
        {
            double getPageCount = (double)((decimal)totalRecordCount / (decimal)pageSize);
            int pageCount = (int)Math.Ceiling(getPageCount);
            List<ListItem> pages = new List<ListItem>();
            if (pageCount > 1)
            {
                pages.Add(new ListItem("FIRST", "1", currentPageIndex > 1));
                for (int i = 1; i <= pageCount; i++)
                {
                    if (i == 1)
                    {
                        pages.Add(new ListItem(i.ToString(), i.ToString(), i != currentPageIndex ));
                    }
                    else
                    {
                        pages.Add(new ListItem(i.ToString(), i.ToString(), i != currentPageIndex + 1));
                    }
                }
                pages.Add(new ListItem("LAST", pageCount.ToString(), currentPageIndex < pageCount - 1));
            }

            rptPager.DataSource = pages;
            rptPager.DataBind();
        }


But this
=>code is not functioning well for page no "1" and "First" option.
=>It generates around 10,000 (Page No) links if my page size is 50 records/page, which is look too odd.
=>facing sorting issue with this.


Can anyone tell me solution for the above or give me some alternative.
AnswerRe: custom paging Pin
Richard Deeming24-Oct-17 3:02
mvpRichard Deeming24-Oct-17 3:02 
QuestionWhat is ASP.net roadmap for a beginner? Pin
Dinxen20-Oct-17 7:08
memberDinxen20-Oct-17 7:08 
AnswerRe: What is ASP.net roadmap for a beginner? Pin
Richard Deeming20-Oct-17 7:20
mvpRichard Deeming20-Oct-17 7:20 
QuestionCustom Tablix Sort Order Z-A Pin
jkirkerx19-Oct-17 12:30
professionaljkirkerx19-Oct-17 12:30 
AnswerRe: Custom Tablix Sort Order Z-A Pin
jkirkerx19-Oct-17 12:38
professionaljkirkerx19-Oct-17 12:38 
QuestionMVC RedirectToRouteResult Help Pin
Foothill18-Oct-17 10:23
professionalFoothill18-Oct-17 10:23 
SuggestionRe: MVC RedirectToRouteResult Help Pin
Richard Deeming18-Oct-17 10:51
mvpRichard Deeming18-Oct-17 10:51 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 4:23
professionalFoothill19-Oct-17 4:23 
GeneralRe: MVC RedirectToRouteResult Help Pin
Richard Deeming19-Oct-17 10:25
mvpRichard Deeming19-Oct-17 10:25 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 11:58
professionalFoothill19-Oct-17 11:58 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 5:44
professionalFoothill19-Oct-17 5:44 
GeneralRe: MVC RedirectToRouteResult Help Pin
Richard Deeming19-Oct-17 10:18
mvpRichard Deeming19-Oct-17 10:18 
PraiseRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 11:59
professionalFoothill19-Oct-17 11:59 
QuestionPassword Reset works in debug environment but does not work after deployment Pin
Philip Hall16-Oct-17 7:50
memberPhilip Hall16-Oct-17 7:50 
AnswerRe: Password Reset works in debug environment but does not work after deployment Pin
A_Griffin18-Oct-17 22:49
memberA_Griffin18-Oct-17 22:49 
GeneralRe: Password Reset works in debug environment but does not work after deployment Pin
Philip Hall19-Oct-17 6:10
memberPhilip Hall19-Oct-17 6:10 
Generalcode for solving zero distortion tecniqueof image steganography Pin
Member 1346535714-Oct-17 10:43
memberMember 1346535714-Oct-17 10:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy |
Web02 | 2.8.180111.1 | Last Updated 19 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid