asp fill dataset

liunx

Guest
:) Hi to everyone!
I need some help!
I use Visual Studio 2003 and i want to work with web forms(ASP).I would like to ask how to fill the dataset and show the results into a combobox and if there is a datetimepicker because i haven't found it yet.
Thanks!!!!:) :DTo get a datetimepicker you will probably need to use javascript unless you move up to ASP.NET. As for the filling in of a combobox:<select name="name">
<option value="">Choose Something...</option><%
Dim rs
set rs = Server.createObject("ADODB.Recordset")
rs.open "SELECT id, names FROM table", objDC, 0
%>
<% If school.eof Then %>
response.write "No results were returned"
<% Else
While Not school.EOF
%>
<option value="<%= rs.fields("id") %>"><%= rs.fields("names") %></option><%
rs.movenext
wend
End If
%></select>I assume you are infact referring to ASP.NET. I will move this thread.
 
Back
Top