![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to make a control that can be used like this: csite:LocalizedHint id="hint1" runat="server" csite:Target a href="http://whereever.net"> my text</a /csite:Target csite:Source div class="special1">Click me!</div /csite:Source /csite:LocalizedHint Target and Source should be able to contain any controls and literal content. I, however, get the following parser error: Type 'Localization.Target' does not have a property named 'a'. How do I change Target and Source to accept anything? Casper |
#3
| |||
| |||
|
|
Coud you use a PlaceHolder control and dynamically add a linkbutton control to it? You could set the URL and target properties before adding the control to the PlaceHolder controls collection. Just an idea. "Casper Hornstrup" <ch (AT) csite (DOT) com> wrote in message news:uNgImLIxDHA.1076 (AT) TK2MSFTNGP11 (DOT) phx.gbl... I need to make a control that can be used like this: csite:LocalizedHint id="hint1" runat="server" csite:Target a href="http://whereever.net"> my text</a /csite:Target csite:Source div class="special1">Click me!</div /csite:Source /csite:LocalizedHint Target and Source should be able to contain any controls and literal content. I, however, get the following parser error: Type 'Localization.Target' does not have a property named 'a'. How do I change Target and Source to accept anything? Casper |
#4
| |||
| |||
|
|
Source> and <Target> need to contain any valid ASP.NET tags. The a and div tags are just examples. "Ken Cox [Microsoft MVP]" <BANSPAMken_cox (AT) sympatico (DOT) ca> wrote in message news:#MYBePPyDHA.3416 (AT) tk2msftngp13 (DOT) phx.gbl... Coud you use a PlaceHolder control and dynamically add a linkbutton control to it? You could set the URL and target properties before adding the control to the PlaceHolder controls collection. Just an idea. "Casper Hornstrup" <ch (AT) csite (DOT) com> wrote in message news:uNgImLIxDHA.1076 (AT) TK2MSFTNGP11 (DOT) phx.gbl... I need to make a control that can be used like this: csite:LocalizedHint id="hint1" runat="server" csite:Target a href="http://whereever.net"> my text</a /csite:Target csite:Source div class="special1">Click me!</div /csite:Source /csite:LocalizedHint Target and Source should be able to contain any controls and literal content. I, however, get the following parser error: Type 'Localization.Target' does not have a property named 'a'. How do I change Target and Source to accept anything? Casper |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |