selvi subramanian

selvi subramanian

  • NA
  • 799
  • 571.4k

i need to throw error and at a time i need to show

Sep 21 2012 6:42 AM
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 view
i need both at a time





onindexchange
 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;
}
}