473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML edit Vb.net

well i want to edit simple html file :
first i create it :
system.io.file. create("C:\file name.html")
what i shold do to edit it i mean i want to insert into it
<html>
<head>
<titleTextTextT ext </title>
</head>
<body>
TextBox1.Text
</body>
</html>
how do i edit it ?
tnx

Jul 2 '06 #1
5 1241


--
bonjour

I think with a streamwriter...

http://www.scalpa.info
Jul 2 '06 #2

Pascal wrote:
--
bonjour

I think with a streamwriter...

http://www.scalpa.info

can you give me expamle plz ?

Jul 2 '06 #3
Ailon,

Maybe this one can help you

http://www.vb-tips.com/default.aspx?...d-da738cdc7c2c

I hope this helps,

Cor

<ai*****@gmail. comschreef in bericht
news:11******** **************@ m79g2000cwm.goo glegroups.com.. .
well i want to edit simple html file :
first i create it :
system.io.file. create("C:\file name.html")
what i shold do to edit it i mean i want to insert into it
<html>
<head>
<titleTextTextT ext </title>
</head>
<body>
TextBox1.Text
</body>
</html>
how do i edit it ?
tnx

Jul 2 '06 #4
well you can just have a multi ;line text box or a richtext control and have
the user tpye in

<html>
<head>
......
then, when you want to write it to a file

DIm fs as new IO.FileSTream(" C:\MyHTMLDoc.ht ml", FileMode.Create ,
FIleAccess.Writ e)

DIm sw as new IO.StreamWriter (fs)

then just say, to write the file

sw.WriteLine(me .txtHTML.text)

that will write the complete text as you see it

dont forget to close your streams by calling the fs.close and sw.close methods
--
-iwdu15
Jul 2 '06 #5

iwdu15 wrote:
well you can just have a multi ;line text box or a richtext control and have
the user tpye in

<html>
<head>
.....
then, when you want to write it to a file

DIm fs as new IO.FileSTream(" C:\MyHTMLDoc.ht ml", FileMode.Create ,
FIleAccess.Writ e)

DIm sw as new IO.StreamWriter (fs)

then just say, to write the file

sw.WriteLine(me .txtHTML.text)

that will write the complete text as you see it

dont forget to close your streams by calling the fs.close and sw.close methods
--
-iwdu15
i dont want that user will wirte that i want that program wirte by user
select ... i mean that the program will wirte the file for user he/she
just need to click on the button "wirte"
so
i just want the program will wirte
* some text *
to the filename.html file
thats possible ?

Jul 2 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

71
6468
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's a step beyond Notepad (not a WYSIWYG tool). Thanks.
5
485
by: Jay Kim | last post by:
Hi, We're implementing a Windows application using Visual Basic .NET. One of the key features we need to implement is that we should be able to get the accurate byte offset of user selected text in the file. We've been trying to use the RichTextBox control to load a file, and get the offset when the user selects some text in the file. It's been working ok with regular text files, but we can't use the RichTextBox control to handle
4
1993
by: Sathyaish | last post by:
I am no JavaScript progammer, and unfortunately am having to babysit an old code base that has a lot of JavaScript in it. I have two questions: (1) Can two HTML controls have the same name? It looks like the obvious answer is NO. (2) What if? What if the developer has given two HTML controls the same name, i.e has created the same button more than once with exactly the
2
2004
by: comp.lang.php | last post by:
I am trying to replace within the HTML string $html the following: With Where I'm replacing "action=move_image" with "action=<?= $_REQUEST ?>"
11
3517
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of the fee I pay for web hosting. 'Instant Website' provides the option of having your opening page as a Flash Page, which you'll see if you visit <www.alpha1.org.au>. Well, you'll see it if you visit from a Windows machine. For some reason, when...
16
47307
nirmalsingh
by: nirmalsingh | last post by:
hai experts, i am having page called main.html, when the user clicks a button in this page a popup window of pop.html is opened. in pop.html user enter his name and close that popup window. now what i need is: the name entered in pop.html shiould be shown as table format in main.html. the row should be added each and every time the user open and enter a name. without refreshing main.html. what should i do for this.
3
3252
by: amit | last post by:
Hello group, How can I assign a link with its related elements (as following) to an array element? Assume having a table with several rows and 3 columns. The first column holding some text information (which will be read from a database) but the 2nd column holding a link (as its previous rows - now I'm adding a new row).
0
1586
by: NamelessNumberheadMan | last post by:
I'm having issues with my html:link tag. I've tried this two ways. 1) This gets me to my proper dispatch action with the bean: <html:link forward="editMyInfo" paramId="<%=BeanNames.MY_BEAN_ID%>" paramName="myBean">Edit</html:link> 2)This also gets me to my proper dispatch action without the bean, and without the id: <html:link forward="editMyInfo" paramId="<%=BeanNames.MY_BEAN_ID%>"
10
6960
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
0
8330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.