如何制作评论框 [英] how to making comment box

查看:70
本文介绍了如何制作评论框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是网络开发的新手,我需要开发一个评论框,并将这些评论保存在数据库中,以便我可以检索它们并在我的网站上显示它们。

我的服务器不支持PHP或任何其他特殊脚本,所以我相信我必须在javascript或asp.net中编码,任何人都可以帮我做这个代码,如何实现一个评论框并保存评论。 div class =h2_lin>解决方案

制作一个简单的Asp网页



在该页面上拖一个文本框和一个按钮



设置文本框的TextMode属性=MultiLine



按钮点击事件你必须插入数据库中的评论

(我假设您的数据库有一个包含两个字段ID的表,注释ID是自动增量)



/ /打开连接

// Make命令

//执行这样的命令

//插入表值(''+ textbox的.text + '') ;





您可以从
获得有关插入的帮助
这里 [ ^ ]


Hi, I am new to web development, i need to develop a comment box, and save those comments in database , so that i can retrieve them and display them on my web.
My server does not support php or anyother special scriptin, so i believe that i have to code in javascript or asp.net, can anyone please help me with the code for doing this, as to how to implement a comment box and save the comments.

解决方案

Make a simple Asp webpage

On that page drag one textbox and one button

set Textbox''s TextMode property ="MultiLine"

On button click event you''ll have to insert the comment in DB
(I''m supposing your DB have a table with two fields id and comment id is autoincrement)

//Open Connection
//Make Command
//Execute the command like this
//Insert into Table values(''"+textbox.Text+"'')";


You can get help on insertion from
here[^]


这篇关于如何制作评论框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆