Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Problem with LinkButton and AddAttributesToRender

Reply
Thread Tools

Problem with LinkButton and AddAttributesToRender

 
 
Henri
Guest
Posts: n/a
 
      10-03-2004
Hi,

I'm trying to design a custom LinkButton.
It inherits LinkButton as I need the implementation of the Click event (and
I don't know how to rewrite it).
I have to use AddAttributesToRender to render all the style attributes and
properties.
But as I want to specifie my own href attribute, I can't use LinkButton's
default AddAttributesToRender as it automatically adds its own href
attribute.
It would be great if I could call only WebControl's AddAttributesToRender
(LinkButton's parent class) but it doesn't seem possible to call it from my
class as it inherits LinkButton.
So do I need to rewrite completely WebControl's AddAttributesToRender
implementation to get rid of the href attribute added by LinkButton?
Do you have any solution?
Thanks

Henri



 
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
checkboxlist "AddAttributesToRender" TS ASP .Net Building Controls 6 02-23-2009 08:41 PM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net 3 09-08-2005 09:41 AM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net Datagrid Control 1 09-08-2005 08:44 AM
Custom CheckBox class not calling AddAttributesToRender Paul L ASP .Net Building Controls 0 03-17-2005 11:28 PM
Problem with custom LinkButton and AddAttributesToRender Henri ASP .Net 2 10-05-2004 09:10 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57