button1.Attributes.Add("onclick","if(document.all.textbox1.value=='') {window.location='url';return false;} else{ return true;}");