DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us