细节不会存储到数据库中 [英] details won't to store into database

查看:78
本文介绍了细节不会存储到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,目前正在申请系统。我正在使用oracle sql developer来存储细节。我正在使用Microsoft visual studio 2010来开发我的系统。有一个问题。我有注册页面。新用户需要注册1st。如果我将详细信息输入到提供的文本框中,则详细信息将不会存储到数据库中。如果我把细节放入代码中,详细信息存储在数据库中。有人可以帮我解决这个问题。谢谢。



Hi all, currently wring an application system. I'm using oracle sql developer to store the details. I'm using Microsoft visual studio 2010 to develop my system. Have a question. I have registration page. New user need to register 1st. If I key in the details into textbox provided, the details won't to store into database. If i put the details into the code, the details stored in database. Can someone help me to solve this problem. Thank you.

SqlDataSource1.SelectCommand = "SELECT username, passwrd, email * from     CUST_TB_REGISTER"
 SqlDataSource1.InsertCommand = "insert into cust_tb_register (username, passwrd, email) values('veni', 'asd',  'veni@yahoo.com')"
 SqlDataSource1.Insert()

推荐答案

我猜*没有给出细节,这是 IsPostBack 问题('page'这个词让我假设一个网站)



你可以尝试调试吗?
i'd *guess* given no details, that it's an IsPostBack issue (the word 'page' makes me assume a website)

you could try debugging it?


也许你可能想要尝试这两个链接



将数据插入数据库第1部分: https://www.youtube.com/watch?gl=SG&hl=en-GB&v=Eiu8UTAvbrM [ ^ ]





将数据插入数据库第2部分: https://www.youtube.com/watch?v=bdpF6Dp4pFM [ ^ ]



几个月前我确实在这些视频中使用了编码,它确实有用,希望它也适合你。
Perhaps you might want to try these two links

Insert data into database part 1: https://www.youtube.com/watch?gl=SG&hl=en-GB&v=Eiu8UTAvbrM[^]


Insert data into database part 2: https://www.youtube.com/watch?v=bdpF6Dp4pFM[^]

I did use the coding inside these videos a few months ago and it works, hopefully it works for you too.


这篇关于细节不会存储到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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