please I need help with basic ado.net save, basic syntax neede

please I need help with basic ado.net save, basic syntax neede

Post by TmV3YmVlIE » Wed, 29 Jun 2005 02:39:03


thanks!!!
is this the basics I need to do a save, that is al i m trying to do is learn
how to do 1 succesful ado.net save
--
Adam S
 
 
 

please I need help with basic ado.net save, basic syntax neede

Post by TmV3YmVlIE » Wed, 29 Jun 2005 02:46:08

i get error , connection string has not been initialized? what is wrong. I am
sure the answer is simple since I am a newbie!!!!
also, this code i just put on a form , do I need to drag the table on form
and make data set and sql adapter and all that, r should this code work
alone? do I have to bind the text boxes in properties window. be kind, I am
new
--
Adam S

 
 
 

please I need help with basic ado.net save, basic syntax neede

Post by Jay Pond » Wed, 29 Jun 2005 04:55:26

You are getting your connection string from AppSettings("DSN") .

Do you have an application configuration file in your project?

If you do - what is the value of the key "DSN" that you are calling
for?

If you don't - check out the System.Configuration stuff in the Docs.

The code you have will work - you do not need to drag a table or
anything else on the form.


On Mon, 27 Jun 2005 10:46:08 -0700, "Newbee Adam"
 
 
 

please I need help with basic ado.net save, basic syntax neede

Post by TmV3YmVlIE » Wed, 29 Jun 2005 15:09:07

I am not sure about the application config file. how would I now, what would
it be called. is there easir way to make connection string. it is simply sql
server db on local machine
--
Adam S