Click here to Skip to main content
15,169,508 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionReturn Value from Stored Procedure Pin
ahayw0116-Mar-10 9:06
Memberahayw0116-Mar-10 9:06 
AnswerRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:14
mveSandeep Mewara16-Mar-10 10:14 
GeneralRe: Return Value from Stored Procedure Pin
ahayw0116-Mar-10 10:23
Memberahayw0116-Mar-10 10:23 
GeneralRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:27
mveSandeep Mewara16-Mar-10 10:27 
GeneralRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:34
mveSandeep Mewara16-Mar-10 10:34 
GeneralRe: Return Value from Stored Procedure Pin
ahayw0116-Mar-10 10:34
Memberahayw0116-Mar-10 10:34 
GeneralRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:38
mveSandeep Mewara16-Mar-10 10:38 
QuestionDefaulting a DataView control with paging to the last page. Pin
Steven J Jowett16-Mar-10 8:00
MemberSteven J Jowett16-Mar-10 8:00 
I have DataView control with paging on an asp.net webpage. I have been asked if it is possible to default the DataView to the last page, rather than page 1.

So I tried this :-

Protected Sub telemetryGridView_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles telemetryGridView.PreRender
        If Not IsPostBack Then
            telemetryGridView.PageIndex = telemetryGridView.PageCount - 1
            telemetryGridView.DataBind()
        End If
    End Sub


I read somewhere that after setting the PageIndex I would need to call the DataBind method of the GridView.

The result is that the GridView still defaults to page 1.

Can anyone enlighten me as to where I am going wrong?

Thanks
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.

AnswerRe: Defaulting a DataView control with paging to the last page. Pin
Sandeep Mewara16-Mar-10 8:15
mveSandeep Mewara16-Mar-10 8:15 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
ASHISH GHADI18-Mar-10 23:02
MemberASHISH GHADI18-Mar-10 23:02 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
ASHISH GHADI18-Mar-10 23:08
MemberASHISH GHADI18-Mar-10 23:08 
Questionif statement in the html code in aspx page Pin
laziale16-Mar-10 6:39
Memberlaziale16-Mar-10 6:39 
AnswerRe: if statement in the html code in aspx page Pin
JHizzle16-Mar-10 6:41
MemberJHizzle16-Mar-10 6:41 
GeneralRe: if statement in the html code in aspx page Pin
laziale16-Mar-10 6:43
Memberlaziale16-Mar-10 6:43 
GeneralRe: if statement in the html code in aspx page Pin
JHizzle16-Mar-10 6:50
MemberJHizzle16-Mar-10 6:50 
AnswerRe: if statement in the html code in aspx page Pin
Sandeep Mewara16-Mar-10 6:44
mveSandeep Mewara16-Mar-10 6:44 
GeneralRe: if statement in the html code in aspx page Pin
laziale16-Mar-10 6:50
Memberlaziale16-Mar-10 6:50 
AnswerRe: if statement in the html code in aspx page Pin
Sandeep Mewara16-Mar-10 6:51
mveSandeep Mewara16-Mar-10 6:51 
GeneralRe: if statement in the html code in aspx page Pin
laziale16-Mar-10 7:03
Memberlaziale16-Mar-10 7:03 
AnswerRe: if statement in the html code in aspx page Pin
carlecomm16-Mar-10 18:30
Membercarlecomm16-Mar-10 18:30 
QuestionResponse.End() Pin
pss.srinivasan16-Mar-10 6:20
Memberpss.srinivasan16-Mar-10 6:20 
AnswerRe: Response.End() Pin
Sandeep Mewara16-Mar-10 6:38
mveSandeep Mewara16-Mar-10 6:38 
AnswerRe: Response.End() Pin
carlecomm17-Mar-10 16:17
Membercarlecomm17-Mar-10 16:17 
QuestionWeb User Controls(ascx) Pin
jonhbt16-Mar-10 5:47
Memberjonhbt16-Mar-10 5:47 
AnswerRe: Web User Controls(ascx) Pin
Sandeep Mewara16-Mar-10 5:58
mveSandeep Mewara16-Mar-10 5:58 

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.