ValidatorCallout not working with TextBoxes that use TextboxWaterMark Extenders

Last post 04-12-2007 12:00 PM by Ponkan. 1 replies.

Sort Posts:

  • ValidatorCallout not working with TextBoxes that use TextboxWaterMark Extenders

    02-28-2007, 10:48 PM

    Has anybody run into any issues with Validator callout error messages not displaying for textboxes (empty) that are tied to a TextBoxWatermark Extender?  I have a textbox and when I click a submit button or play with focus on/off the TextBox the Validator Callout message balloon never appears.

    Any way to get around this one?

    Thanks!

  • Re: ValidatorCallout not working with TextBoxes that use TextboxWaterMark Extenders

    04-12-2007, 12:00 PM
    • Member
      2 point Member
    • Ponkan
    • Member since 04-12-2007, 11:56 AM
    • Posts 1

    Hi,

     

    I use code below to get the validator to work after the watermarkexterner.

     

    protected void Page_Load(object sender, System.EventArgs e)
    {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "rename", "&lt;script type=\"text/javascript\"&gt;if (typeof(Page_ClientValidate_Org) == 'function')Page_ClientValidate_Org = Page_ClientValidate;delete Page_ClientValidate;</script>");
                Page.ClientScript.RegisterStartupScript(this.GetType(), "create", "&lt;script type=\"text/javascript\"&gt;function Page_ClientValidate(validationGroup){if (typeof(WebForm_OnSubmit) == 'function'){WebForm_OnSubmit();}if (typeof(Page_ClientValidate_Org) == 'function')return Page_ClientValidate_Org(validationGroup);else return true;}</script>");
    }
     
Page 1 of 1 (2 items)