Quote:
quote:Originally posted by CyberW
thank you.
what is the ="<%$ ConnectionStrings:MyConnectionString %>" ?
|
It's not a language-specific thing. It's just a shortcut way of specifying a connection string you've defined in the <connectionStrings /> section of web.config. Doesn't matter if you're using
VB or C#.
If you want, you can actually type your raw connection string into an SqlDataSource, like:
ConnectionString="Data Source=\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True"
But it is much easier to do it the first way.
_________________________________
Visit my blog at
http://leedumond.com