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 !




insert listview values in DB


Posted Date: 25 Jul 2008      Total Responses: 1

Posted By: Renuka       Member Level: Bronze     Points: 1



how to save list view values in my table.




Responses

Author: Shivshanker Cheral    25 Jul 2008Member Level: DiamondRating:     Points: 0

to save the listview data to the database???

Private Sub cmdsave_Click()
Dim adoRecordset As ADODB.Recordset

Dim conDataConnection As Connection
Set conDataConnection = New Connection
conDataConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & App.Path & _
"\Overtime.mdb;Persist Security Info=False"

Set adoRecordset = New ADODB.Recordset
adoRecordset.Open "SELECT * FROM Overtime", conDataConnection, adOpenStatic, adLockOptimistic

With adoRecordset
.AddNew
.Fields("EmployeeName") = ListView1.ListItems.Add("Employee Name")
.Update

End With

adoRecordset.Close

End Sub



Post Reply
You must Sign In to post a response.
Next : Listview in ASP.NET
Previous : Paging adn sorting in ListView
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use