473,471 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

want to have <cc:UserControl>some text and tags</cc:UserControl>... How?

Hi
I want to do just like in the subject ... to have some text and tags
between the start and end tags of my user-control.

Is there a simple way of doing that? for instance, between the tags, there
would be a table with <table>, <tr> and <td> and all the stuff I could need.
but everytime I try puting something between the tags, I get an error.

My control is all done, only this functionality is missing. Can someone help
me please?

Thanks

ThunderMusic
Dec 20 '05 #1
4 1302
ThunderMusic wrote:
Hi
I want to do just like in the subject ... to have some text and tags
between the start and end tags of my user-control.

Is there a simple way of doing that? for instance, between the tags, there
would be a table with <table>, <tr> and <td> and all the stuff I could need.
but everytime I try puting something between the tags, I get an error.

My control is all done, only this functionality is missing. Can someone help
me please?

Thanks

ThunderMusic


Hi,

have you looked at the ParseChildrenAttribute? Under VS 2003, the help
topic is

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconusingparsechildrenattribute.htm

(Which you may have to reassemble into one line).

Damien

Dec 20 '05 #2
ok, if I understand it well, if I put something like [ParseChildren(false)]
before my class, I should be able to put almost anything between my control
tags? I'm asking the question because I don't have access to my control
right now, but I want to know if I understood it well. will it work for a
usercontrol?

Thanks a lot

ThunderMusic

"Damien" <Da*******************@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
ThunderMusic wrote:
Hi
I want to do just like in the subject ... to have some text and tags
between the start and end tags of my user-control.

Is there a simple way of doing that? for instance, between the tags,
there
would be a table with <table>, <tr> and <td> and all the stuff I could
need.
but everytime I try puting something between the tags, I get an error.

My control is all done, only this functionality is missing. Can someone
help
me please?

Thanks

ThunderMusic


Hi,

have you looked at the ParseChildrenAttribute? Under VS 2003, the help
topic is

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconusingparsechildrenattribute.htm

(Which you may have to reassemble into one line).

Damien

Dec 20 '05 #3
ThunderMusic wrote:
ok, if I understand it well, if I put something like [ParseChildren(false)]
before my class, I should be able to put almost anything between my control
tags? I'm asking the question because I don't have access to my control
right now, but I want to know if I understood it well. will it work for a
usercontrol?

Thanks a lot

ThunderMusic

Hi,

Your original question seemed to concern a custom control, rather than
a user control (just guessing, since you had the cc: prefix). It works
for custom controls. E.g. from VB:

<ParseChildren(False)> _
Public Class Blarg
Inherits System.Web.UI.WebControls.WebControl

'Implement Custom Control Here
End Class

But I'm not sure how it would work with a user control. I've never
thought or tried to apply attributes to these. I'd have expected it to
be a directive of some kind, but I cannot see anything. Anyone else
know if it's possible to apply attributes to user controls?

Damien

Dec 21 '05 #4
anyway I've done it with a custom control instead of a user control, it
seemed easier that way.

thanks a lot

"Damien" <Da*******************@hotmail.com> a écrit dans le message de
news: 11**********************@g47g2000cwa.googlegroups. com...
ThunderMusic wrote:
ok, if I understand it well, if I put something like
[ParseChildren(false)]
before my class, I should be able to put almost anything between my
control
tags? I'm asking the question because I don't have access to my control
right now, but I want to know if I understood it well. will it work for a
usercontrol?

Thanks a lot

ThunderMusic

Hi,

Your original question seemed to concern a custom control, rather than
a user control (just guessing, since you had the cc: prefix). It works
for custom controls. E.g. from VB:

<ParseChildren(False)> _
Public Class Blarg
Inherits System.Web.UI.WebControls.WebControl

'Implement Custom Control Here
End Class

But I'm not sure how it would work with a user control. I've never
thought or tried to apply attributes to these. I'd have expected it to
be a directive of some kind, but I cannot see anything. Anyone else
know if it's possible to apply attributes to user controls?

Damien

Dec 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ian | last post by:
I'm wondering if someone can tell me what the best way to do this would be. I have a web page with a table which has some text in and I want the text size to be automatically enlarged when the...
6
by: sklett | last post by:
I'm curious... asp:Panel renderes a <div> tag, right? And you can have text in a div tag.... so why not have a Text property for the asp:panel control??
5
by: mitendra | last post by:
please give me information regarding this and help me to build my dream project of dictionary for disable pepole
3
by: Mathew George | last post by:
Hello, i have an html file having a html input button type=file. I want to replace the default browse text name with some other name if possible i want to place an image and onclick of the...
2
by: talon83 | last post by:
I'm new to programming and I was wondering how I would take two textboxes and have the text from TextBox1 enter on line 1 in RichTextBox1 and the text from TextBox2 to enter on line 2 in...
13
by: so many sites so little time | last post by:
say i want spacing in my text so instead of doing <br> <br> in between the lines or having to do <href = or <a href = for a link what could i do to have php enter to mysql or retrive it formated?
10
tpgames
by: tpgames | last post by:
I want to use an image map, but I want the text that pops up when the mouse mouse overs the link to be larger. However, in an image map, that text is what's in the ALT tag, and doesn't appear to care...
2
by: Zuhaib Hyder | last post by:
plz guide me i'm on ly abble to print image or either only text but i want to print header and footer text with the image in middle plz guide me, how to do it in asp.net and c#
1
by: foekall | last post by:
dear all, i would to ask, One of my php project, I was using so many text box. This text box can be dynamically add and remove. So I want to get this text box data dynamically. plz help me. ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.