为什么我们在经典的asp中使用querystring?还有如何在经典的asp代码中使用它。 [英] why we use querystring in classic asp? also how to use it in classic asp code.

查看:81
本文介绍了为什么我们在经典的asp中使用querystring?还有如何在经典的asp代码中使用它。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是asp和dhow的新手如何在经典的asp code.please帮助中使用querystring的例子。

解决方案

http://www.codeguru.com/csharp/.net/net_asp/article.php/c19325/ [ ^ ]


您好,



请在IIS中创建a.asp并进行配置。



 <   html  >  
<% = Request.Form( < span class =code-string> fname)%>
<% = Request.Form( lname%>
< 表格 方法 = post action = a.asp >
名字:< 输入 类型 = text 名称 = fname > < br >
姓氏:< input type = text name = lname > < br > < br >
< ; 输入 type < span class =code-keyword> = 提交 value = 提交 >
<%
Response.Write(Request.Form( fname))
<%end if %>
< / form >
< / html >







现在创建b.asp并输入以下代码





 <   html  >  
<% = Request.Form( fname%>
<% = Request.Form( lname%>
< 表格 方法 = 获取 action = b.asp >
名字:< span class =code-keyword>< input type = text 名称 = fname > < br >
姓氏:< input type = text name = lname > < br > < br >
< 输入 type = 提交 = 提交 > ;
<%
Response.Write(Request.Form( fname))
<%end if %>
< / form >
< / html < span class =code-keyword>>







现在你得到了获取查询字符串的值。

i am new to asp & dont khow how to use querystring in classic asp code.please help by an example.

解决方案

http://www.codeguru.com/csharp/.net/net_asp/article.php/c19325/[^]


Hello,

Please create a.asp and configure in IIS.

<html>
<%=Request.Form("fname")%>
<%=Request.Form("lname")%>
<form method="post" action="a.asp">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br><br>
<input type="submit" value="Submit">
<%
Response.Write(Request.Form("fname"))
<% end if %>
</form>
</html>




Now create b.asp and put following code


<html>
<%=Request.Form("fname")%>
<%=Request.Form("lname")%>
<form method="get" action="b.asp">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br><br>
<input type="submit" value="Submit">
<%
Response.Write(Request.Form("fname"))
<% end if %>
</form>
</html>




Now you get the value for getting query string.


这篇关于为什么我们在经典的asp中使用querystring?还有如何在经典的asp代码中使用它。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆