Ask a Question related to ASP.NET General, Design and Development.
-
Herve MAILLARD #1
problem with button ASPX (running javascript) since I have added a control validator.
Hi,
J'ai un bouton ASPX qui doit déclencher un script java.
I have an ASPX button running a javascript.
To do this, I have added in the codebehind :
this.Btn_Debut.Attributes.Add("onclick","javascrip t:DatePicker('Selection_Ar
chives','Date_Debut')");
So far, no problem with this...
Then, I have added some controls validator. Then the button stop to works.
If I remove the validator, everythings run ok.
Can you help me ?
H. MAILLARD
Herve MAILLARD Guest
-
Validator for server control inside user control
Hello, I am facing a strange situation and have already spent a lot of time on this. I have a user control 'U' that consists of a... -
Adding Validator Control at runtime in a Custom Control
Hi Wim, How do we link the TextBox to this validator control class in runtime ? Could you please tell. Thanks _ Muds. Wim Hollebrandse... -
output text in control location; calling control javascript from page javascript
Hi; If you don't know, I'm just learning javascript and aspnet, but I have a pretty good grounding in windows programming. I'm trying to build a... -
Javascript and PHP page problem after adding new button
Hi I took over management of an established website that I discovered was written in php and javascript (I am only familiar with html). I... -
problem running aspx
Anytime I try to load an aspx file in my browser from my iis server or try to run the debugger in VS7 web project to debug aspx, I get Server... -
Philip Q [MVP] #2
Re: problem with button ASPX (running javascript) since I have added a control validator.
This is because the validator is adding it's own onClick attribute and
overriding your one. You can turn the off the client-side validation by
setting the EnableClientScript property to False.
"Herve MAILLARD" <rvmaillard@free.fr> wrote in message
news:3f1e4f73$0$16698$626a54ce@news.free.fr...this.Btn_Debut.Attributes.Add("onclick","javascrip t:DatePicker('Selection_Ar> Hi,
>
> J'ai un bouton ASPX qui doit déclencher un script java.
> I have an ASPX button running a javascript.
>
> To do this, I have added in the codebehind :
>> chives','Date_Debut')");
>
> So far, no problem with this...
>
> Then, I have added some controls validator. Then the button stop to works.
> If I remove the validator, everythings run ok.
>
> Can you help me ?
>
> H. MAILLARD
>
>Philip Q [MVP] Guest
-
John Saunders #3
Re: problem with button ASPX (running javascript) since I have added a control validator.
You might want to look at the following articles:
User Input Validation in ASP.NET (ASP.NET Technical Articles)
Review the validation framework in ASP.NET and walk through an example of
adding validation to a page. (11 printed pages)
[url]http://msdn.microsoft.com/library/en-us/dnaspp/html/pdc_userinput.asp[/url]
ASP.NET Validation in Depth (ASP.NET Technical Articles)
View a detailed examination of the workings of ASP.NET validation Web
controls. (15 printed pages)
[url]http://msdn.microsoft.com/library/en-us/dnaspp/html/aspplusvalid.asp[/url]
--
John Saunders
Internet Engineer
[email]john.saunders@surfcontrol.com[/email]
"Herve MAILLARD" <rvmaillard@free.fr> wrote in message
news:3f1e5aae$0$16662$626a54ce@news.free.fr...False.> Hi,
>
> I have set all the controls validator EnableClientScript property tothis.Btn_Debut.Attributes.Add("onclick","javascrip t:DatePicker('Selection_Ar> but it's still not running.
>
> So strange...
> H. MAILLARD
>
> "Herve MAILLARD" <rvmaillard@free.fr> a écrit dans le message de news:
> 3f1e4f73$0$16698$626a54ce@news.free.fr...>> > Hi,
> >
> > J'ai un bouton ASPX qui doit déclencher un script java.
> > I have an ASPX button running a javascript.
> >
> > To do this, I have added in the codebehind :
> >works.> > chives','Date_Debut')");
> >
> > So far, no problem with this...
> >
> > Then, I have added some controls validator. Then the button stop to>> > If I remove the validator, everythings run ok.
> >
> > Can you help me ?
> >
> > H. MAILLARD
> >
> >
>
John Saunders Guest



Reply With Quote

