S
Sat Oct 29 10:39:40 CDT 2005
This is a multi-part message in MIME format.
------=_NextPart_000_00B2_01C5DCA7.5BB64C10
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi,
You'll need to perform a check yourself by looking at the =
CurrentPageIndex property and comparing it with recordcount divided by =
pagesize. If the CurrentPageIndex is larger, reset it to the value you =
get when you divded the recordcount and page size.=20
HTH,
Altaf
-------------------------------------------------------------------------=
-------
All that glitters has a high refractive index.=20
www.mendhak.com=20
"Pradeep" <Pradeep@discussions.microsoft.com> wrote in message =
news:A532C433-F021-40D7-8D6C-20735FF5E1AE@microsoft.com...
Hi,=20
Here is my issue. I have a datagrid on my aspx page. I have paging =
enabled=20
for the datagrid. Suppose Suppose I have 3 pages in my datagrid. When =
I go to=20
the last page (which is the 3rd page here) and select all the messages =
and=20
delete, since the delete is on a page level, it deletes all the =
messages on=20
that page. But the problem is that since now my datagrid doesnt' have =
a 3rd=20
page and I am still on the 3rd page, its throwing an error. Any=20
ideas/solutions on how to tackle this.
Thanks in advance.
Pradeep
------=_NextPart_000_00B2_01C5DCA7.5BB64C10
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>You'll need to perform a check yourself =
by looking=20
at the CurrentPageIndex property and comparing it with recordcount =
divided by=20
pagesize. If the CurrentPageIndex is larger, reset it to the value =
you get=20
when you divded the recordcount and page size. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>HTH,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Altaf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><BR> </DIV>
<DIV>
<HR align=3Dleft width=3D"50%">
</DIV>
<DIV><FONT face=3DTahoma size=3D2>All that glitters has a high =
refractive index.=20
<BR><B><A href=3D"
http://www.mendhak.com">www.mendhak.com</A></B> =
</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Pradeep" <<A=20
=
href=3D"mailto:Pradeep@discussions.microsoft.com">Pradeep@discussions.mic=
rosoft.com</A>>=20
wrote in message <A=20
=
href=3D"news:A532C433-F021-40D7-8D6C-20735FF5E1AE@microsoft.com">news:A53=
2C433-F021-40D7-8D6C-20735FF5E1AE@microsoft.com</A>...</DIV>Hi,=20
<BR> Here is my issue. I have a datagrid on my aspx page. I have =
paging=20
enabled <BR>for the datagrid. Suppose Suppose I have 3 pages in my =
datagrid.=20
When I go to <BR>the last page (which is the 3rd page here) and select =
all the=20
messages and <BR>delete, since the delete is on a page level, it =
deletes all=20
the messages on <BR>that page. But the problem is that since now my =
datagrid=20
doesnt' have a 3rd <BR>page and I am still on the 3rd page, its =
throwing an=20
error. Any <BR>ideas/solutions on how to tackle this.<BR><BR>Thanks in =
advance.<BR>Pradeep</BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00B2_01C5DCA7.5BB64C10--