boysilent
دوشنبه 15 خرداد 1391, 20:03 عصر
سلام دوستان این قسمت از برنامم مشکل داره یه نگاهی میندازید؟
protected void Button1_Click(object sender, EventArgs e)
{
string x = DropDownList1.SelectedItem.Value;
int n = int.Parse(x);
if (TextBox1.Text == "" && TextBox2.Text == "" && DropDownList1.SelectedItem.Value == "")
Label1.Text = "فیلدها را پر کنید".ToString();
switch(x){
case 1:
Response.Redirect("teacher.aspx");
}
}
}
فک کنم به متغیرا گیر میده؟؟
canot implicitly convert type int to string
protected void Button1_Click(object sender, EventArgs e)
{
string x = DropDownList1.SelectedItem.Value;
int n = int.Parse(x);
if (TextBox1.Text == "" && TextBox2.Text == "" && DropDownList1.SelectedItem.Value == "")
Label1.Text = "فیلدها را پر کنید".ToString();
switch(x){
case 1:
Response.Redirect("teacher.aspx");
}
}
}
فک کنم به متغیرا گیر میده؟؟
canot implicitly convert type int to string