can't run file extension aspx even it start server
<p>here is my code in my aspx file when i run it. it's show all code in the browser. i think it's maybe i don't import namespace but when i import it's still the same.</p>

<pre><code>&lt;% page language="VB" %&gt;
&lt;!DOCTYPE html PUBLIC "......."&gt;
&lt;%@ Import Namespace="System.Data" %&gt;
&lt;%@ Import Namespace="System.Data.sqlClient" %&gt;
&lt;script language="vb" runat="server"&gt;
Private con As SqlConnection
Private command As SqlCommand
Private reader As SqlDataReader

sub Page_Load
        con = New SqlConnection("data source=ASUS-PC; database=personal; user id=sa; password=xxxxx;")
        con.Open()
end sub


&lt;/script&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body&gt;
</code></pre>


                
                    
                    
                    
                    
                    
                
     

<p>
</p>
