如何使用c#with html将数据插入sql server [英] how to insert data into sql server using c# with html

查看:73
本文介绍了如何使用c#with html将数据插入sql server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在2010年我添加了新的html页面,两个单选按钮和html控件的提交按钮。选择单选按钮后,单击提交按钮将其保存到sqlserver数据库。我正在使用html page.but来点击按钮点击逻辑。请帮帮我。



谢谢你,



问候,

raju

解决方案

它可以帮助你 http://stackoverflow.com/questions/3490648/how-to-save-html-data- in-sql-server [ ^ ]


您必须使用按钮和文本框等ASP.Server控件。这样您就可以与数据库建立连接并开始工作。

另一种方法是使用html控件,你必须使用提交按钮

和表格标签,如



 <  表格    action   = 处理页面 >  
....


< 输入 < span class =code-attribute> type = submit >


< / form >


Hi,
In vs 2010 i added new html page,Two radio buttons and submit button from html control.after selecting radio button and clicking the submit button to save it to the sqlserver database.I am using html page.but to fire button click logic.Please help me.

thank you,

regards,
raju

解决方案

it may help you http://stackoverflow.com/questions/3490648/how-to-save-html-data-in-sql-server[^]


You have to use ASP.Server controls like button and textbox. So that you can make connection with database and do you work.
Another way is using html controls, you have to use submit button
and form tag like,

<form action="processing page">
....
.
.
<input type="submit">
.
.
</form>


这篇关于如何使用c#with html将数据插入sql server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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