由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - please help me...
相关主题
有人用过.net的content managment system吗VS2005 coming in Nov
C#中调用JavaScript的问题Edit & Continue不work,怎么办?
找part-time .net developer过几天去拿免费的去了
ajax,json,jquery怎么自学?VS2005 SP1 is out
Re: 女码工求给些意见或内推。 (转载)visual studio 2005怎么code profiling?
你们都做server side validation?请教:新手学 ASP, 关于安装 IIS
javascript question: possible to know when option items are added to a visual studio 2008
Interview: small business of .net.net framework的source code在visual studio 2008 Express Edition里debugging时能看到吗?
相关话题的讨论汇总
话题: content话题: new话题: control话题: returned话题: database
进入DotNet版参与讨论
1 (共1页)
m*****h
发帖数: 18
1
I have a user control used to dynamically display web contents. To make the
web content editable in the browser I set the contenteditable= true in the <
div> tag.
when the uswer control is loaded, set div.innerhtml as the content returned
from the database. the problem i have right now is after editing the content
in the broswer, i can't get the new content. although i can get the new
value in the javascript, i need to save the new content to the database. so
i have to do it in the code behind.
c**t
发帖数: 2744
2
can't you use AJAX to post back?

the
<
returned
content
so

【在 m*****h 的大作中提到】
: I have a user control used to dynamically display web contents. To make the
: web content editable in the browser I set the contenteditable= true in the <
: div> tag.
: when the uswer control is loaded, set div.innerhtml as the content returned
: from the database. the problem i have right now is after editing the content
: in the broswer, i can't get the new content. although i can get the new
: value in the javascript, i need to save the new content to the database. so
: i have to do it in the code behind.

k****i
发帖数: 1072
3
Make sure the viewstate is enabled and the timing you tried to retrieve the
new value.

the
<
returned
content
so

【在 m*****h 的大作中提到】
: I have a user control used to dynamically display web contents. To make the
: web content editable in the browser I set the contenteditable= true in the <
: div> tag.
: when the uswer control is loaded, set div.innerhtml as the content returned
: from the database. the problem i have right now is after editing the content
: in the broswer, i can't get the new content. although i can get the new
: value in the javascript, i need to save the new content to the database. so
: i have to do it in the code behind.

g***y
发帖数: 27
4
throw a hidden text box onto the page. make it a server control, copy value
from editable div to this box using javascript (onkeyup event may work) as
user types. read values inside this hidden box from server side code.
m*****h
发帖数: 18
5
thanks, problem solved
1 (共1页)
进入DotNet版参与讨论
相关主题
.net framework的source code在visual studio 2008 Express Edition里debugging时能看到吗?Re: 女码工求给些意见或内推。 (转载)
问个基础问题你们都做server side validation?
vs2013javascript question: possible to know when option items are added to a
how to make javascript/jquery in asp.net running fast? Thank you!Interview: small business of .net
有人用过.net的content managment system吗VS2005 coming in Nov
C#中调用JavaScript的问题Edit & Continue不work,怎么办?
找part-time .net developer过几天去拿免费的去了
ajax,json,jquery怎么自学?VS2005 SP1 is out
相关话题的讨论汇总
话题: content话题: new话题: control话题: returned话题: database