i need to throw error and at a time i need to show another view (use multiview) my code is
but it throw error at time it never go to view2.i never enter any thing in textbox it shows error but i need the value and i select in dropdown as new and i need to show the viewi need both at a timeonindexchange protected void ddlprojectname_SelectedIndexChanged(object sender, EventArgs e)
{
//ddlprojectname.Attributes.Add("OnClick", "return sss()");
MultiView1.Visible = true;
MultiView1.SetActiveView(View2);
}
source code
validation code
function sss()
{
var sure=document.getElementById("ctl00_ContentPlaceHolder1_TextBox8").value;
if(sure=="")
{
alert("Enter Suresh");
document.getElementById('ctl00_ContentPlaceHolder1_TextBox8').focus();
return false;
}
}