Ask a Question related to ASP.NET General, Design and Development.
-
Elliot Rodriguez #1
Re: how to enable the required validators in javascript
Jenet:
Specify in the OnSubmit event of your FORM element the name of the
javascript function you want to call.
<form method=post onSubmit="return MyFormValidator();">
--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***
"Jenet" <Jenet@yahoo.com> wrote in message
news:ekv8$85SDHA.2036@TK2MSFTNGP10.phx.gbl...a> Hello,
>
> On the buton's onclick event, I need to call javascript function to enable> required validators.
>
> Can someone point me to an article or code snippets that will can help me
> with this?
>
> Thanks.
>
>
Elliot Rodriguez Guest
-
Enable pdf tool from javascript
Hi, I'm developing an air application that load pdf and I want to interact with pdf through my application user interface. Now I'm able to change... -
Validators Enable & Disable Issue
Hi Guys , I have used few validators on few fields in my form, i have a reset button which reset the current contents of those fields. When i do... -
ASP.NET Required field validators
Hi How can I stop a requiredfield validator from validating? The scenario is that my page has 2 modes "Add" & "Edit" I have a single form on... -
Required field validators do not while editing a row in a datagrid present in a composite control
Hi All, I have created a composite control and I have added a datagrid in it. I am dynamically adding an edit column for editing the data. Now I... -
Validators and javascript
How I can from client javascript know when one of my textboxes, Radio Button List, drop down box, etc... Validated to False when submitting the... -
Elliot Rodriguez #2
Re: how to enable the required validators in javascript
aaah using a RequiredFieldValidator... But why would you want to? Why not
use the existing validator code?
If youre concerned about lower level browsers being able to validate, then I
would suggest rolling your own validator code into a client script, then
using BrowserCaps to register it as required.
--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***
"Jenet" <Jenet@yahoo.com> wrote in message
news:uy6dpX6SDHA.1552@TK2MSFTNGP10.phx.gbl...> Elliot,
>
> Thanks for your reply.
>
> I put a button on the page. When I click the button, I want to attach a
> requiredfield validator. Is there a easy way to do it in javascript?
>
> Code behind file:
> Protected WithEvents RequiredFieldValidator As
> System.Web.UI.WebControls.RequiredFieldValidator
>
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> ' It is NOT working.
> btnSubmit.Attributes.Add("onclick",
> "RequiredFieldValidator.enable=true")
> End Sub
>
> Thanks.
>
>
> "Elliot Rodriguez" <elliotmrodriguez@hotmail.comSPAM!> wrote in message
> news:uXkCMG6SDHA.2768@tk2msftngp13.phx.gbl...> enable> > Jenet:
> >
> > Specify in the OnSubmit event of your FORM element the name of the
> > javascript function you want to call.
> > <form method=post onSubmit="return MyFormValidator();">
> >
> > --
> > Elliot M. Rodriguez, MCSD
> > *** It would take 227 cans of Mountain Dew to kill me***
> >
> >
> >
> > "Jenet" <Jenet@yahoo.com> wrote in message
> > news:ekv8$85SDHA.2036@TK2MSFTNGP10.phx.gbl...> > > Hello,
> > >
> > > On the buton's onclick event, I need to call javascript function to> me> > a> > > required validators.
> > >
> > > Can someone point me to an article or code snippets that will can help>> >> > > with this?
> > >
> > > Thanks.
> > >
> > >
> >
>
Elliot Rodriguez Guest
-
S. Justin Gengo #3
Re: how to enable the required validators in javascript
Jenet,
The required field validator has a control to validate property.
Try RequiredFieldValidator.ControlToValidate = [Control as String]
--
S. Justin Gengo
Web Developer / Programmer
Free Code Library At:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Jenet" <Jenet@yahoo.com> wrote in message
news:uy6dpX6SDHA.1552@TK2MSFTNGP10.phx.gbl...> Elliot,
>
> Thanks for your reply.
>
> I put a button on the page. When I click the button, I want to attach a
> requiredfield validator. Is there a easy way to do it in javascript?
>
> Code behind file:
> Protected WithEvents RequiredFieldValidator As
> System.Web.UI.WebControls.RequiredFieldValidator
>
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> ' It is NOT working.
> btnSubmit.Attributes.Add("onclick",
> "RequiredFieldValidator.enable=true")
> End Sub
>
> Thanks.
>
>
> "Elliot Rodriguez" <elliotmrodriguez@hotmail.comSPAM!> wrote in message
> news:uXkCMG6SDHA.2768@tk2msftngp13.phx.gbl...> enable> > Jenet:
> >
> > Specify in the OnSubmit event of your FORM element the name of the
> > javascript function you want to call.
> > <form method=post onSubmit="return MyFormValidator();">
> >
> > --
> > Elliot M. Rodriguez, MCSD
> > *** It would take 227 cans of Mountain Dew to kill me***
> >
> >
> >
> > "Jenet" <Jenet@yahoo.com> wrote in message
> > news:ekv8$85SDHA.2036@TK2MSFTNGP10.phx.gbl...> > > Hello,
> > >
> > > On the buton's onclick event, I need to call javascript function to> me> > a> > > required validators.
> > >
> > > Can someone point me to an article or code snippets that will can help>> >> > > with this?
> > >
> > > Thanks.
> > >
> > >
> >
>
S. Justin Gengo Guest



Reply With Quote

