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
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