Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Why my site is loading very slow? Pin
Mike Puddephat30-Jun-06 4:01
Mike Puddephat30-Jun-06 4:01 
AnswerRe: Why my site is loading very slow? Pin
RichardGrimmer30-Jun-06 4:40
RichardGrimmer30-Jun-06 4:40 
Questionproblem inside [modified] Pin
sandeep_thakur30-Jun-06 3:10
sandeep_thakur30-Jun-06 3:10 
AnswerRe: problem inside Pin
wEb GuRu...30-Jun-06 6:40
wEb GuRu...30-Jun-06 6:40 
Questiondropdownlist Pin
Ballita30-Jun-06 2:26
Ballita30-Jun-06 2:26 
AnswerRe: dropdownlist Pin
Sushant Duggal30-Jun-06 2:35
Sushant Duggal30-Jun-06 2:35 
AnswerRe: dropdownlist Pin
l0kke30-Jun-06 5:07
l0kke30-Jun-06 5:07 
QuestionCustomPaging in datagrid [modified] Pin
Nagraj Naik30-Jun-06 2:19
Nagraj Naik30-Jun-06 2:19 
Hi all,
I am implemeting custom paging in my datagrid.

Normally for inbuild paging we write navigation code

Sub Pageing_Routine(ByVal s As Object, ByVal e As DataGridPageChangedEventArgs)
SearchGrid.CurrentPageIndex = e.NewPageIndex
FillGrid()
End Sub

But as I am using custom paging I have to implement navigation code for navigation.

mycode is...


<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="FirstPage" text="[First Page]" oncommand="NavigationLink_Click" commandname="First">
<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="PreviousPage" text="[Previous Page]" oncommand="NavigationLink_Click" commandname="Prev">
<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="NextPage" text="[Next Page]" oncommand="NavigationLink_Click" commandname="Next">
<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="LastPage" text="[Last Page]" oncommand="NavigationLink_Click" commandname="Last">

<asp:datagrid id="SearchGrid" runat="server" autogeneratecolumns="False" onpageindexchanged="Pageing_Routine" allowpaging="True" pagesize="3" allowcustompaging="true" pagerstyle-visible="false">
..........




Protected Sub NavigationLink_Click(ByVal sender As [Object], ByVal e As CommandEventArgs)
Select Case e.CommandName
Case "First"
_currentPageNumber = 1
Case "Last"
_currentPageNumber = Int32.Parse(TotalPages.Text)
Case "Next"
_currentPageNumber = Int32.Parse(CurrentPage.Text) + 1
Case "Prev"
_currentPageNumber = Int32.Parse(CurrentPage.Text) - 1

End Select
SearchGrid.CurrentPageIndex = _currentPageNumber - 1
txtpagecount.Text = SearchGrid.PageCount (I expect Total Pages count but it is 1 every time)
FillGrid()
End Sub



If Any one knows something,Please share with me



Regards,
Nagraj





-- modified at 8:25 Friday 30th June, 2006
AnswerRe: CustomPaging in datagrid Pin
Frank Kerrigan30-Jun-06 6:30
Frank Kerrigan30-Jun-06 6:30 
QuestionAsp.net Scheduler Pin
aaraaayen30-Jun-06 1:28
aaraaayen30-Jun-06 1:28 
AnswerRe: Asp.net Scheduler Pin
psamy30-Jun-06 1:49
psamy30-Jun-06 1:49 
AnswerRe: Asp.net Scheduler Pin
Paddy Boyd30-Jun-06 2:52
Paddy Boyd30-Jun-06 2:52 
Questionhi Pin
Amit Agarrwal30-Jun-06 1:02
Amit Agarrwal30-Jun-06 1:02 
AnswerRe: hi Pin
PlayByTheRules30-Jun-06 1:05
PlayByTheRules30-Jun-06 1:05 
Generalproblem regarding Imageswapping Pin
Amit Agarrwal30-Jun-06 1:11
Amit Agarrwal30-Jun-06 1:11 
QuestionDatagrid item count while paging........ Pin
Nagraj Naik30-Jun-06 0:50
Nagraj Naik30-Jun-06 0:50 
AnswerRe: Datagrid item count while paging........ Pin
Amit Agarrwal30-Jun-06 1:07
Amit Agarrwal30-Jun-06 1:07 
AnswerRe: Datagrid item count while paging........ Pin
Tirthadip30-Jun-06 1:11
Tirthadip30-Jun-06 1:11 
GeneralRe: Datagrid item count while paging........ Pin
Nagraj Naik30-Jun-06 1:40
Nagraj Naik30-Jun-06 1:40 
AnswerRe: Datagrid item count while paging........ Pin
DIMPLE_R30-Jun-06 2:08
DIMPLE_R30-Jun-06 2:08 
AnswerThanks for help..... Pin
Nagraj Naik30-Jun-06 3:06
Nagraj Naik30-Jun-06 3:06 
QuestionNew Web 2.0 Site using .Net Pin
sbjc2330-Jun-06 0:28
sbjc2330-Jun-06 0:28 
QuestionMSWord HTTP Handler. Pin
deepaks329-Jun-06 23:49
deepaks329-Jun-06 23:49 
AnswerRe: MSWord HTTP Handler. Pin
Tirthadip30-Jun-06 1:34
Tirthadip30-Jun-06 1:34 
QuestionImage Control. and Event Handler. Pin
deepaks329-Jun-06 23:39
deepaks329-Jun-06 23:39 

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.