Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can anyone explain me with a example coding?
Posted
Comments
senguptaamlan 24-Feb-11 0:40am    
ample of examples are present in google....

Let Me Google That For You[^]


PS: You may refine your search for more specific details.
 
Share this answer
 
in web confiq made connection in App setting as
XML
<appSettings>
 <add key="conn" value="server=servername;database=databasename; integrated security=true"/>

  </appSettings>



and in aspx page write code as:

SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["conn"]);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900