I have a variablemode
which accepts values 2,3 and 4. Now my mode="2"
. Sometimes My mode value changes to 3 and 4. I want to perform same operation when mode = 2 and 3. Now mode="2" but breakpoint not enter inside if condition. Is my code is worong?? My Class
public string resigadd(string mode) //set resignation
{
string data = "";
if (if (mode== "2" || mode== "3"))
{
string data1;
}
else
{
//do something
}
rturn data;
}
Button Click
protected void Submit_Click(object sender, EventArgs e)
{
string str = emp.resigadd(ddmode.SelectedItem.Value)
}
emp
is the object of My Employee class