You didn't post any code or say which database you are using but there are quite a few web sites that can help you. These all have example database connection code...<BR><BR>http://www.asp101.com/lessons/<BR>http://www.aspnextgen.com/<BR>http://www.gotdotnet.com/<BR><BR>Also www.asp.net is an excellent source for connection string examples.
hi, <BR><BR> I am using asp.net with iis 5.0 and sqlsever 2000 database.My web.config file has the following codings for connect string.i can able to insert record from the first web form. but i can't from the second webform. i am getting this error "Connectstring has not been initialized"<BR><BR>my web.config file....<BR><BR><appSettings><BR><a dd key="ConnectionString" value="server=Helpdesk;database=teledb;User ID=mytest;Pwd=mytest" /><BR></appSettings> <BR><BR><BR>thanks in advance<BR>raj<BR>
hi,<BR> <BR> I am getting the connectstring like configurationsettings.appsettings("Connectstring") <BR><BR> but if i user the connect string directly like typing the connectstring. it is working fine.i feel it is not reading from web.config file. any suggestions?<BR><BR>thanks<BR>raj<BR><BR><BR>my code is like this...<BR> idim mconn as new sqlconnectionI am using
maybe , but is this a typo? ConnectionString<BR><BR> configurationsettings.appsettings("Connectstring") <BR><BR><BR><BR><BR>This posting is provided "AS IS" with no warranties, and confers no rights.<BR>