View Single Post
  #10 (permalink)  
Old July 24th, 2007, 10:57 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I'm not sure why you get the error message you said but I can see at least two errors where you mix client-side and server-side code. The first is where you try to alert inside a server-side script block when there are no records, the second where you try to use document.write inside a server-side block. Try to simplify the code. Just open a connection to the database and then use Response.Write to write back the connectionString property and the connection.state. Forget all the other stuff and see how far you get.

--

Joe (Microsoft MVP - XML)
Reply With Quote