Read connection string from Web config using C# and VB.Net in ASP.Net

Last Reply 10 months ago By dharmendr

Posted 10 months ago

Actually i want to save data in sql server 2012 with id, name & image but everything is good.

But still unable to insert my data. I want to ask that in web.config file some default lines are there which is not coming when im trying to open it, is that still important of that lines or else i have only pass connection string with data in

<connectionstring></connectionstring>div, like

<add name="connection name" ....................etc


You are viewing reply posted by: dharmendr 10 months ago.
Posted 10 months ago

Hi Amit1992,

You have to pass only connection string with data.

Refer below article.

Upload and Display Images using Path stored in database in GridView in ASP.Net using C# and VB.Net