如何从数据库中的html文本框控件中获取值。 [英] how to strore value from html textbox control in database.

查看:81
本文介绍了如何从数据库中的html文本框控件中获取值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii

i我正在使用html输入框来装箱它会起作用的自动提示框但我没有找到如何从数据库中的列表中保存所选值的输入框。

任何人都可以帮助我

hii
i am using html input box for crating the autosuggest box it will work but i did not find how to save the selected value from the list in the database form the input box .
can any one help me

推荐答案

Hi Supriya,



你可以找到像这样的html输入框:



Hi Supriya,

You can find the html input box like this:

Dim SourceTextBox As TextBox
SourceTextBox = CType(FindControl("search_input"), TextBox)





现在你可以使用SourceTextBox.Text获取所选值并将其添加到数据库。





要插入此选定值,您可以按照以下链接:



步骤将记录INSERT到SQL服务器的逐步过程



insert-data-into-sql-server-using-vbnet




$ b





不要忘记将有用的回复标记为答案,如果他们帮助你走向解决方案。



Now you can use SourceTextBox.Text to get selected value and add this to database.


To insert this selected value you can follow below links:

step-by-step procedure to INSERT record to SQL server

insert-data-into-sql-server-using-vbnet





Don''t forget to mark useful responses as Answer if they helped you towards a solution.


这篇关于如何从数据库中的html文本框控件中获取值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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