C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




ASP.NET


Posted Date: 04 Aug 2008      Total Responses: 3

Posted By: mahesh       Member Level: Silver     Points: 1


how to disconnect the database connection when click the button



Responses

Author: Vishnu K J    04 Aug 2008Member Level: GoldRating:     Points: 0
using the dbCon.Close() we can disconnect an open daatbase connection.


Author: ANIL PANDEY    04 Aug 2008Member Level: DiamondRating:     Points: 3


Simply For Clossing the Connection from the Database

What ever Connection u have opened Previously u can close it like

SqlConnection Con = new SqlConnection()
Con.Open();

--
--
--
-
--
-
-

Con.Close()

Regards
Anil Kumar



Author: UltimateRengan    04 Aug 2008Member Level: DiamondRating:     Points: 4
hi,

Dim strConn As String
strConn = "USER=ttttt;PASSWORD=xxxx;SERVER=xxxxxx;DATABASE=Emp"
Dim MySQL As String = "Select empno, empname from Emptbl"
Dim MyConn As New SqlClient.SqlConnection(strConn)
myConn.close()



Post Reply
You must Sign In to post a response.
Next : about resourse file
Previous : Useful Tip "Set web page resolution in asp.net "
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it support

Contact Us    Privacy Policy    Terms Of Use