thanks for your help.
it work properly.
if you never mind can I ask that
How can move the combobox value to next page ? or
How can use this combobox between form tag ?
I use combobox.asp file between the form tag ie
<html>
<head>
<script src="ComboBox.
js" type="text/javascript">
</script>
</head>
<body>
<form method=post action="http://dcilweb/combobox2.asp" id=empno name=empno>
<script type="text/javascript">
dm=new ComboBox("dm")
dm.add(
<%
MyConnectionString = "" // connection string
MySQLStatement = "SELECT employees.empno, employees.name " & _
"FROM employees ORDER BY employees.name"
.............
Response.Write(vbTab & "new ComboBoxItem('" & _
MyRecordset.Fields("name").Value & "', '" & _
MyRecordset.Fields("empno").Value & "')")
MyRecordset.MoveNext()
................. // combobox.asp coding
%>
)
</script>
</form>
</body>
</html>
it give error message that
"internet explorer can not open the internet site
http://dcilweb/combobox.asp operation aborted "
when I remove form tag ie <form method=post action="http://dcilweb/combobox2.asp" id=empno name=empno>
then it work properly.
In one page I want to use multiple combobox and user
select value and records will display next page ?
regards.
Mateen