Hello Sir,
On Button_click event I have simple code below to compare strings in asp.net
string temp1=Button1.Text;// gives string "check"
string temp2="check";
if(string.Compare(temp1,temp2)== 0) //but it return -1
{
btnPreview.Text = "complete check";
}
what is wrong with this?
Can anybody help me ..?