I have this Default page with multiple data-role, the structure is

Code:
<div data-role="page">
<a href="#login"></a>...
</div>
<div data-role="page" id="login">
<!-- Form elements here -->
</div>
When login event is clicked, the code is something like this

Code:
if (ok) {
Response.Redirect("Dashboard.aspx");
} else {
// Something goes wrong and display message
Response.Redirect("Default.aspx#login", true);
}
I expected it to redirect to the page with data-role login. But instead it goes to Default.aspx. Anyone tried this? I need it to redirect to #login page. Thanks a lot.