CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: Date Entered: 1/2/2004 6:31:52 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 75 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"fruitbatinshad
NewsGroup User
HtmlTextWriter vs. Literals?1/2/2004 6:31:52 PM

0

Is there any advantage to using literals over just piping the text to the HtmlTextWriter? I would think it result in less over head or are there good reasons for using literals?
"master4eva" <>
NewsGroup User
Re: HtmlTextWriter vs. Literals?1/3/2004 8:05:52 AM

0

Literals as in the LiteralControl control or the literal strings (either a string builder or a real literal string)? The only advantage of putting literal controls in the control collection is if you might add any control between the literal controls, then literal controls would be better.

If you are pulling strings from a string builder, this would be bad practice because the HtmlTextWriter has its own string builder tucked internally. If you are doing "real" literal strings, then this would be fine... however, not everything needs to be in strings - there is also the composite controls to pursue (which I did talk to you about in your other thread).
-- Justin Lovell
"fruitbatinshad
NewsGroup User
Re: HtmlTextWriter vs. Literals?1/3/2004 11:21:13 AM

0

Hi Justin,
Thanks for all your help just to fill you in on what I'm actually up to and how far I've got:-
I am writing a forum control, one control does the whole lot so that I can put mini forums on articles etc just by setting the forumID and MessageID. So far I've got Forum Category browsing with sub forums, Posts and thread display, Post New Message and Post Reply done.
The forms are generated by mix of output.write(HTML) and creating complicated controls (such as HTML editor) and using their renderControl method.
I have avoided needing to recreate the controls on postback to get their viewstate which is how I used to do it.
In relation to this question I am using Output.write("<P>Outputting HTML</P>") and just asked incase this was bad practice.

You've been a great help, thank you very much :o)
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













windows product updates and technical training

composite controls: createchildcontrols or render?

spla related question

teched europe has some good info for hosters

absolute best way to learn custom controls?

web custom control: collection editor does not persist values

listbox datasource property

how to give vertical scrollbar to user control

possible to globally specify a register tagprefix in the web.config file?

problem with sql server and web server on different machines

regarding development of discussion forums.

hosting for crystal reports in an asp.net environment

having trouble getting custom control to process events

overriding inherited public property to make private

simple property - total confusion

iframe control - guidance recommendation

'[propertyname]' could not be initialized.

create webmatrix toolbox component

how do i make tagprefix work?

reliablesite.net - has baddest support i ever seen

multiple controls in a single file

linkbutton events from a repeater in a server control

vwd and sql server express 2005: where to host

folder control

treeview select node behavior

user control list

efficient data persistence between postbacks

custome controls, javascript, and firefox/mozilla

how to convert pdf files to normal text file?

pl or sal? that is the question!

common header and footer

onsetcomponentdefaults() method not getting called...

question: active frame does not support this element 'asp:listitem' ?

webresource problems

spla office licensing question

new to controls

anyone using aspmenu.net from web active corp ?

mvc hosting, asp.net mvc hosting, who's valued?

dynamically created control disappearing

custom tags inside a control

styling web user controls

different cross-application usercontrol problem

composite custome controls

the sad state of shared hosting in asp.net

losing property settings

comapring vwdhosting vs other hosting providers

500 errors with www.webhost4life.com, anybody?

problem with <button> tag and postback - please help :(

creating a web server control

please help with server control

   
  Privacy | Contact Us
All Times Are GMT