Click here to Skip to main content
15,880,608 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
indian14330-Oct-17 8:13
indian14330-Oct-17 8:13 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
A_Griffin30-Oct-17 9:10
A_Griffin30-Oct-17 9:10 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
indian14330-Oct-17 9:15
indian14330-Oct-17 9:15 
QuestionDirectory name invalid error in asp.net Pin
AmKuSa25-Oct-17 2:19
AmKuSa25-Oct-17 2:19 
SuggestionRe: Directory name invalid error in asp.net Pin
Richard Deeming25-Oct-17 3:40
mveRichard Deeming25-Oct-17 3:40 
GeneralRe: Directory name invalid error in asp.net Pin
AmKuSa25-Oct-17 4:16
AmKuSa25-Oct-17 4:16 
GeneralRe: Directory name invalid error in asp.net Pin
Richard Deeming25-Oct-17 4:41
mveRichard Deeming25-Oct-17 4:41 
Questioncustom paging Pin
netbrain software22-Oct-17 0:29
netbrain software22-Oct-17 0: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 2:02
mveRichard Deeming24-Oct-17 2:02 
QuestionWhat is ASP.net roadmap for a beginner? Pin
Dinxen20-Oct-17 6:08
Dinxen20-Oct-17 6:08 
AnswerRe: What is ASP.net roadmap for a beginner? Pin
Richard Deeming20-Oct-17 6:20
mveRichard Deeming20-Oct-17 6:20 
QuestionCustom Tablix Sort Order Z-A Pin
jkirkerx19-Oct-17 11:30
professionaljkirkerx19-Oct-17 11:30 
AnswerRe: Custom Tablix Sort Order Z-A Pin
jkirkerx19-Oct-17 11:38
professionaljkirkerx19-Oct-17 11:38 
QuestionMVC RedirectToRouteResult Help Pin
Foothill18-Oct-17 9:23
professionalFoothill18-Oct-17 9:23 
SuggestionRe: MVC RedirectToRouteResult Help Pin
Richard Deeming18-Oct-17 9:51
mveRichard Deeming18-Oct-17 9:51 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 3:23
professionalFoothill19-Oct-17 3:23 
GeneralRe: MVC RedirectToRouteResult Help Pin
Richard Deeming19-Oct-17 9:25
mveRichard Deeming19-Oct-17 9:25 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 10:58
professionalFoothill19-Oct-17 10:58 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 4:44
professionalFoothill19-Oct-17 4:44 
GeneralRe: MVC RedirectToRouteResult Help Pin
Richard Deeming19-Oct-17 9:18
mveRichard Deeming19-Oct-17 9:18 
PraiseRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 10:59
professionalFoothill19-Oct-17 10:59 
QuestionPassword Reset works in debug environment but does not work after deployment Pin
Philip Hall16-Oct-17 6:50
Philip Hall16-Oct-17 6:50 
AnswerRe: Password Reset works in debug environment but does not work after deployment Pin
A_Griffin18-Oct-17 21:49
A_Griffin18-Oct-17 21:49 
GeneralRe: Password Reset works in debug environment but does not work after deployment Pin
Philip Hall19-Oct-17 5:10
Philip Hall19-Oct-17 5:10 
Generalcode for solving zero distortion tecniqueof image steganography Pin
Member 1346535714-Oct-17 9:43
Member 1346535714-Oct-17 9: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.