如何编写提交按钮的代码? [英] How to code for submit button?

查看:69
本文介绍了如何编写提交按钮的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想为我的提交"按钮编写代码,该按钮将从数据绑定下拉列表中提交用户的选择,并在文本框中提交用户的输入注释,这些内容将在gridview中的另一个Web表单中显示. >
谢谢.

Hi,

I want to code for my submit button which would submit user's selection from a databound dropdownlist and user's input comment in textbox which are to be displayed in another webform in gridview.

Thank You.

推荐答案

您好,

我想为我的提交"按钮编写代码,以便提交用户的从数据绑定下拉列表中进行选择,并在文本框中输入用户的输入注释,这些注释将显示在gridview的另一个Web窗体中.

谢谢.
Hi,

I want to code for my submit button which would submit user's selection from a databound dropdownlist and user's input comment in textbox which are to be displayed in another webform in gridview.

Thank You.


doule click in your buttom and from your click event write there the code that you want. the first thing you can do is to test the input textbox and after the databound dropdownlist. Something like:

if textbox.text="" then

msgbox ("You need to write something in your textbox")

textbox.focus()

exit sub

else

.............test your databound....

assign the information to your next webform in datagridview.

webform2.datagriedview1.datasource = webform1.........

end if



这篇关于如何编写提交按钮的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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