<option>business</option>
<option>popular_comp</option>
</select>
<input type=submit value="Lookup">
</form>
</center>
</body>
</html>
怎么样,看明白了吧。什么?这是个标准htm文件?对呀。喂,先别扔烂西红柿臭鸡蛋呀,看仔细了,虽然这是个标准的htm文件,但你把它存为后缀为.aspx的文件,然后在浏览器里运行一下,怎么样,没骗你吧,这就是一个不折不扣的asp+文件,你的第一个asp+程序。由于asp+向前兼容asp,所以任何一个asp文件都可以作为asp+文件来运行,下面让我们把上边这个文件稍微改动一下,把两个input前面的name 和 category分别改为姓名和分类,就象下面这个文件:
intro1c.aspx
<html>
<head>
<link rel="stylesheet"href="intro.css">
</head>
<body>
<center>
<form action="intro1.aspx" method="post">
<h3> 名字: <input id="Name" type=text>
分类: <select id="Category" size=1>
<option>psychology</option>
<option>business</option>
<option>popular_comp</option>
</select>
<input type=submit value="Lookup">
</form>
</center>
</body>
</html>
这次你再运行一下,发生什么?怎么,汉字都变成??号了?对,没错,表面上看是不支持汉字,但实际上我们是有办法解决的,找到winnt/complus/[version]/config.web这个文件,注意[version]是指NGWS的版本号,可能象这样:winnt/complus/1812.9/config.web,用记事本打开这个文件,找到如下几行:
<globalizat
<option>popular_comp</option>
</select>
<input type=submit value="Lookup">
</form>
</center>
</body>
</html>
怎么样,看明白了吧。什么?这是个标准htm文件?对呀。喂,先别扔烂西红柿臭鸡蛋呀,看仔细了,虽然这是个标准的htm文件,但你把它存为后缀为.aspx的文件,然后在浏览器里运行一下,怎么样,没骗你吧,这就是一个不折不扣的asp+文件,你的第一个asp+程序。由于asp+向前兼容asp,所以任何一个asp文件都可以作为asp+文件来运行,下面让我们把上边这个文件稍微改动一下,把两个input前面的name 和 category分别改为姓名和分类,就象下面这个文件:
intro1c.aspx
<html>
<head>
<link rel="stylesheet"href="intro.css">
</head>
<body>
<center>
<form action="intro1.aspx" method="post">
<h3> 名字: <input id="Name" type=text>
分类: <select id="Category" size=1>
<option>psychology</option>
<option>business</option>
<option>popular_comp</option>
</select>
<input type=submit value="Lookup">
</form>
</center>
</body>
</html>
这次你再运行一下,发生什么?怎么,汉字都变成??号了?对,没错,表面上看是不支持汉字,但实际上我们是有办法解决的,找到winnt/complus/[version]/config.web这个文件,注意[version]是指NGWS的版本号,可能象这样:winnt/complus/1812.9/config.web,用记事本打开这个文件,找到如下几行:
<globalizat
| 对此文章发表了评论 |

