Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Write one entry multiple times??

Reply
Thread Tools

Write one entry multiple times??

 
 
Mangler
Guest
Posts: n/a
 
      10-27-2006
I created a barcode:
<%
RMABarCode = Request.Form("idrma")
IF Len(RMABarCode) Then
response.write "<img src='barcode.asp?code=" & RMABarCode &
"&height=25&width=1&mode=code39'>"
End If
%>

Does anyone know how to display that barcode multiple times through a
variable?

Say a user needs to print 4 of the above barcode, they would be able to
enter the number of barcodes they need and it will display that many to
be printed.

Any kind of help is appreciated.

Respectfully,

Danny

 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      10-27-2006

"Mangler" <> wrote in message
news: oups.com...
>I created a barcode:
> <%
> RMABarCode = Request.Form("idrma")
> IF Len(RMABarCode) Then
> response.write "<img src='barcode.asp?code=" & RMABarCode &
> "&height=25&width=1&mode=code39'>"
> End If
> %>
>
> Does anyone know how to display that barcode multiple times through a
> variable?
>
> Say a user needs to print 4 of the above barcode, they would be able to
> enter the number of barcodes they need and it will display that many to
> be printed.
>


Add another field for the user to enter the number of times they want to
print the barcode.

<%
RMABarCode = Request.Form("idrma")
NoTimes = Request.Form("NoTimes")
If Len(RMABarCode)>0 Then
If IsNumeric(NoTimes) Then
For i = 1 to NoTimes
response.write "<img src='barcode.asp?code=" & RMABarCode &
"height=25&width=1&mode=code39'><br>"
Next
End If
End If
%>

--
Mike Brind


 
Reply With Quote
 
 
 
 
Mangler
Guest
Posts: n/a
 
      10-27-2006
Thanks for the reply.

I got an error when the <br> is added and when I take it out it
displays one continuous barcode.

Any ideas?

Respectfully,

Danny

 
Reply With Quote
 
Mike Brind
Guest
Posts: n/a
 
      10-27-2006

"Mangler" <> wrote in message
news: ups.com...
> Thanks for the reply.
>
> I got an error when the <br> is added and when I take it out it
> displays one continuous barcode.
>
> Any ideas?
>


Not without some clue as to what error you got.

--
Mike Brind


 
Reply With Quote
 
Mangler
Guest
Posts: n/a
 
      10-27-2006
I played with it and got it to work. My only thing is it displays the
barcode across like:

(barcode) (barcode)

How can i get it to show it like:

(barcode)

(bracode)

Respectfully,

Danny

 
Reply With Quote
 
Mike Brind
Guest
Posts: n/a
 
      10-27-2006

"Mangler" <> wrote in message
news: ups.com...
>I played with it and got it to work. My only thing is it displays the
> barcode across like:
>
> (barcode) (barcode)
>
> How can i get it to show it like:
>
> (barcode)
>
> (bracode)


By putting <br> back in.

Or surrounding each image with <p>...</p>. (Or <div>... </div>)


 
Reply With Quote
 
Mangler
Guest
Posts: n/a
 
      10-27-2006
We are good! Thanks for the help.

Respecfully,

Danny

 
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
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
Why does the write method take a character pointer to the object one wishes to write? AMT2K5 C++ 3 12-10-2005 07:05 PM
Form entry to Time part of database Date entry? Noozer Javascript 2 08-01-2005 08:10 PM
Using One XSLT and multiple XML Problem (One is XML and another one is XBRL) loveNUNO XML 2 11-20-2003 06:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57