Best way to dump HTML strings to a page in ASP.Net?
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
I'm currently work'n on a project where I'm dynamically generating some
HTML as text into a string builder. My ASP page has a <span> tag on it
and after I gernerate HTML to my string builder I concat all the
strings and set the span's innerHTML property to this output. What I'm
wondering is if this is the best way to do this or is there a better
method to take a bunch of strings and dump them out onto an ASP page so
it shows up as formatted HTML? Second of all, this method seems to work
fine when my text has a lower number of strings, if I have a lot of
strings however it outputs to the page correctly but strangely enough
other portions of my page stop working (like my seach box will no
longer work, this only happens with a high number of strings being
concat'ed though, like 100+)? Any insights would be appreciated!
.
Relevant Pages
- Re: FAQ Topic - How do I access a frames content? (2009-10-25)
... Dr J R Stockton wrote: ... you are not reading any files "HTML or TXT, as it exists on disc" - ... "Given an array of strings with the minimum 2 and the maximum 1o ... find the shortest common word in these strings. ... (comp.lang.javascript) - Re: FAQ Topic - How do I access a frames content? (2009-10-25)
... you are not reading any files "HTML or TXT, as it exists on disc" - ... you were getting so far "by using innerHTML ..., ... "Given an array of strings with the minimum 2 and the maximum 1o ... find the shortest common word in these strings. ... (comp.lang.javascript) - Re: efficiency of JList setElementAt()
... If you modify your program to produce strings about 3 times as long, make the strings HTML with a font color tag, and increase the list size to about 130, I think you'll get the kind of results I cited in my first post. ... The Swing cell renderer design is based on assumptions that construction is expensive and updating values is cheap. ... So let's cache. ... (comp.lang.java.gui) - Re: Best way to dump HTML strings to a page in ASP.Net?
... limitations for query strings or hidden fields than other browers... ... form method is POST so it has more room to pass your data along. ... of HTML as strings into a string builder. ... HTML as text into a string builder. ... (microsoft.public.dotnet.framework.aspnet) - Re: Best way to dump HTML strings to a page in ASP.Net?
... of HTML as strings into a string builder. ... HTML as text into a string builder. ... longer work, this only happens with a high number of strings being ... (microsoft.public.dotnet.framework.aspnet) |
|