Results 1 to 2 of 2

Thread: Dynamic Form Objects [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member johnweidauer's Avatar
    Join Date
    Sep 2002
    Location
    SLC, UT
    Posts
    314

    Dynamic Form Objects [RESOLVED]

    I have a form, i want to use the DBReader to build out a list of items with a textbox to use as the quantity for each item. When the client clicks the Add Product button, I want to insert the information into a database, but i am not familiar with the form controls.

    Code:
    DBCmd = New OleDbCommand("EXEC sel_ProductInformation '" & Request.QueryString("FSKU") & "'",DBConn2)
        
             DBReader = DBCmd.ExecuteReader
        
             Response.Write("<Table width=700>" & vbCrlf)
        
             While DBReader.Read
                  Response.write("<TR>" & vbCrlf)
                  Response.write("<TD>" & DBReader("ProdSKU") & "</TD>" & vbCrlf)
                  Response.write("<TD>" & DBReader("Itmdesc1") & "</TD>" & vbCrlf)
                  Response.write("<TD>" & FormatCurrency(DBReader("MarkUp")) & "</TD>" & vbCrlf)
                  Response.write("<TD><input type=""text"" MaxLength=""4"" id=""Qty" & DBReader("ProdSKU") & """ size=""4"" /></TD>" & vbCrlf)
                  Response.write("</TR>" & vbCrlf)
        
             End While
        
             Response.write("</TABLE>" & vbCrlf)
    on the Sub Button1_Click(Sender As Object, E As EventArgs) event (Submit), I want to read the values of the textboxes on the form, however, with the way that I have written this page I do not know how to obtain the values. Any help?..maybe i have approached this in the wrong way.

    Thanks.
    Last edited by johnweidauer; May 20th, 2004 at 11:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width