如何在.net生成的新闻静态页面里添加"提交评论"与显示该新闻的所有评论?
解决方案 »
- FCKeditor控件 这个东西怎么验证非空 ,
- 急求asp.net 中frameset的问题,谢谢
- MVC 发布后 jquery的效果就没有了
- 附加数据库出错:错误:602未能在sysindexs找到数据库ID。。。
- 小问题, 找不到类型或命名空间名称“MessageBox”(是否缺少 using 指令或程序集引用?),可我不知道咋解决
- WORD文件上传到数据库,并显示出来,
- 為什麼我按NO後他還執行
- 我想在DropDownList选择一种类别 然后在TextBox输入查询内容 程序出错 怎么解决啊~~
- repeater镶嵌产生的问题。
- ajaxSubmit跨域上传取回调值问题?
- 如何用checkedboxlist(多选列表)选一个值,就产生一张临时表,再勾一个又产生另一张临时表,让这些临时表做连接查询
- asp.net 根据老师姓名查询课表 ,怎样设计课表。跪求帮助
用ajax提交和显示,要不就做个连接,引导到留言页
context.Response.Write("<table id='tab_" + sub.Sort.ToString() + "' border='1' cellpadding='3' cellspacing='3' bordercolor=#008000 width='" + width.ToString() + "px'> ");
context.Response.Write(" <tr bgcolor='lightyellow'> ");
context.Response.Write(" <td width='222px' >发言时间:" + sub.UpLoadDate + "</td> ");
context.Response.Write(" <td >给 “" + sub.ToAuthor + "” 的留言</td> ");
context.Response.Write(" </tr> ");
context.Response.Write(" <tr bgcolor='lightcyan'> ");
context.Response.Write(" <td width='222px'> <img id='AuthorSub_" + sub.Sort.ToString() + "' src='images/zuozhe.GIF' " +
" onmouseover=\"AboutYonghu('replaceconsole','AuthorSub_" + sub.Sort.ToString() + "','getProfile.aspx?width=300&','" + sub.Author + "')\" " +
" onmouseout=\"HideAboutZuoZhe('replaceconsole')\" alt='' />");
context.Response.Write(sub.Sort.ToString() + "楼:" + sub.Author);
最后
用javascript 写到div的innerHTML 属性中
另外还要使用XMLHttpRequest
象下面的function AjaxRequest(_url, _showdata) {
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
} else if (window.ActiveXObject) {
request = new ActiveXObject("Microsoft.XMLHTTP");
}
if (request) {
p_showdata=_showdata;
request.onreadystatechange = processReqChange;
request.open("GET", _url, true);
request.send(null);
}
}
有点麻烦,可以试试http://www.mybuffet.cn
或者加我QQ229970437,本人有点急,请大家帮忙下,本人会非常感激的。
可以看看4楼写的代码
也可以该button为sumit提交你的信息到另一个页面里面保存