This is a discussion on How to create html from the content of the textbox? within the C# Programming forums, part of the Software Development category; Hi, I am doing the project of creating a html file from the content of the text box. Can any ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, I am doing the project of creating a html file from the content of the text box. Can any one tell me how to create html file using c# with images? |
| Sponsored Links |
| |||
| I dont get your question. I think you want to create a HTML editing functionality in C#. ok that is what you want, you can use the WebBrowser component. It has property to enable edit functionality for the given HTML file. Using that component you can create a basic HTML file, you can enable functionality to change the font,size and images etc. or If you want to parse a HTML file study about the following components HTMLLinkElement MSHTML.HTMLDocument MSHTML.HTMLDocument I just gave an idea about your question. But it will be better to give a detailed explanation about your requirement. thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention Last edited by Karpagarajan : 03-27-2007 at 03:37 PM. |
| |||
| Quote:
Use the C# file class to write the textbox content in a HTML file with the following tag( )<html> <head> <title>textcontent</title> <body bgcolor="#E3E3E3"> <h1>textcontent</h1> </body> </html> C# file stream sample code The following sample will write a html file from the console input text. You can change it with your own code. FileStream strm; if you want to display as your html predefined format, add your html content statically while writing the HTML file in C#. hope I got your problem thanks
__________________ Karpagarajan. R Necessity is the mother of invention |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to assign html Content to RichText as a Normal Text? | poornima | ASP and ASP.NET Programming | 3 | 03-10-2008 03:15 AM |
| How to do wordwrap the HTML content using javascript? | ramkumaraol | PHP Programming | 9 | 11-22-2007 07:12 AM |
| How to do wordwrap the HTML content using javascript? | ramkumaraol | PHP Programming | 0 | 11-14-2007 04:01 AM |
| How to create textbox without border? | ramkumaraol | PHP Programming | 2 | 09-07-2007 06:13 AM |
| How to create an HTML Editor for ASP.NET AJAX | Sundaram | C# Programming | 13 | 09-05-2007 01:16 AM |