|
-
Jul 7th, 2003, 03:43 AM
#1
-
Jul 7th, 2003, 08:24 AM
#2
PowerPoster
The literal control renders static text. for example:
Code:
<b>The literal control spit me out!</b>
-
Jul 7th, 2003, 11:30 AM
#3
PowerPoster
To go a little further, you can include html tags in the text so they will format the text when displayed.
LiteralControl lc = new LiteralControl("<b>This is going to show up bold</b>");
-
Jul 7th, 2003, 04:35 PM
#4
umm thanks, second day working with asp.net still confused about a lot of stuff, hehe
edit: aah
I've got this stupid book, too easy, read 130 pages of it in a day
I dont understand why they used literalcontrol. They are just adding plain text (no formatting, no html tags) to a tablecell
VB Code:
Dim cellFont As New TableCell
' ff is just a fontFamily var
cellFont.Controls.Add(New LiteralControl(ff.Name))
' why dont they use this instead?
' cellFont.Text = ff.Name
what's the point of a literal control there?
Last edited by MrPolite; Jul 7th, 2003 at 04:41 PM.
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 8th, 2003, 07:45 AM
#5
PowerPoster
Remeber that we are working in an object oriented environment, and it is much cleaner using objects that simply using mass string concactenation.
-
Jul 8th, 2003, 05:32 PM
#6
hmmmmmmmmmmmmmmmmmmmmmm ok
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 9th, 2003, 12:59 PM
#7
PowerPoster
To answer your question, I don't think their example needed the literal control at all. But there are a lot of other uses for it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|