Div element and value

P

Palli

Hi there...

I have a little problem! Im developing a asp.net web and
I´ve a div tag that looks like this;

<form id="UpdatePopup" method="post" runat="server"
enctype="multipart/form-data">

....

<input class="btnBold" onclick="toggleBold
(this.form.lstNews)" type="button" value="B"
onMouseOver="selOn(this)" onMouseOut="selOff(this)"
onMouseDown="selDown(this)" onMouseUp="selUp(this)"
name="Button">

<div id="TextEditArea" contentEditable="true"
class="border">
<input type="hidden" name="lstNews">
</div>

....

</form>

I use this tag to write message so the user can make html
text with bold, italic and undirline attributes.

The problem is that I cant get the text from the div
textarea when I submit the form! I´ve tried everything;
put a ;
protected HtmlGenericControl TextEditArea;
in the code file but I cant get the text from the area.

Can someone help me?

Palli

ps. Im running on
Microsoft Development enviroment 2002; version 7.0.9466
..NET framework 1.0
 
C

Curt_C [MVP]

I usually use the SPAN instead of DIV but you may also need to include a
RUNAT="SERVER" to make it accesable

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


Hi there...

I have a little problem! Im developing a asp.net web and
I´ve a div tag that looks like this;

<form id="UpdatePopup" method="post" runat="server"
enctype="multipart/form-data">

....

<input class="btnBold" onclick="toggleBold
(this.form.lstNews)" type="button" value="B"
onMouseOver="selOn(this)" onMouseOut="selOff(this)"
onMouseDown="selDown(this)" onMouseUp="selUp(this)"
name="Button">

<div id="TextEditArea" contentEditable="true"
class="border">
<input type="hidden" name="lstNews">
</div>

....

</form>

I use this tag to write message so the user can make html
text with bold, italic and undirline attributes.

The problem is that I cant get the text from the div
textarea when I submit the form! I´ve tried everything;
put a ;
protected HtmlGenericControl TextEditArea;
in the code file but I cant get the text from the area.

Can someone help me?

Palli

ps. Im running on
Microsoft Development enviroment 2002; version 7.0.9466
..NET framework 1.0
 
G

Guest

It doesn´t matter if I use span or div, I always get empty
value? The runat="server" was included but I forgot to
copy it :)
 
C

Curt_C [MVP]

are you retrieving the DIV or the INPUT value?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com



It doesn´t matter if I use span or div, I always get empty
value? The runat="server" was included but I forgot to
copy it :)
 
G

Guest

I´ve tried both?
-----Original Message-----
are you retrieving the DIV or the INPUT value?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com



It doesn´t matter if I use span or div, I always get empty
value? The runat="server" was included but I forgot to
copy it :)



.
 
Top