Search:
Namespaces
Discussions
.NET v1.1
Feedback
RichTextBox and ToolBars
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngrichtextbox' list
.
Paul Freedman
I am having problems using a
RichTextBox
on pages that are posted back by a
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property becomes
blank. Is this a bug or am I doing something wrong?
Thanks for the help,
Paul
Reply to this message...
paul durrant
could be, i had a simlar problem,
my richtextbox is held in a usercontrol, when its visiblity was
changed then the control would lose its text
to get around this i do a cache.insert before making it invisible
then restoring the text from the cache on making the control visible
sorry i can't be of more help
Paul
----- Original Message -----
From: "Paul Freedman" <
Click here to reveal e-mail address
>
To: "aspngrichtextbox" <
Click here to reveal e-mail address
>
Sent: Tuesday, June 25, 2002 1:04 AM
Subject: [aspngrichtextbox]
RichTextBox
and ToolBars
> I am having problems using a
RichTextBox
on pages that are posted back by
a
>
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property
becomes
[Original message clipped]
Reply to this message...
Phil Winstanley
Depending on your code, you may be doing something wrong, could you
please include the code you're using?
This will give us a better idea of what's happening.
Thanks,
Plip.
--
Phil Winstanley, Systems Architect.
Acclaim Studios Manchester.
http://www.acclaim.com
--
=20
-----Original Message-----
From: Paul Freedman [mailto:
Click here to reveal e-mail address
]=20
Sent: 25 June 2002 01:05
To: aspngrichtextbox
Subject: [aspngrichtextbox]
RichTextBox
and ToolBars
I am having problems using a
RichTextBox
on pages that are posted back
by a
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property
becomes
blank. Is this a bug or am I doing something wrong?
Thanks for the help,
Paul
| [aspngrichtextbox] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
=3D =
JOIN/QUIT
------------------------------------------------------------------------
--------------------------------------------
This e-mail has been received from the Internet, scanned for viruses and
forwarded to you after passing Acclaim's entrance criteria.
(acclaimstudios.co.uk)
Reply to this message...
Ollie Cornes
Hi Paul and Paul,
I think these issues are one and the same and I'm sorry you are seeing
issues with it. The current release of
RichTextBox
does not maintain
state when it is set to inVisible. I would imagine that the Toolbar
control is setting its contents to invisible and this is why the state
is being lost.
This is an omission on my part and it was registered as a bug a few days
ago. It will be fixed in the next release, which I expect to be
available in the next few weeks.
For the time being, the workaround PaulD has suggested is a good one.
You would also be able to use ViewState to store the Text value.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
paul durrant
Sent: 25 June 2002 05:28
To: aspngrichtextbox
Cc:
Click here to reveal e-mail address
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
could be, i had a simlar problem,
my richtextbox is held in a usercontrol, when its visiblity was
changed then the control would lose its text
to get around this i do a cache.insert before making it invisible
then restoring the text from the cache on making the control visible
sorry i can't be of more help
Paul
----- Original Message -----
From: "Paul Freedman" <
Click here to reveal e-mail address
>
To: "aspngrichtextbox" <
Click here to reveal e-mail address
>
Sent: Tuesday, June 25, 2002 1:04 AM
Subject: [aspngrichtextbox]
RichTextBox
and ToolBars
> I am having problems using a
RichTextBox
on pages that are posted back
by
a
>
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property
becomes
[Original message clipped]
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
Paul Freedman
Hi everybody!
Thanks guys for the help but I think what I am seeing is a little different
from what you are describing. The text from the
RichTextBox
is only lost
when the client's cursor only goes directly from the
RichTextBox
to the
ToolBar
that postback the page, without passing go or losing focus on the
RichTextBox
. When this happens the data is does not persist through even
the form_load method of the page so the workaround Paul suggested can't
help. However, If the client clicks on any other type of control the data
persists through the postback, additionally if the client losses focus on
the
RichTextBox
and then regains it before posting the page there is no
problem. So the problem only occurs if focus is never lost on the
RichTextBox
, I was thinking the best work around would be a JavaScript
function that changes focus from the
RichTextBox
, but I was having some
problems getting this to particularly work on down-level browsers.
Thanks again...
By the way the control is really sweet.
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 25, 2002 3:12 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi Paul and Paul,
I think these issues are one and the same and I'm sorry you are seeing
issues with it. The current release of
RichTextBox
does not maintain
state when it is set to inVisible. I would imagine that the Toolbar
control is setting its contents to invisible and this is why the state
is being lost.
This is an omission on my part and it was registered as a bug a few days
ago. It will be fixed in the next release, which I expect to be
available in the next few weeks.
For the time being, the workaround PaulD has suggested is a good one.
You would also be able to use ViewState to store the Text value.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
paul durrant
Sent: 25 June 2002 05:28
To: aspngrichtextbox
Cc:
Click here to reveal e-mail address
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
could be, i had a simlar problem,
my richtextbox is held in a usercontrol, when its visiblity was
changed then the control would lose its text
to get around this i do a cache.insert before making it invisible
then restoring the text from the cache on making the control visible
sorry i can't be of more help
Paul
----- Original Message -----
From: "Paul Freedman" <
Click here to reveal e-mail address
>
To: "aspngrichtextbox" <
Click here to reveal e-mail address
>
Sent: Tuesday, June 25, 2002 1:04 AM
Subject: [aspngrichtextbox]
RichTextBox
and ToolBars
> I am having problems using a
RichTextBox
on pages that are posted back
by
a
>
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property
becomes
[Original message clipped]
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
Ollie Cornes
Hi Paul,
RichTextBox
copies the contents of the document into a hidden form field
when it loses focus. If the Toolbar is not causing that to happen nor is
it causing a form submission, then that would explain why the contents
are lost. Just to check - when you click the Toolbar, there is no post
back occurring and it is a purely client-side event?
I'm going to enter this as an issue to be looked at for a future release
as I'd like the control to work seamlessly with the Toolbar. Whether
this can be achieved is another matter, but if it's possible it'll be
done.
For now as a workaround, your idea of changing focus is a good one as
that will ensure the document is copied to the right place and
maintained correctly. If you can add script to the Toolbar button, try
adding this:
onclick="this.focus();";
I would be interested to hear how you get on.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
Paul Freedman
Sent: 25 June 2002 17:33
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi everybody!
Thanks guys for the help but I think what I am seeing is a little
different
from what you are describing. The text from the
RichTextBox
is only
lost
when the client's cursor only goes directly from the
RichTextBox
to the
ToolBar
that postback the page, without passing go or losing focus on
the
RichTextBox
. When this happens the data is does not persist through
even
the form_load method of the page so the workaround Paul suggested can't
help. However, If the client clicks on any other type of control the
data
persists through the postback, additionally if the client losses focus
on
the
RichTextBox
and then regains it before posting the page there is no
problem. So the problem only occurs if focus is never lost on the
RichTextBox
, I was thinking the best work around would be a JavaScript
function that changes focus from the
RichTextBox
, but I was having some
problems getting this to particularly work on down-level browsers.
Thanks again...
By the way the control is really sweet.
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 25, 2002 3:12 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi Paul and Paul,
I think these issues are one and the same and I'm sorry you are seeing
issues with it. The current release of
RichTextBox
does not maintain
state when it is set to inVisible. I would imagine that the Toolbar
control is setting its contents to invisible and this is why the state
is being lost.
This is an omission on my part and it was registered as a bug a few days
ago. It will be fixed in the next release, which I expect to be
available in the next few weeks.
For the time being, the workaround PaulD has suggested is a good one.
You would also be able to use ViewState to store the Text value.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
paul durrant
Sent: 25 June 2002 05:28
To: aspngrichtextbox
Cc:
Click here to reveal e-mail address
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
could be, i had a simlar problem,
my richtextbox is held in a usercontrol, when its visiblity was
changed then the control would lose its text
to get around this i do a cache.insert before making it invisible
then restoring the text from the cache on making the control visible
sorry i can't be of more help
Paul
----- Original Message -----
From: "Paul Freedman" <
Click here to reveal e-mail address
>
To: "aspngrichtextbox" <
Click here to reveal e-mail address
>
Sent: Tuesday, June 25, 2002 1:04 AM
Subject: [aspngrichtextbox]
RichTextBox
and ToolBars
> I am having problems using a
RichTextBox
on pages that are posted back
by
a
>
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property
becomes
[Original message clipped]
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
Paul Freedman
Hey Ollie,
Thanks for the help, and the suggestion to have the JavaScript script fired
by a Toolbar event and not a richTextBook event (that makes the code much
easier). There is no click side click event for the toolbar so OnClick
doesn't work, but onmouseover works fine, and for some reason the focus is
only lost on the
RichTextBox
for a split second so it is hardly perceptible
to the User.
To answer your questions, The Toolbar DOES postback the page. It must do so
without ever removing getting focus. However, if the
RichTextBox
should copy
its contents to the hidden form field every time the page is posted, this is
not occurring. So you may want to play with it to see if it is indicative of
a larger bug. However, I am happy with the workaround, and with the product
in general.
Thanks again for the help,
Paul
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Wednesday, June 26, 2002 1:11 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi Paul,
RichTextBox
copies the contents of the document into a hidden form field
when it loses focus. If the Toolbar is not causing that to happen nor is
it causing a form submission, then that would explain why the contents
are lost. Just to check - when you click the Toolbar, there is no post
back occurring and it is a purely client-side event?
I'm going to enter this as an issue to be looked at for a future release
as I'd like the control to work seamlessly with the Toolbar. Whether
this can be achieved is another matter, but if it's possible it'll be
done.
For now as a workaround, your idea of changing focus is a good one as
that will ensure the document is copied to the right place and
maintained correctly. If you can add script to the Toolbar button, try
adding this:
onclick="this.focus();";
I would be interested to hear how you get on.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
Paul Freedman
Sent: 25 June 2002 17:33
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi everybody!
Thanks guys for the help but I think what I am seeing is a little
different
from what you are describing. The text from the
RichTextBox
is only
lost
when the client's cursor only goes directly from the
RichTextBox
to the
ToolBar
that postback the page, without passing go or losing focus on
the
RichTextBox
. When this happens the data is does not persist through
even
the form_load method of the page so the workaround Paul suggested can't
help. However, If the client clicks on any other type of control the
data
persists through the postback, additionally if the client losses focus
on
the
RichTextBox
and then regains it before posting the page there is no
problem. So the problem only occurs if focus is never lost on the
RichTextBox
, I was thinking the best work around would be a JavaScript
function that changes focus from the
RichTextBox
, but I was having some
problems getting this to particularly work on down-level browsers.
Thanks again...
By the way the control is really sweet.
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 25, 2002 3:12 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi Paul and Paul,
I think these issues are one and the same and I'm sorry you are seeing
issues with it. The current release of
RichTextBox
does not maintain
state when it is set to inVisible. I would imagine that the Toolbar
control is setting its contents to invisible and this is why the state
is being lost.
This is an omission on my part and it was registered as a bug a few days
ago. It will be fixed in the next release, which I expect to be
available in the next few weeks.
For the time being, the workaround PaulD has suggested is a good one.
You would also be able to use ViewState to store the Text value.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
paul durrant
Sent: 25 June 2002 05:28
To: aspngrichtextbox
Cc:
Click here to reveal e-mail address
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
could be, i had a simlar problem,
my richtextbox is held in a usercontrol, when its visiblity was
changed then the control would lose its text
to get around this i do a cache.insert before making it invisible
then restoring the text from the cache on making the control visible
sorry i can't be of more help
Paul
----- Original Message -----
From: "Paul Freedman" <
Click here to reveal e-mail address
>
To: "aspngrichtextbox" <
Click here to reveal e-mail address
>
Sent: Tuesday, June 25, 2002 1:04 AM
Subject: [aspngrichtextbox]
RichTextBox
and ToolBars
> I am having problems using a
RichTextBox
on pages that are posted back
by
a
>
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property
becomes
[Original message clipped]
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
Ollie Cornes
Hi Paul,
There's an issue with ASP.NET whereby the onsubmit event doesn't fire if
you use the
LinkButton
control. I think what we're seeing here is a
rather beautiful ballet-like performance as a series of unrelated
restrictions in
RichTextBox
, IE and ASP.NET interplay! :-)
I am not sure if there is a good reason for the
LinkButton
control not
firing the onsubmit event, but it's certainly not helpful. However, I'm
very glad you have found a solution that works for you and I appreciate
the feedback.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
Paul Freedman
Sent: 26 June 2002 18:34
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hey Ollie,
Thanks for the help, and the suggestion to have the JavaScript script
fired
by a Toolbar event and not a richTextBook event (that makes the code
much
easier). There is no click side click event for the toolbar so OnClick
doesn't work, but onmouseover works fine, and for some reason the focus
is
only lost on the
RichTextBox
for a split second so it is hardly
perceptible
to the User.
To answer your questions, The Toolbar DOES postback the page. It must do
so
without ever removing getting focus. However, if the
RichTextBox
should
copy
its contents to the hidden form field every time the page is posted,
this is
not occurring. So you may want to play with it to see if it is
indicative of
a larger bug. However, I am happy with the workaround, and with the
product
in general.
Thanks again for the help,
Paul
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Wednesday, June 26, 2002 1:11 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi Paul,
RichTextBox
copies the contents of the document into a hidden form field
when it loses focus. If the Toolbar is not causing that to happen nor is
it causing a form submission, then that would explain why the contents
are lost. Just to check - when you click the Toolbar, there is no post
back occurring and it is a purely client-side event?
I'm going to enter this as an issue to be looked at for a future release
as I'd like the control to work seamlessly with the Toolbar. Whether
this can be achieved is another matter, but if it's possible it'll be
done.
For now as a workaround, your idea of changing focus is a good one as
that will ensure the document is copied to the right place and
maintained correctly. If you can add script to the Toolbar button, try
adding this:
onclick="this.focus();";
I would be interested to hear how you get on.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
Paul Freedman
Sent: 25 June 2002 17:33
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi everybody!
Thanks guys for the help but I think what I am seeing is a little
different
from what you are describing. The text from the
RichTextBox
is only
lost
when the client's cursor only goes directly from the
RichTextBox
to the
ToolBar
that postback the page, without passing go or losing focus on
the
RichTextBox
. When this happens the data is does not persist through
even
the form_load method of the page so the workaround Paul suggested can't
help. However, If the client clicks on any other type of control the
data
persists through the postback, additionally if the client losses focus
on
the
RichTextBox
and then regains it before posting the page there is no
problem. So the problem only occurs if focus is never lost on the
RichTextBox
, I was thinking the best work around would be a JavaScript
function that changes focus from the
RichTextBox
, but I was having some
problems getting this to particularly work on down-level browsers.
Thanks again...
By the way the control is really sweet.
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 25, 2002 3:12 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
Hi Paul and Paul,
I think these issues are one and the same and I'm sorry you are seeing
issues with it. The current release of
RichTextBox
does not maintain
state when it is set to inVisible. I would imagine that the Toolbar
control is setting its contents to invisible and this is why the state
is being lost.
This is an omission on my part and it was registered as a bug a few days
ago. It will be fixed in the next release, which I expect to be
available in the next few weeks.
For the time being, the workaround PaulD has suggested is a good one.
You would also be able to use ViewState to store the Text value.
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
paul durrant
Sent: 25 June 2002 05:28
To: aspngrichtextbox
Cc:
Click here to reveal e-mail address
Subject: [aspngrichtextbox] Re:
RichTextBox
and ToolBars
could be, i had a simlar problem,
my richtextbox is held in a usercontrol, when its visiblity was
changed then the control would lose its text
to get around this i do a cache.insert before making it invisible
then restoring the text from the cache on making the control visible
sorry i can't be of more help
Paul
----- Original Message -----
From: "Paul Freedman" <
Click here to reveal e-mail address
>
To: "aspngrichtextbox" <
Click here to reveal e-mail address
>
Sent: Tuesday, June 25, 2002 1:04 AM
Subject: [aspngrichtextbox]
RichTextBox
and ToolBars
> I am having problems using a
RichTextBox
on pages that are posted back
by
a
>
ToolBar
(Microsoft IE webcontrol). The RichTextBox's text property
becomes
[Original message clipped]
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
System.Web.UI.WebControls.LinkButton
System.Windows.Forms.RichTextBox
System.Windows.Forms.ToolBar
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com