各位帮我看看这段代码为什么没有按顺序执行!
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Manage_register : System.Web.UI.Page
{
private readonly string SQLCONNECTIONSTRING = ConfigurationSettings.AppSettings[ "SQLCONNECTIONSTRING "].ToString();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void reset_Click(object sender, ImageClickEventArgs e)
{
userId.Text = " ";
userName.Text = " ";
userNise.Text = " ";
passWord.Text = " ";
rePassWord.Text = " ";
eMail.Text = " ";
sex.SelectedIndex = 1;
college.SelectedIndex = 0;
}
protected void register_Click(object sender, ImageClickEventArgs e)
{
string user_id = userId.Text.Trim();
string user_name = userName.Text.Trim();
string user_nise = userNise.Text.Trim();
string password = passWord.Text.Trim();
string repassword = rePassWord.Text.Trim();
string email = eMail.Text.Trim();
string test = sex.SelectedItem.Value.Trim();
string col_name = college.SelectedItem.Value.Trim();
string sub_name = subject.SelectedItem.Value.Trim();
int user_sex = 1;
if (test == "0 ")
{
&n