|
|
|
start date: Sat, 18 Aug 2007 12:04:26 -0500,
posted on: microsoft.public.dotnet.framework.aspnet.webcontrols
back
| Thread Index |
|
1
Victor Rodriguez am
|
|
2
Teemu Keiski
|
|
3
(Walter Wang [MSFT])
|
custom control
I have a custom control that generates a toolbar but I need to find out how
can I register each one of the buttons to causevalidation when they're
clicked. All the buttons are <a><img /></a>. I know how to make them
postback already but not to cause validation.
Thanks,
Victor
Date:Sat, 18 Aug 2007 12:04:26 -0500
Author:
|
Re: custom control
Hello,
I'de demonstrated that aspect on my blog post:
http://aspadvice.com/blogs/joteke/archive/2007/08/16/Mapping-of-attributes-to-control-properties-in-ASP.NET.aspx
Basically you generate the needed javascript by instantiating a
PostBackOptions instance to which you set PerforemValidation and
ValidationGroup properties. Passing this instance to
Page.ClientScript.GetPostBAckEventReference will give you the needed js
call.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Victor Rodriguez" <lasalsatx@newsgroups.nospam> wrote in message
news:513A7A8B-E8AE-46C1-807C-EF53416331E1@microsoft.com...
>I have a custom control that generates a toolbar but I need to find out how
>can I register each one of the buttons to causevalidation when they're
>clicked. All the buttons are <a><img /></a>. I know how to make them
>postback already but not to cause validation.
>
> Thanks,
>
> Victor
>
Date:Sun, 19 Aug 2007 18:04:58 +0300
Author:
|
RE: custom control
Thanks Teemu's input.
Hi Victor,
Since you're a MSDN subscriber, we're closely monitoring your posts.
Therefore I'm writing to ask if you need anything else in this question.
Thanks for using MSDN Managed Newsgroup support service!
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Date:Thu, 23 Aug 2007 03:26:02 GMT
Author:
|
|
|