Data binding in Classic ASP
-
Is it possible to do data data binding in Classic ASP. If so, are there any good examples on the web or any on the tip of your brains? Any help is more than welcome Thanks
-
Is it possible to do data data binding in Classic ASP. If so, are there any good examples on the web or any on the tip of your brains? Any help is more than welcome Thanks
Hi, This is the way i usually bind data to asp controls <% 'get friends getFriendsSQL = "SELECT [ID], [Name] FROM Friends ORDER BY [Name] ASC" set friendsRS = searchConn.execute(getFriendsSQL) if not friendsRS.eof then friendsCheck = friendsRS.getRows friendsCount = ubound(friendsCheck,2) end if %> <select name="friendSelect"> <option value="0">- -<i>Select Friend</i>- -</option> <% if isArray(friendsCheck) then for u = 0 to friendsCount %> <option value="<%= friendsCheck(0, u) %>"><%= friendsCheck(1, u) %></option> <% next end if %> </select> Hope this helps.