1

I am creating dynamically loading tabs using jquery Ui tabs in my ASP.NET mvc3 project.

Here i have a product page. The product page contains left menus like Customer,Address,Contact,etc..

Here my process is when i click one my left menus, the tab created dynamically with Grid records.

And,

I'm creating a custom role provider and I set a Authorize attribute specifying a role in my controller and it's working just fine, like this:

[Authorize(Roles="SuperAdmin")] public class SuperAdminController : Controller ...

If one user doens't have access to this controller, And click one of my left menu means, he's redirected to login page. Its also working fine.

The problem is after the user logged in it didn't redirect the proper page in tab content area.

If my problem not understandable means please let me know..

Thanks Advance...

4

1 回答 1

0

如果您仔细检查浏览器中的 URL,您会发现当您通过 Ajax 加载某些内容时,该 URL 并没有改变。这实际上是 Ajax 的重点,您不会加载整个页面,对吗?

现在,由于在您尝试使用 Ajax 加载内容时未保存状态,因此您的重定向 URL 只是您最初加载的页面。这就是为什么您无法返回要加载的选项卡的原因。

于 2012-06-29T10:52:20.893 回答