![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#11
| |||
| |||
|
|
"Fabien Henriet" <fabien.henriet (AT) nospam (DOT) be> wrote in message news:uycCgTGSIHA.5128 (AT) TK2MSFTNGP05 (DOT) phx.gbl... I render the hiddenfield this way: Why? Have you tried simply to add the hidden field to your UserControl's markup just like any other control...? -- Mark Rae ASP.NET MVP http://www.markrae.net |
#12
| ||||
| ||||
|
|
Anyway, we thought a lot over that and the best way for us was to extend TextBox class and so on... |
|
I can't imagine you cannot add some attributes to an object. |
|
If I modify Text attribute, I can get its value, why can't I do that with another property? |
|
Can you give me a good tutorial with custom attributes and confirm me I can use them to solve my problem? |
#13
| |||
| |||
|
|
"Fabien Henriet" <fabien.henriet (AT) nospam (DOT) be> wrote in message news:eKXrZ3GSIHA.4684 (AT) TK2MSFTNGP06 (DOT) phx.gbl... Anyway, we thought a lot over that and the best way for us was to extend TextBox class and so on... Why? I can't imagine you cannot add some attributes to an object. You can... If I modify Text attribute, I can get its value, why can't I do that with another property? The Text attribute already exists for the TextBox control. I think the problem is that you are modifying the TextBox control far too late in the page lifecycle. Generally speaking, custom controls need to be created no later than Page_Init... Can you give me a good tutorial with custom attributes and confirm me I can use them to solve my problem? Create a UserControl which contains a TextBox and a HiddenField, and your problems will disappear... -- Mark Rae ASP.NET MVP http://www.markrae.net |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |