PC Review


Reply
Thread Tools Rate Thread

Total Muffled

 
 
MC
Guest
Posts: n/a
 
      12th Dec 2005
Hi all

Complete newby trying to understand something

I have made my own form with some fields and then dragged a SqlDataSource
onto the page and made an Insert to go with the SqlDataSource.

I have a button which calls this

Protected Sub InsertTextBox_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles InsertTextBox.Click

Me.SqlDataSource1.InsertParameters.Add("@CompanyID",
Me.CompanyIDTextBox.Text)

Me.SqlDataSource1.InsertParameters.Add("@ContactName",
Me.ContactNameTextBox.Text)

Me.SqlDataSource1.InsertParameters.Add("@CompanyName",
Me.CompanyNameTextBox.Text)

Me.SqlDataSource1.InsertParameters.Add("@Postcode", Me.PostCodeTextBox.Text)

Try

Me.SqlDataSource1.Insert()

Catch ex As Exception

Response.Write(ex.Message)

End Try

End Sub

I have checked parameter names etc put it wont put the values to the
parameters. Obviously the .Add is wrong, what should be using?

Cheers


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
music sounds muffled, karoke, etc. =?Utf-8?B?SmFzb24gU3BlbmNl?= Windows XP General 0 10th Sep 2005 01:22 AM
muffled sound =?Utf-8?B?c2ltbW9zaW1wa2lucw==?= Windows XP Music 7 13th Jul 2005 06:19 PM
muffled sounds =?Utf-8?B?Um9zc2Nv?= Windows XP Help 2 22nd Feb 2005 07:33 PM
Muffled sound P4P800 (heat) Navid Asus Motherboards 5 8th Dec 2004 12:34 PM
Muffled Sound Jocelyn De Silva Windows XP General 1 28th Aug 2003 09:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.