[Mono-list] IValidate-Problem (URGENT!)

Jan Waiz hamburg at icomedv.de
Mon Nov 14 09:59:06 EST 2005


Hi All !!

 

View weeks ago i posted a Message about a Problem when trying to implement
Messagebox-Function. Up to know I did not get any answer - and I am still in
Trouble about that.

 

Now I am a little bit closer to the Problem :-) It is when using
IValidator-Interface.

 

I made some Controls that implement the IValidator-Interface to have a
central Validation-Behaviour. 

 

On the other Hand I try to implement a Querybox by calling:

 

oBotton.Attributes.Add( "onclick", "return confirm('Sure to delete?')" )

 

Now I look at the generated HTML-Code.

 

When running on Localhost (IIS/Windows) it look like:

 

<input type="submit" name="btnDele" value="Delete" 

onclick="return confirm('Sure to delete?'); if (typeof(Page_ClientValidate)
== 'function') Page_ClientValidate();" 

language="javascript" 

id="btnDele" 

style="border-width:1px;border-style:Solid;height:20px;width:100px;"/>

 

And it works.

 

When running from Mono, I have 2 (!!) onclick-Entry like:

 

<input type="submit" name="btnDele" value="Delete" 

onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate();" 

language="javascript" 

id="btnDele" 

onclick="return confirm('Sure to Delete?');" 

style="border-width:1px;border-style:Solid;height:20px;width:100px;" />

 

and that's why I did not works!

 

Does anyone have an Idea or (better *s*) a Solution whats wrong?

 

TIA

Jan Waiz

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20051114/2f0ac57f/attachment-0001.html


More information about the Mono-list mailing list