insert code which require where clause
<p>i need to insert some data in a raw. suppose first i insert username, firstname lastname  etc and then i create a session "username" from the username field</p>

<p>now i need to insert gender, education, photourl where username= session"username"</p>

<p>i am using maltiview and view </p>

<pre><code>Protected Sub btnSubmitD1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        'Dim temp As Integer = (DateTime.Now.Subtract(Convert.ToDateTime("txtDOB.Text")).Days) / 365

        Dim objcmd As New SqlCommand((((("insert into Registration(UserName,FName,LName,Gender,Religion,Language,Status) values('" &amp; Session("UserName").ToString() &amp; "','") + txtFName.Text &amp; "','") + txtLName.Text &amp; "','" &amp; ddlGender.SelectedValue.ToString() &amp; "','") + txtReligion.Text &amp; "','") + txtMotherTongue.Text &amp; "','" &amp; ddlMaritalStatus.SelectedValue.ToString() &amp; "')", con)
</code></pre>
