Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > custom control

Reply
Thread Tools

custom control

 
 
Victor Rodriguez
Guest
Posts: n/a
 
      08-18-2007
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
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      08-19-2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
 
 
 
 
Walter Wang [MSFT]
Guest
Posts: n/a
 
      08-23-2007
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 ((E-Mail Removed), 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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom control within a custom control J R M ASP .Net 2 06-01-2006 06:04 PM
Capturing event from other custom control within another custom control Jonah Olsson ASP .Net 1 04-05-2005 01:39 PM
Capturing event from other custom control within another custom control Jonah Olsson ASP .Net Web Controls 2 04-05-2005 12:56 PM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments