📄 dynamiclist.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynamicList.aspx.cs" Inherits="MyDemo.List.DynamicList_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>动态填充的下拉列表</title>
<link rel="stylesheet" type="text/css" href="../css/main.css"/>
<script language=javascript>
function GetList(e) {
MyDemo.List.DynamicList_Default.GetSelectList(parseInt(e.value), doTest_callback);
}
function doTest_callback(res)
{
document.getElementById("DList").innerHTML = res.value;
res = null;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div class=content>
<h1>动态填充的下拉列表</h1><br />
<br>
请输入一个20以内的数字
<br>
<input type="text" id="myinput" onkeyup="GetList(this)"/>
<div id="DList">
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -