Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu Links Tab Indexes Acted Weird

Status
Not open for further replies.

Shelyn

Programmer
May 15, 2003
18
MY
Hi All,

I am new to the ASP.net and am trying to get this menu links work.

I have the style classes for active link and inactive link.
And here is the coding to load the path to the datalist.

currPath + "leaveSelMyNotification.aspx?TabIndex = 1"

It works well that it can trace the current Active link. But something strange happened. For don't know what reason, it load the pages twice for the first time access to that page. Since it loads the page twice, the second time the PostBack will become false and it will refresh the whole page again, and cause the values entered disappeared.

If I don't put the TabIndex, the page load only once and everything works fine.

Does anyone know what's happening?


Many Thanks,
Shelyn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top