how to like asp.net web.config (appsetttings) in vb.net

Posted by Dn2010 under VB.NET on 12/27/2010 | Points: 10 | Views : 1945 | Status : [Member] | Replies : 2
hi friends,

how to like asp.net web.config (appsetttings) in vb.net

con.ConnectionString = "Server=abc;Data Source=.;Initial Catalog=test;Integrated Security=True"


<appSettings>
<add key="ConnectionString" value="Data Source=abc\SQLEXPRESS;Initial Catalog=test;User ID=sa;Password=abc"/>
</appSettings>

thanks




Responses

Posted by: SheoNarayan on: 12/28/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Could not understand what do you mean by "how to like". Could you rephrase your question?

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: T.saravanan on: 12/28/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

I think your question is how to get connection value from web.config file using VB language.
Web.Config file is common for both C# and VB language. To get a value from that file refer the following links....

http://www.c-sharpcorner.com/uploadfile/sd_patel/webconfiginaspnet11242005061608am/webconfiginaspnet.aspx
http://forums.aspfree.com/net-development-11/trying-to-read-from-web-config-file-with-vb-net-240317.html

Cheers :)


Thanks,
T.Saravanan

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response