Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET 1.1: How to dynamically create data entry form?

Reply
Thread Tools

ASP.NET 1.1: How to dynamically create data entry form?

 
 
Gino Perruti
Guest
Posts: n/a
 
      10-05-2006
I am converting an old ASP data entry form to ASP.NET 1.1. The old form has
a script block that dynamically adds rows to a table that contain cells with
a textbox for quantity, product description, price, and total (which is
calculated after the form is submitted). The number of rows depends on how
many records were retrieved from a query.

<%
dim i: i = 0
with rs
do while .eof = false
i = i +1
response.write "<tr><td><input type=""text"" id=""" & "lineQty" &
cstr(i) & """ value=""" & cstr(order_array(i , 1)) & """></td><td id=""" &
"prodDesc_" & cstr(rs("prod_id")) & """>" & rs("prod_desc") & "</td><td
id=""" & "unitCost" & cstr(i)& """>" & cstr(rs("prod_unit_cost")) &
"</td><td id=""" & "lineTotal" & cstr(i) & """>" & cstr(order_array(i, 3)) &
"</td></tr>"
.movenext
loop
end with
%>

When the form is submitted, an array that contains the quantities, prices,
and totals are calculated from the values entered in the form. Piece of
cake in classic ASP. How on Earth do I do the same kind of thing in ASP.NET
1.1?

Can someone please point me to a *complete* example of the code to do this
(preferably in VB)? All I have come across in the newsgroups are vague,
philosophical discussions or partial snippets that don't explain it clearly
enough (or just don't work). I confess, I haven't gotten past the 30th page
or so in Google, but I need to figure this out in very short order now.

Thanks!

Gino


 
Reply With Quote
 
 
 
 
Jon Paal
Guest
Posts: n/a
 
      10-05-2006
http://msconline.maconstate.edu/tutorials/default.aspx


"Gino Perruti" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
>I am converting an old ASP data entry form to ASP.NET 1.1. The old form has a script block that dynamically adds rows to a table
>that contain cells with a textbox for quantity, product description, price, and total (which is calculated after the form is
>submitted). The number of rows depends on how many records were retrieved from a query.
>
> <%
> dim i: i = 0
> with rs
> do while .eof = false
> i = i +1
> response.write "<tr><td><input type=""text"" id=""" & "lineQty" & cstr(i) & """ value=""" & cstr(order_array(i , 1)) &
> """></td><td id=""" & "prodDesc_" & cstr(rs("prod_id")) & """>" & rs("prod_desc") & "</td><td id=""" & "unitCost" & cstr(i)& """>"
> & cstr(rs("prod_unit_cost")) & "</td><td id=""" & "lineTotal" & cstr(i) & """>" & cstr(order_array(i, 3)) & "</td></tr>"
> .movenext
> loop
> end with
> %>
>
> When the form is submitted, an array that contains the quantities, prices, and totals are calculated from the values entered in
> the form. Piece of cake in classic ASP. How on Earth do I do the same kind of thing in ASP.NET 1.1?
>
> Can someone please point me to a *complete* example of the code to do this (preferably in VB)? All I have come across in the
> newsgroups are vague, philosophical discussions or partial snippets that don't explain it clearly enough (or just don't work). I
> confess, I haven't gotten past the 30th page or so in Google, but I need to figure this out in very short order now.
>
> Thanks!
>
> Gino
>
>



 
Reply With Quote
 
 
 
Reply

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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Allowing entry of a Carriage Return during data entry Mike Owen ASP .Net Web Controls 3 07-27-2006 02:34 PM
Form field entry directs to diff URLs based on entry? AtomicBob HTML 14 05-02-2006 07:07 AM
Form entry to Time part of database Date entry? Noozer Javascript 2 08-01-2005 08:10 PM
Can't VS WebDataForm wizard create data entry forms/grids? trebor@sirius.com.no.more ASP .Net 0 12-31-2003 08:30 AM



Advertisments