如何从数据库中的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.