如何通过键盘输入从数据列表中的文本框插入数据 [英] how to insert data from textbox in datalist by enter from keyboard

查看:186
本文介绍了如何通过键盘输入从数据列表中的文本框插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有数据列表来显示帖子和评论
单击链接时,我已链接了按钮,文本框变得可见= true
但不知道我在哪里编写代码来访问文本框值并将注释插入数据库中
请帮助我
就像facebook

评论的评论



您的文本框不在数据列表右边.
在调用数据列表加载方法之后,在文本框按钮单击事件中编写用于将数据插入数据库的代码


hi i have datalist to show posts and comments
i have linked button when i click it the textbox become visible=true
but don''t know where i write my code to access th textbox value and insert the comment in database
plz help me
like comment of facebook

解决方案

Hi ,

your textbox is outside of datalist right.
thn write code for inserting data into database in textbox button click event after that invoke datalist load method


这篇关于如何通过键盘输入从数据列表中的文本框插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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