I use galaxy tap so i cant see the insert code button. You may give me your own example. All i want is a code in c# That will insert into a database through text field and another code that will select from a database through text Field and display it in a
new page. Just write your own example On visual studio c# i can modify it. Thanks
Thanks there is no error on the code, but when i insert a name through The text field it will not enter my database. After entering data through the text field if i check my database i wont see it, why?. See my database query Database name Lagos Table name
Moon Table Definition NameID Name Can you check why its not entering to the database Thanks
Have you tried using the debugger to step through the code? Check the values of the SqlCommand, and the Parameter.
Superguppie.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
micahdavid20...
Member
3 Points
73 Posts
data submit error
May 05, 2012 07:23 AM|LINK
Primillo
Star
8723 Points
1677 Posts
Re: data submit error
May 05, 2012 07:29 AM|LINK
Hi
Please use the "Insert Code" button.
That way we can read your code in a better way
Primillo
http://www.facebook.com/programandopuntonet
basheerkal
Star
10672 Points
2426 Posts
Re: data submit error
May 05, 2012 10:10 AM|LINK
This Should be
ConfigurationManager.ConnectionStrings["Name of the Connection String as saved in web.config"].ConnectionString'
or
string connString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\Lagos.mdf;Integrated Security=True;User Instance=True"
(Talk less..Work more)
micahdavid20...
Member
3 Points
73 Posts
Re: data submit error
May 05, 2012 07:46 PM|LINK
micahdavid20...
Member
3 Points
73 Posts
Re: data submit error
May 05, 2012 07:51 PM|LINK
micahdavid20...
Member
3 Points
73 Posts
Re: data submit error
May 05, 2012 08:21 PM|LINK
superguppie
All-Star
48225 Points
8679 Posts
Re: data submit error
May 11, 2012 02:11 PM|LINK
Have you tried using the debugger to step through the code? Check the values of the SqlCommand, and the Parameter.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.