c# - Is it possible to position ValidatorCalloutExtender dynamically? -
I validate a text box that is programmed through two ajax validator callout extenders VB.net.I, But do I want to popup to appear next to a different textbox? Enter a 'to'; Font color = red & gt; I can tell how ajax popup where
as dim custval new CustomValidator custval.ID = "ValidPage" custval.ErrorMessage = "& lt to reveal the 'date' custval.SetFocusOnError = True custval.ForeColor = Drawing.Color.Red custval.EnableClientScript = true custval.ControlToValidate = cell.Controls (18) .id custval.ClientValidationFunction = "ClientValidate" custval.Display = ValidatorDisplay.None dim custvalex new AjaxControlToolkit.ValidatorCalloutExtender custvalex.ID = "VCEcustval" custvalex.TargetControlID = "ValidPage" custvalex.HighlightCssClass = "validatorCalloutHighlight" as "----------------------- ------ New CustomValidator custval2.ID = "ValidPage2" custval2 as the slow custval2 ---------------------------------- ErrorMessage = "& LT; Font color = red & gt; A date 'from' 'custval2.SetFocusOnError = Enter true custval2.ForeColor = Drawing.Color.Red custval2.EnableC LientScript = True cust22.ControlToValidate = cell.Controls (23) .ID custval2.ClientValidationFunction = "ClientValidate2" custval2.Display = New Ajax ControlTrinkKit as valuer display. New Diff CustomVLux 2 ValidatorCalloutExtender custvalex2.id = "VCEcustval2" custvalex2.TargetControlID = "ValidPage2" custvalex2.HighlightCssClass = "validatorCalloutHighlight" cell.Controls.Add (custval) '27 cell.Controls.Add (custvalex2) '28 cell.Controls.Add (custval2) '29 cell.Controls.Add (custvalex) '30 Festival ClientValidate (sender, Arges) {// both form fields get = $ preference ( '& lt;% = HiddenField1.ClientID% & gt;'); Var gets hid2 = $ ('& lt;% = HiddenField2.ClientID% & gt;'); Var hidval = hid.value; Var hid2val = hid2.value; Var txtdate1 = $ m (winter); Var txtdate2 = $ mill (hid2val); // Do you check the client side to make sure they have something (txtdate1.value! = '' & Amp; amp; txtdate2.value == '') {argsIsValid = false; } Else {args.IsValid = true; }} Function ClientValidate2 (sender, Arges) {// Get Get $ $ Both Form Fields preference ( '& lt;% = HiddenField1.ClientID% & gt;'); Var gets hid2 = $ ('& lt;% = HiddenField2.ClientID% & gt;'); Var hidval = hid.value; Var hid2val = hid2.value; Var txtdate1 = $ m (winter); Var txtdate2 = $ mill (hid2val); // Do you check the client side to make sure that they have something (txtdate2.value! = '' & Amp;; amp; txtdate1.value == '') {argsIsValid = false; } Else {args.IsValid = true; }}
I know that those two JavaScript functions can be separated. But how can I move a popup?
You probably have to control its status in CSS or Javascript I do it through the properties of server control Do not know a way of
How to reset the verifier popup using set_x and set_y javascript methods of callouts.
Comments
Post a Comment