web 2.0

How to used ASP & Listmenu/Select Menu

How to used ASP & Listmenu/Select Menu This the tutorial/example a scripts how to use ASP & Listmenu/Select Menu

ShotDev Focus:
- ASP & Listmenu/Select Menu

Example

asp_listmenu1.asp


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form action="asp_listmenu2.asp" method="post" name="form1">
List Menu 1<br>
<select name="lmName1">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>
<hr>
List Menu 2<br>
<select name="lmName2" size="5">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>
<hr>
List Menu 3<br>
<select name="lmName3" size="5" multiple>
<option value="x">x</option>
<option value="y">y</option>
<option value="z">z</option>
</select><br>
<input name="btnSubmit" type="submit" value="Submit">
</form>
</body>
</html>

asp_listmenu2.asp


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write Request.Form("lmName1")
Response.write "<hr>"

Response.write Request.Form("lmName2")
Response.write "<hr>"

Dim i
i = 0
For Each txtVol in Request.Form("lmName3")
Response.write i & " = " & txtVol & "<br>"
i = i + 1
Next

Response.write "<hr>"
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_listmenu1.asp

Screenshot

ASP & Listmenu/Select Menu

ASP & Listmenu/Select Menu
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.