473,505 Members | 13,904 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:\filename.html")
what i shold do to edit it i mean i want to insert into it
<html>
<head>
<titleTextTextText </title>
</head>
<body>
TextBox1.Text
</body>
</html>
how do i edit it ?
tnx

Jul 2 '06 #1
5 1239


--
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.googlegr oups.com...
well i want to edit simple html file :
first i create it :
system.io.file.create("C:\filename.html")
what i shold do to edit it i mean i want to insert into it
<html>
<head>
<titleTextTextText </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.html", FileMode.Create,
FIleAccess.Write)

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.html", FileMode.Create,
FIleAccess.Write)

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
6382
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...
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...
4
1983
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...
2
1996
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
3490
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...
16
47280
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...
3
3246
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...
0
1578
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" ...
10
6931
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...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
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,...
1
5026
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...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
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 ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
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...

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.