我有一个jquery移动页面,它使用对话框页面来执行操作。当单击按钮时,我执行代码后面的代码,但是我需要重定向或关闭对话框页面,因为某些原因它无效。这是我的对话框页面的代码:
<form id="form1" runat="server">
<div>
<div data-role="header" role="banner">
<h1 role="heading">Claim Issue?</h1>
</div>
<div data-role="content" data-theme="c" class="ui-corner-bottom ui-content ui-body-c" role="main">
<div data-role="fieldcontain">
<label for="CompanyLBL">Company:</label>
<asp:Label ID="CompanLBL" runat="server"></asp:Label>
</div>
<div data-role="fieldcontain">
<label for="IssueLBL">Issue:</label>
<asp:Label ID="IssueLBL" runat="server" Text="Label" ></asp:Label>
</div>
<div data-role="fieldcontain">
<label for="FBVersionLBL">Version:</label>
<asp:Label ID="FBVersionLBL" runat="server"></asp:Label>
</div>
<div data-role="button">
<asp:Button ID="ClaimBTN" runat="server" Text="Yes" onclick="ClaimBTN_Click" />
</div>
<a href="./Queue.aspx" data-role="button" data-rel="back" data-theme="c" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" class="ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all"><span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text">Cancel</span></span></a>
</div>
</div>
代码背后:
//Claim Issue
protected void ClaimBTN_Click(object sender, EventArgs e)
{
try
{
Tier2IssuesSDS.UpdateCommand = "UPDATE Tier2Issues SET Tier2ID = @Tier2ID, IssueStatusID = @IssueStatusID, DateLastModified = @DateLastModified, UserLastModified = @UserLastModified WHERE ID = @ID";
Tier2IssuesSDS.UpdateParameters["ID"].DefaultValue = Request.QueryString["IssueID"].ToString();
Tier2IssuesSDS.UpdateParameters["Tier2ID"].DefaultValue = Session["UserID"].ToString();
Tier2IssuesSDS.UpdateParameters["IssueStatusID"].DefaultValue = "2";
Tier2IssuesSDS.UpdateParameters["DateLastModified"].DefaultValue = DateTime.Now.ToString();
Tier2IssuesSDS.UpdateParameters["UserLastModified"].DefaultValue = Session["Username"].ToString();
Tier2IssuesSDS.Update();
Response.Redirect("~/Account/Tier 2/Admin/Mobile/Queue.aspx");
}
catch(Exception ex)
{
Response.Redirect("~/Account/Tier 2/Admin/Mobile/Queue.aspx");
}
}
我缺少什么或者让这个东西关闭对话框或成功地将浏览器重定向到起始页面的工作是什么?