Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

John Wooton

@John Wooton
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ASP.Net AdRotator Extra Space
    J John Wooton

    Hi all, I've tried to find a solution to this and I've had no luck. For some reason, there seems to be an extra space at the bottom of my adrotator control. Border and padding are set to 0px, but it's still there. I've even set the CSS properties to show no border or padding. Has anyone else had this problem and how have you fixed it? I know it seems like such a simple problem, but I have been through just about everything.

    ASP.NET csharp css asp-net help question

  • Web hosting hell - what to do? [modified]
    J John Wooton

    I am not a fan of shared hosting either, but for some of my smaller clients, they need the shared hosting especially if their not digging into the bigger development solutions. I had a big problem with gate.com a while back and I posted a bad review about them on my blog. If I were referring someone on shared hosting, I would push for GoDaddy, they seem to be a little bit safer although shared control of the hosting space is not all that impressive. But then again, I'm talking about shared hosting, not dedicated. John Wooton Professional ASP.net developer Check out my blog

    The Lounge sales sysadmin hosting business regex

  • Need Help...Using button to call function.
    J John Wooton

    Hey Nick, I emailed you a reply. Let me know if there's anything you can do to help me. I just didn't want to put a bunch of secure code in a public forum. John

    ASP.NET learning csharp asp-net database help

  • Need Help...Using button to call function.
    J John Wooton

    Hi Ista, Todd was helping me out there, and I actually made the error of calling a function directly from the button instead of using a sub as an event handler. Here's what I worte, but it's still throwing errors. Todd seemed to think that I was missing an argument in the line that calls the function. I can't seem to figure it out. Can you think of what I might be missing. Here's the event handler: Sub ConfInsert(sender As Object, e As EventArgs) handles Confbtn.click dim conf as string conf = funcConfInsert End Sub Also, normally I don't write the code myself. I usually have the program do it for me. Saves me a bunch of time, but this code I had to write myself.

    ASP.NET learning csharp asp-net database help

  • Need Help...Using button to call function.
    J John Wooton

    Okay, that makes sense. So I added the Sub to handle the button click but now I'm getting another error. Here's the Sub I created (I think it's correct) Public Sub ConfInsert (ByVal sender As Object, ByVal e As System.EventArgs) handles Confbtn.Click dim conf as string conf = funcConfInsert End Sub Here's the new error that I am getting: BC30455: Argument not specified for parameter 'billingAddress' of 'Public Function funcConfInsert(cardAmount As String, deliveryMethod As String, recipientName As String, recipientAddress As String, recipientCity As String, recipientState As String, recipientZip As String, recipientPhone As String, recipientEmail As String, senderName As String, billingName As String, billingAddress As String, billingCity As String, billingState As String, billingZip As String, billingPhone As String, billingEmail As String) As Object'. So, I took a look at the parameter code. First the SQL statement: Dim queryString As String = "INSERT INTO [GCOrders] ([CardAmount], [DeliveryMethod], [RecipientName], [Recipie"& _ "ntAddress], [RecipientCity], [RecipientState], [RecipientZip], [RecipientPhone],"& _ " [RecipientEmail], [SenderName], [BillingName], [BillingAddress], [BillingCity],"& _ " [BillingState], [BillingZip], [BillingPhone], [BillingEmail]) VALUES (@CardAmou"& _ "nt, @DeliveryMethod, @RecipientName, @RecipientAddress, @RecipientCity, @Recipie"& _ "ntState, @RecipientZip, @RecipientPhone, @RecipientEmail, @SenderName, @BillingN"& _ "ame, @BillingAddress, @BillingCity, @BillingState, @BillingZip, @BillingPhone, @"& _ "BillingEmail)" Then the individual parameter "billingAddress": Dim dbParam_billingAddress As System.Data.IDataParameter = New System.Data.OleDb.OleDbParameter dbParam_billingAddress.ParameterName = "@BillingAddress" dbParam_billingAddress.Value = LblBAddress.text dbParam_billingAddress.DbType = System.Data.DbType.[String] dbCommand.Parameters.Add(dbParam_billingAddress) What am I doing wrong? It threw the error on the Sub but is referencing a problem with the parameter. I don't understand. John

    ASP.NET learning csharp asp-net database help

  • Need Help...Using button to call function.
    J John Wooton

    Sorry about that. I was just focused on getting the issue up there. The problem I am having is that it keeps throwing errors: BC30408: Method 'Public Function ConfInsert(..., Sender As Object, e As System.EventArgs) As Object' does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArgs)'. I took out some of the wording on the function error above because of wordiness. The only resource I found on the net was for there to be a Sub event handler, but this is a function. John

    ASP.NET learning csharp asp-net database help

  • Need Help...Using button to call function.
    J John Wooton

    Hey All, I am still new to asp.net and learning the ropes. I keep going around in circles on this one and I can't seem to find any resource or person that can help me out. A little information before I start: I am using 1.1 in vb. Here's the situation: I have a shopping page where the user confirms their order information and then clicks a button that say's "Verify Order". The information on that page is contained in asp:labels: Then I have a function in code behind that takes the values from the labels and inserts them as a new row in an access db. I'll post just a little bit of the code below: Public Function ConfInsert( _ ByVal cardAmount As String, _ ByVal deliveryMethod As String, _ ByVal recipientName As String, _ ByVal recipientAddress As String, _ ByVal recipientCity As String, _ ByVal recipientState As String, _ ByVal recipientZip As String, _ ByVal recipientPhone As String, _ ByVal recipientEmail As String, _ ByVal senderName As String, _ ByVal billingName As String, _ ByVal billingAddress As String, _ ByVal billingCity As String, _ ByVal billingState As String, _ ByVal billingZip As String, _ ByVal billingPhone As String, _ ByVal billingEmail As String, _ ByVal Sender As Object, _ ByVal e As EventArgs) Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; " & _ "Data Source=" <---Omitted for this post! Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString) Dim queryString As String = "INSERT INTO [GCOrders] ([CardAmount], [DeliveryMethod], [RecipientName], [Recipie"& _ "ntAddress], [RecipientCity], [RecipientState], [RecipientZip], [RecipientPhone],"& _ " [RecipientEmail], [SenderName], [BillingName], [BillingAddress], [BillingCity],"& _ " [BillingState], [BillingZip], [BillingPhone], [BillingEmail]) VALUES (@CardAmou"& _ "nt, @DeliveryMethod, @RecipientName, @RecipientAddress, @RecipientCity, @Recipie"& _ "ntState, @RecipientZip, @RecipientPhone, @RecipientEmail, @SenderName, @BillingN"& _

    ASP.NET learning csharp asp-net database help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups