locked
Binding tables to textboxes RRS feed

  • Question

  • I need to find some sample code that, based on the item selection of an unbound combobox, can select between a field shown in one of several tables in the next combobox, and show related fields in another textbox, make calculations using variables entered into another textbox, and save the all of the data in an 'order' table.

    Example:  DropDownList1 = Bread, Meat, Produce

    If Bread is selected then DropDownList1 is populated from tblBread, and = White, Wheat, Rye. Textbox1 then reflects $1.49, $1.88, and $2.10, respectively.  Textbox2 prompts for quantity, and when entered, textbox3 shows total price = textbox1*textbox2. 

    btnSaveResult inserts values of DDL1, DDL2, Txt1, Txt2, & Txt3 as nextRecord in tblOrder.   

    As you can see, I'm a novice at ASP.NET, but this used to be relatively easy with VB6.  Why is it so damn difficult with ASP.NET?

    Elcobar

     

     

    Tuesday, October 12, 2010 8:55 PM