我有一个登录页面,单击登录按钮时,它会重定向到另一个 .aspx 页面,但带有回发。我希望不会发生单击按钮回发的情况。我想使用json。但我不知道如何在我的页面中使用它以及如何调用它。请告诉我如何避免使用 json 回发。我想为移动设备构建一个应用程序并使用 jquery 移动设备。
My code is
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
</title>
<link href="CSS/jquery.mobile-1.1.1.min.css" rel="stylesheet" type="text/css" />
<link href="CSS/my.css" rel="stylesheet" type="text/css" />
<script src="Js/jquery.min.js" type="text/javascript"></script>
<script src="Js/jquery.mobile-1.1.1.min.js" type="text/javascript"></script>
<script src="Js/my.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<%-- <asp:ScriptManager ID="scriptmngr" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="upnlData" runat="server" UpdateMode="Conditional">
<ContentTemplate>--%>
<div data-role="page" data-theme="d" id="page1">
<div data-theme="b" data-role="header">
<h3>
</h3>
<div style="">
<img style="width: 100px" src="Images/QuickMove.png" />
</div>
</div>
<div data-role="content" style="padding: 15px">
<div>
<p>
<b>
<span style="background-color: rgb(255, 255, 0);" data-mce-
style="background-color: #ffff00;">
</span>
<span style="background-color: rgb(255, 255, 255); color:
rgb(255, 102, 0);">
Survey Login
</span>
</b>
</p>
</div>
<div data-role="fieldcontain" style="width:100%">
<label ID="lblLoginMsg" SkinID="snkError" runat="server"
ForeColor="Maroon" Font-Bold="True"
Font-Size="Small"></label>
<fieldset data-role="controlgroup">
<label for="textinput2"><span style="font-family: times new
roman,times; font-size: medium;">
<strong>
Username
</strong>
</span>
</label>
<input name="" id="txtUserName" placeholder="" value="" type="text"
runat="server"/>
</fieldset>
</div>
<div data-role="fieldcontain" style="width:100%" >
<fieldset data-role="controlgroup">
<label for="txtPassword"> <span style="font-family: times new
roman,times; font-size: medium;">
<strong>
Password
</strong>
</span>
</label>
<input name="" id="txtPassword" placeholder="" value=""
type="password" runat="server"/>
</fieldset>
</div>
<div data-role="fieldcontain" style="width:100%" >
<%-- <button type="button" data-transition="fade" data-theme="b"
data-icon="check" data-iconpos="right" id="btnSignIn" value="Sign In"
runat="server" onclick="btnSignIn_Click" />--%>
<button id="btnSignIn" type="button" runat="server"
onserverclick="btnclick">Sign In</button>
</div>
<div data-theme="b" data-role="footer" data-position="fixed" >
<h4 style="font-size: 10px">
©QuickMove
</h4>
</div>
</div>
</div>
</form>
</body>