从文本框中获取当前文本 [英] get current text from text box

查看:133
本文介绍了从文本框中获取当前文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是vb.net 2003的初学者..


如何将文本框中的文本初始化为变量?


文本框是从SQL输入的,然后用户可以更改它然后将其更新回SQL ..但是我已经失去了如何使用TEXT形式TEXTBOX初始化sql命令..

I''m just a beginner for vb.net 2003..

How do i initialize the text from a textbox into variable??

the textbox was input orginally from SQL, then user may change it then update back it to SQL.. but i''m lost how to take the TEXT form TEXTBOX to intialize with sql command..

推荐答案

PLS帮助我: - )


我只是vb.net 2003初学者..


如何将文本框中的文本初始化为变量?


文本框输入从SQL开始,然后用户可以更改它,然后将其更新回SQL ..但我已经失去了如何使用TEXT形式TEXTBOX初始化sql命令..

PLS帮助



应该有一个Text或Value属性可以从中获取该信息。您是否考虑过这个?

There should be a Text or Value property you can get that information from. Did you look into that yet?


PLS帮助我: - )


我只是vb.net 2003的初学者..


如何将文本框中的文本初始化为变量?


文本框是从SQL输入的,然后用户可以更改它然后将其更新回SQL ..但是我已经失去了如何使用TEXT形式TEXTBOX初始化sql命令..
PLS帮助



jrs所以你加载页面并在文本框中填写值?我知道你迷路但在哪一部分?您想将文本框值写回数据库吗?


您需要一个按钮或其他方式来提交更改。如果它是vb.net形式,则文本框值的sysntaxt是''me.textbox1.text'',其中textbox1 =文本框的名称。

jrs So you load the page and the value is filled in the textbox? I understand you are lost but at which part? You want to write the textbox value back to the database?

You need a button or some other way to commit the change. If it''s a vb.net form the sysntaxt for the text box value is ''me.textbox1.text'' where textbox1 = the name of your textbox.



应该有一个Text或Value属性,您可以从中获取该信息。你有没看过那个?
There should be a Text or Value property you can get that information from. Did you look into that yet?



tq回复...


是的我知道基本的这样的......


>> var1 = me.textbox1.text


是你的意思吗?它只是在页面加载时返回/收集文本框中最初放在第一位的文本。我想要用户编辑的文本.. tq

tq for the reply...

yup i know the basic one such..

>>var1 = me.textbox1.text

is that do you meant? it just return / collect the TEXT on textbox originally put in the first place when the page load.. i wantted the edited one by user.. tq


这篇关于从文本框中获取当前文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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