Click here to Skip to main content
15,921,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

VB
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()
Posted
Updated 16-Dec-15 15:26pm
v2

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?
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900