Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to encrypt a connection string in web.config file?

Answer Posted / kinjal panchal

<configuration>
<appsetting>
<add key="debug" value="true"/>
<add key="server" value="your server name"/>
<add key="Database" value="your databse name"/>
<add key="username" value="your username"/>
<add key="password" value="your password"/>
</appsetting>

<connectionstring>
<add name="cnnectionstrigname"
connectionstring="datasource=server name; initial
catalog=database name; user id=your username; password=your
password" providername="system.data.sqlclient"/>
</connectionstring>
</configuration>

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of MVC Scaffolding?

1001


What is a form tag?

868


Which .NET framework supports Web API?

1033


What is the use of ASP.NET routing?

1044


Define view state.

931


Explain how is the asp.net mvc architecture different from others? : asp.net mvc

998


How do you declare static variable?

1011


What is cache in asp net?

985


What is viewstate? What does the “enableviewstate” property do?

910


What is owin authentication?

950


What is active web pages?

945


What is the difference between executescalar and executenonquery?

990


If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.

1043


What is difference between session and cookies?

1010


What are the different authentication modes in asp.net?

996