error in using css in asp/javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • puT3
    New Member
    • Jul 2008
    • 145

    #1

    error in using css in asp/javascript

    Hi,

    I want to use css for displaying data from database for better viewing. The problem that i have is it will appear error message when i run it.

    The error message is: "Microsoft JScript compilation error '800a03c' Expected';' out="<div class="box">"
    -------^

    The code that i use as below:
    Code:
    sql2 = "SELECT * FROM Cadangan";
    			rs = Server.CreateObject("ADODB.Recordset");
    			rs.Open(sql2,Conn);
    
    			out ="<div class="box">";
    			out +="<div class="box_content">"
    			
    			while(!(rs.EOF))
    			{
    				
    				out += rs("Cadangan")
    				out += rs("Nama") 
    				out += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + rs("Email")
    	        
    				rs.MoveNext();
    				
    				
    			}
    			
    			out += "</div>"
    			out += "</div>"
    			
    			rs.Close();
    			Response.Write(out);
    I really hope anyone help because I need to finish assignment since the due date is near.
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    you've found a solution for this, right?

    Comment

    • puT3
      New Member
      • Jul 2008
      • 145

      #3
      yes i have...thanks

      Comment

      • suncarl
        New Member
        • Apr 2010
        • 1

        #4
        out ="<div class='box'>";
        out +="<div class='box_cont ent'>";

        Comment

        Working...