Asp.net quetions in login.aspx
<p>How to convert the below vb code to c# </p>

<pre><code>&lt;ItemTemplate&gt;
    &lt;a id="A1" href=&lt;%#"~/MemberPages/viewprofile.aspx?UserId="
        &amp; Eval("UserId").ToString %&gt; runat="server" &gt;             
               &lt;%#Eval("UserName")%&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/ItemTemplate&gt;
</code></pre>

<p>I tried the below but still showing the error  </p>

<p>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
Parser Error Message: The server tag is not well formed.
Source Error: </p>

<pre><code>Line 33:     &lt;div style="padding-left:10px"&gt;
Line 34:     &lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"&gt;
Line 35:     &lt;ItemTemplate&gt;        &lt;a id="A1" href="~/MemberPages/viewprofile.aspx?UserId="+ '&lt;%# Eval("UserId").ToString() %&gt;' runat="server" &gt;             
Line 36:                &lt;%#Eval("UserName")%&gt;&lt;/a&gt;&lt;br /&gt;    &lt;/ItemTemplate&gt;
Line 37:     &lt;/asp:Repeater&gt;


Source File: /WebSite1/login.aspx    Line: 35
</code></pre>
