473,394 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Inserting HTML Tags into DHTML Edit Control????

Hello,

I am developing a simple web editor to enable my users to update their websites and add simple formatting to the text.

The page content is recovered from a SQL Server database and displayed in the Microsoft DHTML Edit control ( I am working in Visual Studio 2003 - VB ). I have experimented with the ExecCommand function but all I want to do is select some text - press a button to make that selected text <h1>some text</h1>. I have a button that reads the clipboard content, adds the correct HTML tags around the text, and then pastes back to the DHTML Edit Control.

However, when I paste the contents of the clipboard back to the DHTML Edit control I get this :

<h1>some text</h1> instead of some text , and I have no control over where the new text appears!

How can I select text, enclose in the desired HTML Tag and then replace the selected text with the new HTML formatted text?

Any help would be really appreciated as I have spent some days on this!

Thank you

Mike Lowe
Application Developer
Rhondda-Cynon-Taf County Borough Council
Education & Children's Services
Nov 20 '05 #1
7 2837
Cor
Hi Mike,

did you look at designMode = "On"

And please do us a favor, do not post in HTML to newsgroups,
For some of us it looks terrible and beside that it is in most newsreaders
difficult reading.

Cor

Nov 20 '05 #2
Hi,

apologies for HTML.

Yeah, design mode is on, any other clues?

Cheers,

Mike.
Nov 20 '05 #3
* "Mike" <mi***********@rctednet.net> scripsit:
[...]

Please do not post in HTML format!

I would ask the question in this group:

<news://news.microsoft.com/microsoft.public.inetsdk.programming.dhtml_editing >

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Cor
Hi Herfried,

<news://news.microsoft.com/microsoft....g.dhtml_editin
g>

Real a newsgroup for you.
In 2 months
81 messages
12 answered

Something to do for you
:-))

Cor
Nov 20 '05 #5
* "Cor" <no*@non.com> scripsit:
<news://news.microsoft.com/microsoft....g.dhtml_editin
g>

Real a newsgroup for you.
In 2 months
81 messages
12 answered

Something to do for you


I did a google search on the DHTML Edit control and I saw that most
threads about this control were posted to this group. Thank you for
making me aware of the "inactivity" of this group.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
Many thanks.
Nov 20 '05 #7
Cor
Hi Herfried,

I was curious, because I am thinking on doing something the same as Mike and
think that I know how to do it, but all solutions I did think of till now
are a lot of work and not user friendly.

Cor
Nov 20 '05 #8

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

Similar topics

15
by: Pasta Bolognese | last post by:
Open VS.2003. Click on a control on an aspx page in the HTML view. Does it tell me the pixel position on the page? Nooooooooooo.................
4
by: Dean A. Hoover | last post by:
Is there an example somewhere of a function that will take 2 parameters: text and a text object (input type=text or textarea) and insert that text using the current selection point(s) for the...
1
by: dd | last post by:
Cannot figure it out. If somebody can help, I'd appreciate it. I am using DHTML Edit control from C# for editing HTML pages. I am trying to insert a table into an HTML page and I keep getting an...
1
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The...
7
by: matt | last post by:
I'm currently writing an e-mail application, and I need to know the best way to view and edit HTML in my windows form application. When writing an e-mail client in ASP .NET, there was a HTML...
3
by: Adam Honek | last post by:
Hi, Is there any way to get text written in a richtextbox to convert into HTML or must we go about it the long way? Any other control support text entry then conversion to HTML? Thanks,...
1
by: farrukhqadri786 | last post by:
Hi! I have an imageList and a richtextbox in a C# form. I want to insert image from imageList into a richtextbox. I have found the following code on net but it does'nt work. ...
5
by: atlanteavila | last post by:
Hello all, I have a problem with inserting text with quotes, or html code in to a MYSql Database. I've been trying to create my own content management system, and unfortunately I've come accross a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.