473,395 Members | 1,742 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,395 software developers and data experts.

Div element and value

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

Nov 18 '05 #1
4 1540
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
"Palli" <pa**@ru.is> wrote in message
news:02****************************@phx.gbl...
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
Nov 18 '05 #2

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 :)
-----Original Message-----
I usually use the SPAN instead of DIV but you may also need to include aRUNAT="SERVER" to make it accesable

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Palli" <pa**@ru.is> wrote in message
news:02****************************@phx.gbl...
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
.

Nov 18 '05 #3
are you retrieving the DIV or the INPUT value?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
<pa**@ru.is> wrote in message news:01****************************@phx.gbl...

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 :)
-----Original Message-----
I usually use the SPAN instead of DIV but you may also need to include aRUNAT="SERVER" to make it accesable

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Palli" <pa**@ru.is> wrote in message
news:02****************************@phx.gbl...
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
.

Nov 18 '05 #4

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
<pa**@ru.is> wrote in message news:014a01c3ce46$22b5d3c0 $a*******@phx.gbl...
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 :)
-----Original Message-----
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
"Palli" <pa**@ru.is> wrote in message
news:02****************************@phx.gbl...
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
.

.

Nov 18 '05 #5

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

Similar topics

0
by: Ingrid | last post by:
Am I right in thinking that datatyping at element level ie <xs:element name="num" type="xs:integer"> and specifying a choice of attribute values ie <xs:attribute name="kind"> <xs:simpleType>...
4
by: celerystick | last post by:
This is an xsl question, comp.infosystems.www.authoring.stylesheets were not able to help , here goes .... With one xml file containing repeated element <subject>: ...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
6
by: Luke Dalessandro | last post by:
I'm not sure if this is the correct forum for platform specific (Mozilla/Firefox) javascript problems, so just shout and point me to the correct newsgroup if I'm being bad. Here's the deal... ...
1
by: pjeung | last post by:
Say that I have an element <elementA> that has several layers of subelements. In System.Xml.XmlDocument and related classes, how do I rename <elementA> to <elementB> leaving the subelements intact?
1
by: Maksim | last post by:
Trying to find out a way how to restrict value of the element by name of an element, it might be not even possible, but anyhow. Let's consider following snippet: <xs:element name="tag1"...
4
by: eksamor | last post by:
I have a simple linked list: struct element { struct element *next; int start; }; struct list { struct element *head;
3
markmcgookin
by: markmcgookin | last post by:
Hi, I have the following XML <AnswerList xmlns="http://tempuri.org/ALPS_Assessmentv1p1_RESCO_Schema.xsd"> <DateTimeLastSaved>12:12:12 1900</DateTimeLastSaved> <UserName>Bob</UserName>...
2
dlite922
by: dlite922 | last post by:
Before traversing my code, here's what my goal is and what this function does: I have a table of fields that dynamically grows as the user enters information. A minimum of 3 rows must always...
2
by: mlb5000 | last post by:
I seem to be having issues validating an XML document using my schema. Both are below: The Schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
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...
0
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
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,...

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.