Click here to Skip to main content
15,888,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Regular Expression to get only the first 30 alphabets from a big string Pin
A_Griffin2-Nov-17 9:41
A_Griffin2-Nov-17 9:41 
AnswerRe: Regular Expression to get only the first 30 alphabets from a big string Pin
Richard Deeming2-Nov-17 10:19
mveRichard Deeming2-Nov-17 10:19 
Question.net web form application using javascript Pin
dcof31-Oct-17 4:33
dcof31-Oct-17 4:33 
AnswerRe: .net web form application using javascript Pin
ZurdoDev31-Oct-17 5:49
professionalZurdoDev31-Oct-17 5:49 
GeneralRe: .net web form application using javascript Pin
dcof31-Oct-17 12:02
dcof31-Oct-17 12:02 
GeneralRe: .net web form application using javascript Pin
ZurdoDev31-Oct-17 14:27
professionalZurdoDev31-Oct-17 14:27 
GeneralRe: .net web form application using javascript Pin
dcof1-Nov-17 4:42
dcof1-Nov-17 4:42 
GeneralRe: .net web form application using javascript Pin
ZurdoDev1-Nov-17 4:46
professionalZurdoDev1-Nov-17 4:46 
QuestionI am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
indian14330-Oct-17 9:12
indian14330-Oct-17 9:12 
AnswerRe: I am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
Wendelius30-Oct-17 9:18
mentorWendelius30-Oct-17 9:18 
GeneralRe: I am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
indian14330-Oct-17 11:04
indian14330-Oct-17 11:04 
AnswerRe: I am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
Wendelius30-Oct-17 18:22
mentorWendelius30-Oct-17 18:22 
QuestionGridView New Record from Empty Cell Pin
Member 1130123127-Oct-17 8:35
Member 1130123127-Oct-17 8:35 
Questionnpm install is failing with the below errors Pin
indian14325-Oct-17 10:24
indian14325-Oct-17 10:24 
QuestionWriting a Web Application from scratch for online trading company - need some tips for security Pin
indian14325-Oct-17 7:59
indian14325-Oct-17 7:59 
AnswerRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
A_Griffin26-Oct-17 1:32
A_Griffin26-Oct-17 1:32 
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 

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.