首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

取值,该怎么处理

2012-12-17 
取值问题1:input typetext idMsgTitle runatserver classinputTxt stylewidth: 600px /r

取值

问题1:
<input type="text" id="MsgTitle" runat="server" class="inputTxt" style="width: 600px" />
result.MessageTitle = Request["MsgTitle"].ToString();
这中的可以
result.MessageTitle = MsgTitle.Value;
得不到文本框中的值,我想问下什么原因?
问题2;

     <CE:Editor ID="MsgReply" runat="server" AutoConfigure="Simple" ContextMenuMode="Simple"
                                                BorderColor="#B0E2FF" CustomCulture="zh-CN" FilesPath="VisionMaster\images"
                                                Width="650px" Height="200px" EditorWysiwygModeCss="CuteSoft_Client/CuteEditor/Style/example.css"
                                                SecurityPolicyFile="HospitalInfo.config">
                                                <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderWidth="1px" BorderStyle="Solid"
                                                    CssClass="CuteEditorFrame"></FrameStyle>
                                            </CE:Editor>

result.MessageTitle = MsgReply.Text;获取不到,
result.MessageTitle = Request["MsgReply"].ToString();这中获取倒是乱码。
[最优解释]
result.MessageTitle = Request["MsgReply"].ToString();这中获取倒是乱码。
==》
http://myprogram.blog.hexun.com/37206105_d.html 参考这个
[其他解释]

来人呀,
[其他解释]
MsgTitle.Value不行吗?
[其他解释]
 Request["MsgReply"].ToString(); 编码一下

<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %> 
<CE:Editor id="Editor1" runat="server" />
取值方法
string strContent = this.Editor1.Text;

[其他解释]
其他页面中可以,这个另外一个页面中,不行的。。。
[其他解释]
引用:
Request["MsgReply"].ToString(); 编码一下

<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %> 


<CE:Editor id="Editor1" runat="server" />
取值方法
string strContent =……


有这个的
[其他解释]
看看这个页面与其他页面有什么差别。 重点看CE:Editor
[其他解释]
input文本框,MsgTitle.Value他得到的始终是原来加载时候,也就是并没有得到你重新输入的那个值,
而那个编辑器Editor1.Text他得到的却是乱码,我要加了这个的,
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
真心不知道什么问题。。。
[其他解释]
引用:
看看这个页面与其他页面有什么差别。 重点看CE:Editor

我就是从其他页面中拷贝的,
[其他解释]

那个标题,始终不变,获取不到新的值,
那个内容,就变成那个样子了。。。
[其他解释]
引用:
result.MessageTitle = Request["MsgReply"].ToString();这中获取倒是乱码。
==》
http://myprogram.blog.hexun.com/37206105_d.html 参考这个

谢谢,文本编辑器的这个解决了,现在还有那个input文本框的问题,麻烦再帮我看看是哪里的问题
[其他解释]
null

热点排行