|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Basic formatting for HTML text in ASP.NET 1.1 ?Hi all,
Is there a way for a user of a website to control the basic font size/colour of text, then upload it into a HTML text page in ASP.NET 1.1 ? For example, I want a user to log into the website, and be able to type in text, give it a colour, fontsize and basic layout, etc. The hit submit, and the text will be available to view through the browser? Cheers, Jack. Yes, there's a way.
You can create a form to capture this information and then, upon postback, display your desired page (hiding the entry form in the process). Is this what you looking to do? -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "Jack" <some***@somewhere.com> wrote in message news:43b26343$1@quokka.wn.com.au... > Hi all, > > Is there a way for a user of a website to control the basic font > size/colour of text, then upload it into a HTML text page in ASP.NET 1.1 ? > > For example, I want a user to log into the website, and be able to type in > text, give it a colour, fontsize and basic layout, etc. The hit submit, > and the text will be available to view through the browser? > > Cheers, > Jack. > > > > The only obvious way I can think of is to set up an editable IFRAME
with a blank page loaded (this will let the user type stuf on to the page), and provide buttons to control the formatting. Then, to upload it, do some Javascript on the page containing the frame that copies its content into a hidden input field and posts it to the server, which can then write it into an HTML file. There are a few examples of how to do this floating around on the web; however, you can't really use ASP controls to do it [at least not that I know of] - so you'll have to hand-code the elements and client-script. On Wed, 28 Dec 2005 18:05:35 +0800, "Jack" <some***@somewhere.com> wrote: ¤ Hi all,¤ ¤ Is there a way for a user of a website to control the basic font size/colour ¤ of text, then upload it into a HTML text page in ASP.NET 1.1 ? ¤ ¤ For example, I want a user to log into the website, and be able to type in ¤ text, give it a colour, fontsize and basic layout, etc. The hit submit, and ¤ the text will be available to view through the browser? ¤ How about using a RichTextBox control? http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1636&lngWId=10 Paul ~~~~ Microsoft MVP (Visual Basic)
Master Pages and Cross-Page Form Information
Listbox is overlapping the Textbox in Asp.net Adding Access keys to menu items in the Menu control Is there a way to set onmouseover for a LinkButton in ASP.NET 2.0 ? Broswer Compatibility timer functionality Localize control file upload control - ASP2.0 Adding DataMember support to SqlDataSource Earn money Online - without risk! |
|||||||||||||||||||||||