Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Showing posts with label web.config. Show all posts
Showing posts with label web.config. Show all posts

Asp.Net Set Custom Error Page in Web.Config

Jul 20, 2016 1 comments
Introduction

Here I will explain how to set custom error page in web.config in
asp.net or display custom error page in asp.net in case url pattern not matched or asp.net redirect to default error page in case non existing pages. By enabling customErrors in web.config file in asp.net we can display or redirect to custom error page whenever error throws in application.

Get (Read) Connectionstring from App.Config File in C#, VB.Net

Feb 26, 2015 0 comments
Introduction:

Here I will explain how to read or get connectionstring from app.config file in
c#, vb.net. By using System.Configuration reference we can read or get connectionstring from app.config file in windows or console application in c#, vb.net.

Description:

In previous post I explained encrypt or decrypt connectionstring in app.config file, export datagridview to crystal report in windows application,
convert currency or numbers to words in asp.net, angularjs bind dropdownlist with text and value, jQuery tag cloud example in asp.net and many more articles related to asp.net using c#, vb.net. Now I will explain how to read or get connectionstring from app.config file in c#, vb.net.

To read connectionstring from app.config file first create new windows application and open your app.config file and add conneciton string like as shown below

C# - The Connectionstring Property has Not been Initialized in Asp.net

Feb 25, 2015 1 comments
Introduction:

Here I will explain how to solve the problem of “the connectionstring property has not been initialized in asp.net while sending request to connect SQL Server using c#.net, vb.net.

Description:

In previous posts I explained read connection string from web.config file in asp.net, read appsettings from web.config file in asp.net, use multiple web.config files in asp.net with example, encrypt and decrypt connection string in asp.net and many articles relating to solve errors in asp.net, SQL Server, IIS, etc. Now I will explain how to solve the problem of “the connectionstring property has not been initialized in asp.net while sending request to connect SQL Server”.

Encrypt and Decrypt Connection String in App.Config File in Windows / Console Applications

4 comments
Introduction:

Here I will explain how to encrypt and decrypt connection string in app.config file in windows or console application using c#.net, vb.net
we can do encryption and decryption for connection string using aspnet_regiis.exe command line tool in file system website.

Description:

In Previous articles I explained add textbox items to listbox on button click in asp.net, difference between dispose and finalize methods in c#, vb.netdifference between page_load and page_init methods in asp.net, convert numbers or rupees to words in asp.net and many articles related to 
Asp.net, Gridview, SQL Server, Ajax, JavaScript. Now i will explain how to encrypt and decrypt connection string in app.config file in windows or console applications. 

Generally in all applications we will use connectionStrings section in web.config or app.config file to store database connection. The connectionStrings section contains sensitive information of database connections including username and password of database. Is it secured to store the sensitive information of database connections in plain text files called web.config and machine.config files? 

Read/Write appsettings from web.config file in asp net

Mar 31, 2012 5 comments
Introduction:

In this article I will explain how to read or write appsettings in web.config file using asp.net.


Description:

In Previous article I explained clearly about how to read or write connectionstrings from web.config file in asp.net. Now I will explain how to write appsettings in web.config file and how to read appsettings from web.config file using asp.net. 

Read or Write connection strings in web.config file using asp.net

Nov 27, 2011 25 comments
Introduction:

In this article I will explain how to read or write connection strings in web.config file using asp.net.


Description:

In Previous article I explained clearly about Encrypt or Decrypt connection strings in web.config file using asp.net. Now I will explain how to write connection strings in web.config file and how to read connection strings from web.config file using asp.net. 

how to use multiple web.config files in asp.net application or working with more than one web.config file in asp.net application

Apr 18, 2011 20 comments

Introduction:

Here I will explain how to use multiple web.config files in single application using asp.net

Description:

I attended one interview at that time they asked one question that is it possible to use multiple web.config files in single asp.net application? For that question answer is Yes we can use multiple web.config files in single web application but how? By creating web.config file in sub root folders we can use multiple web.config files in our application but each folder should contains only one web.config file. Here I will explain step by step how we can use multiple web.config files in our application.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.