保存到数据库 [英] Saving to a database
问题描述
<由Frinavale编辑>
删除了如何在您的计划中使用数据库
< / edit>
PLS帮助!
我已经能够为了我自己的代码(C#)成功完成上述所有操作,我正在从用户的输入(即登录表单)中检索参数。当我运行这个代码时它没有任何东西保存到数据库,它不会产生任何错误。所以我不知道我哪里出错了。
i将以下代码放在登录按钮的onclick事件处理程序中但是它仍然无法正常工作。你帮我吗?
<edit by Frinavale>
Removed the quoted .NET article on how to use a database in your program
</edit>
PLS HELP!
I Have been able to do all the above successfully though for my own code(C#), i''m retreiving the parameters from the user''s input i.e. a login form. when i run this code it saves nothing to the database and it generates no errors.so i dont know where i''ve gone wrong.
i put the following code in the onclick eventhandler of the login button but it still doesnt work. can u help me?
推荐答案
< Frinavale编辑>
在如何删除引用的.NET文章在您的计划中使用数据库
< / edit>
PLS帮助!
我已经能够完成所有以上成功但我自己的代码(C#),我正在从用户的输入,即登录表单中检索参数。当我运行这个代码时它没有任何东西保存到数据库,它不会产生任何错误。所以我不知道我哪里出错了。
i将以下代码放在登录按钮的onclick事件处理程序中但是它仍然无法正常工作。你帮我吗?
<edit by Frinavale>
Removed the quoted .NET article on how to use a database in your program
</edit>
PLS HELP!
I Have been able to do all the above successfully though for my own code(C#), i''m retreiving the parameters from the user''s input i.e. a login form. when i run this code it saves nothing to the database and it generates no errors.so i dont know where i''ve gone wrong.
i put the following code in the onclick eventhandler of the login button but it still doesnt work. can u help me?
谢谢。
上面的代码就是代码登录页面。
gridview页面的代码是
thanks.
the code above is the code on the login page.
the code for the gridview page is
您是否曾调用过Insert()函数?
http://msdn2.microsoft.com/en-us/lib...rt(VS.80).aspx
我的帮助说你必须调用它来运行你的insertcommand
Are you ever calling the Insert() fnuction?
http://msdn2.microsoft.com/en-us/lib...rt(VS.80).aspx
My help said that you have to call that in order to run your insertcommand
这篇关于保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!