kentheprogger Posted March 12, 2007 Posted March 12, 2007 Is it possible to generate an entire <DIV> at runtime using a string with HTML in it? If so how? Quote
amir100 Posted March 13, 2007 Posted March 13, 2007 (edited) Response.Write(yourHTMLString) Or maybe use a label then change the text property programmatically. Anyway, where are you going with this? Edited March 13, 2007 by amir100 Quote Amir Syafrudin
kentheprogger Posted March 13, 2007 Author Posted March 13, 2007 I'm doing a website that has a master page and the main content is updateable through a administrator interface and instead of just posting content I would like it to be more dynamic and be able to be edited with HTML. Response.Write dosn't specify where the code will appear? Quote
mandelbrot Posted March 14, 2007 Posted March 14, 2007 In one of the projects that some of the chaps that I work with produced, a JavaScript editor was used under a GNU public licence. Unfortunately, I don't know the name of the editor. Have a dig around on Google, though. The package was a complete editor allowing the editing of the HTML source, as well as providing the standard Wordesque interface. I'm sorry I can't be more help than that. Paul. Quote
PROKA Posted March 14, 2007 Posted March 14, 2007 kenttheprogger , if you use a label and you change it's .Text property, that's exactly where the html code will go :) (where the label is positioned) Quote Development & Research Department @ Elven Soft
mandelbrot Posted March 14, 2007 Posted March 14, 2007 kenttheprogger ' date=' if you use a label and you change it's .Text property, that's exactly where the html code will go :) (where the label is positioned)[/quote'] LOL! You bad! :p Sorry, Proka - no offense is meant; I was comparing this thread with mine, that you posted in yesterday. If it's simply a case of displaying the code on the webpage, I would use a panel. That way the HTML will appear in a DIV as opposed to the label's SPAN. You can then have your own CSS entry relating to that particular DIV name etc. etc... Paul. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.