473,770 Members | 6,713 Online
Bytes | Software Development & Data Engineering Community
+ 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 1316
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 ParseChildrenAt tribute? Under VS 2003, the help
topic is

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconusingparse childrenattribu te.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(f alse)]
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.goo glegroups.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 ParseChildrenAt tribute? Under VS 2003, the help
topic is

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconusingparse childrenattribu te.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(f alse)]
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.W ebControls.WebC ontrol

'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************* *********@g47g2 00...legr oups.com...
ThunderMusic wrote:
ok, if I understand it well, if I put something like
[ParseChildren(f alse)]
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.W ebControls.WebC ontrol

'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
4781
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 user places the mouse pointer over it but only after a delay of say a second or two. I did manage to find the following: <style type="text/css"> <!-- .roll { font-family:Arial; font-size:14t;
6
1542
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
14028
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
1165
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 image the file selection button should be evoked.........can anyone help me. Thanks in advance.
2
2414
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 RichTextBox1, with the click of a button. Thanks in advance to anyone that can help me on this situation. :)
13
1559
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
3582
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 what the text size says in the CSS. Is there a cure for this? (Outside of a separate text only area of links for navigation, I'm already planning on doing this.) Thanks! (ps. I did try to research this, and no one mentions text size, just all the...
2
1820
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
1635
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. thz all
0
9591
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10225
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10053
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.