Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Please help with tutorial or sample

Thread Tools

Please help with tutorial or sample

Lloyd Sheen
Posts: n/a
In preparation for an app that will be a simple ASP.NET page with about 40
text boxes I need sample to do the following:

1. Select the current data (done)
2. Bind to the textboxes (done)
3. When user clicks the update button the page will update the data in the

Existing code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
End If
End Sub

The above works and shows the value of the fields in the text boxes.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim picnt As Integer
picnt = Me.SqlDataAdapter1.Update(Me.TerrDataSet)

Catch ex As Exception
Dim s As String = ex.Message
End Try
End Sub

This code shows a count of 0 for the Update???

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
data access tutorial with new adventure works sample database? Andy B ASP .Net 0 02-08-2008 01:04 PM
looking for sample with backend sample is there one? Jake ASP .Net 0 02-09-2006 10:44 PM
Nevow Tutorial and sample app Python 1 01-06-2005 03:25 PM
Sample or tutorial on databinding to text control Lloyd Sheen ASP .Net 0 03-03-2004 03:35 PM
please help... learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM