HighTechTalks DotNet Forums  

custom control

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss custom control in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Victor Rodriguez
 
Posts: n/a

Default custom control - 08-18-2007 , 01:04 PM






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


Reply With Quote
  #2  
Old   
Teemu Keiski
 
Posts: n/a

Default Re: custom control - 08-19-2007 , 11:04 AM






Hello,

I'de demonstrated that aspect on my blog post:
http://aspadvice.com/blogs/joteke/ar...n-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 (AT) newsgroups (DOT) nospam> wrote

Quote:
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




Reply With Quote
  #3  
Old   
Walter Wang [MSFT]
 
Posts: n/a

Default RE: custom control - 08-22-2007 , 11:26 PM



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 (AT) online (DOT) 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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.