-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default.aspx
29 lines (26 loc) · 960 Bytes
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type ="text/javascript">
function a(){
document.getElementById("Button1").click();
}
</script>
<title></title>
</head>
<body>
<!--这个页面用来测试通过Js来跳转到后台C#逻辑-->
<form id="form1" runat="server">
<div>
<input type="button" value="htmlButton" onclick="a()" />
</div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" style="display:none"/>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</form>
</body>
</html>