Results 1 to 20 of 20

Thread: A name was started with an invalid character

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Resolved A name was started with an invalid character

    first line of the code below cause some error "A name was started with an invalid character".............what is the error??

    Code:
    <% Response.ContentType = "application/xml" %>
    
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml:stylesheet type = "text/xsl" href ="NBAGuideTransform.xsl"?>
    
    <TVSchedule>
    	<TVGuide>
    <%
    
    Dim adoConnect
    Dim adoRecordset
    
    Set adoConnect = Server.CreateObject("ADODB.Connection")
    
    adoConnect.open = "Provider=Microsoft.Jet.OLEDB.4.0;" & "DataSource=C:\NBATVGuide.mdb"
    
    Set adoRecordset = adoConnect.Execute("Select ProgramTitle, ProStartTime from tblNBASchedule order by ProStartTime")
    
    Do While Not adoRecordset.EOF
    	Response.Write "<ProgramTime>" + adoRecordset("ProStartTime") + "</ProgramTime>"
    	Response.Write "<ProgramTitle>" + adoRecordset("ProgramTitle") + "</ProgramTitle>"
    	adoRecordset.MoveNext
    Loop
    
    adoRecordset.Close
    
    set adoRecordset = Nothing
    
    %>
    	</TVGuide>
    </TVschedule>
    Last edited by kenny_oh; Dec 9th, 2005 at 08:59 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width