Monday, March 26, 2012

Tab Navigation

Im using a gridview inside a tab(1) if i navigate to another tab(2) and then refresh on that tab(2) it takes me back to tab(1).

Anyone know how to fix this?

You need to persist the tab position in viewstate.

Errrh, how do i do that? example please.


Use

Session["PAGENO"] = iPageNo;

To retrieve
if Session["PAGENO"] == null
iPageNo = 1
else
iPageNo = Session["PAGENO"]


Hi, sorry you dont have a c# version do you?

try

if (Session["PAGENO"] == null)
iPageNo = 1;
else
iPageNo = Session["PAGENO"];


does not work, I take iPageNo is a int?


The i prefix indicates that iPageNo in an integer.

No comments:

Post a Comment