you can simply make TextBox1& TextBox2 Mandatory
i.e this.TextBox1.Imandatory=true;
this.TextBox2.Ismandatory=true;
for validation you can use:
if(string.Isnullorempty(TextBox1.Text)||string.Isnullorempty(Textbox2.Text))
{
this.GetDialogBox().Show(this, CustomDialogBox.DialogBoxType.OkDialog, "you can add you own comment");
this.texBox1.focus();
}
Please look for busines.
