Microsoft Technology, .Net, BizTalk, Sharepoint & etc.

Liedong(Ken) Zheng, Senior SharePoint Developer at SIMPLOT

Validator and AJAX Tab

Posted by ken zheng on July 3, 2008

In this example, I use AJAX Tab and has RequiredFieldValidator in eacy tab. The challenge is I need to tell which validator is invalid and the container Tab is selected.
The parameter 0 is the RequiredFieldValidator , 1 is the tab control and 2 is the index

String js = string.Format(“if(document.getElementById(‘{0}’).isvalid ==false)$get(‘{1}’).control.set_activeTabIndex({2})”,cvlCategories.ClientID, tbcItemDetails.ClientID,1);
btnSave.Attributes.Add(“OnClick”, js);

One Response to “Validator and AJAX Tab”

  1. asdasd said

    qwerqwer

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>