将数据插入数据库 [英] inserting data to database
本文介绍了将数据插入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了一个简单的代码来提交价值:
< 表格 action = register.aspx 方法 = POST >
< input 类型 = text name = name > < br / >
< 输入 type = 提交 姓名 = 提交 >
< / form > ;
但是我必须编写一个代码来获取寄存器中的值.aspx文件,必须将其插入数据库。
如何在register.aspx页面中获取此值????
请帮我提前。
提前致谢......
解决方案
< blockquote>试试这个链接 http://www.itorian.com/2012/07/5-ways-to-send-data-between-aspnet-pages.html [ ^ ]
使用< asp:Button .... / >而不是
< 输入.... / >。
I wrote a simple code to submit value :
<form action="register.aspx" method="POST">
<input type="text" name="name"><br/>
<input type="submit" name="submit">
</form>
But I have to write a code to get the posted value in register.aspx file and have to insert it into database.
How I can get this value in register.aspx page????
Please help me to ahead.
Thanks in advance......
解决方案
try this link http://www.itorian.com/2012/07/5-ways-to-send-data-between-aspnet-pages.html[^]
Use<asp:Button..../>instead of
<input..../>.
这篇关于将数据插入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文