New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions Bookmark and Share
Johnk1sedg

ASP Linear BGS used in Expressions web2

Good morning. We have purchased the ASP.NET Barcode Web Server Control and have got it working OK with default text generating bar codes OK. However I am trying to get it to pick up data returned from a web form confirmation page, picking up the data from the returned value
<!--webbot bot="ConfirmationField" S-Field="MasterSerialNumber" --></td> instead of the string
<% MasterSerialNumber = "123456789012" %><p>

Can any one help with where I am going wrong
Many thanks John K


Code snip it >>>>>>>>>>>>>>>>>>>>>>>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="en-gb" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Confim and Print</title>
<style type="text/css">
.style1 {

font-size: x-small;
}
.style2 {
font-size: xx-small;
}
</style>
</head>

<body>
<% @ LANGUAGE = VBScript %>
<% MasterSerialNumber = "123456789012" %><p>



<img alt="" height="36" src="images/microlise2012.jpg" width="76" class="style2" /><span class="style2">    
</span>
<strong><span class="style2">Production Data</span></strong></p>
<table style="width: 83%">
<tr>
<td style="width: 174px" class="style2"><strong>Item Number</strong></td>
<td class="style2">
<!--webbot bot="ConfirmationField" S-Field="MasterPartNumber" --></td>
</tr>
<tr>
<td style="width: 174px" class="style2"><strong>Serial Number</strong></td>
<td class="style2">
<!--webbot bot="ConfirmationField" S-Field="MasterSerialNumber" --></td>
</tr>


<tr>
<td style="width: 174px" class="style2"><strong>SIM Card Number</strong></td>
<td class="style2">
<!--webbot bot="ConfirmationField" S-Field="SimCardNumber" --></td>
</tr>
<tr>
<td style="width: 174px" class="style2"><strong>SIM Phone Number</strong></td>
<td class="style2"> </td>
</tr>
<tr>
<td style="width: 174px" class="style2"><strong>SIM Vendor</strong></td>
<td class="style2"> </td>
</tr>
<tr>
<td style="width: 174px"> </td>
<td class="style2"> </td>
</tr>
<tr>
<td style="width: 174px"> </td>
<td class="style2"> </td>
</tr>
<tr>
<td style="width: 174px"> </td>
<td class="style2">
<img alt="" height="66" src="images/logo.gif" width="150" /></td>
</tr>


<p><img src="<%="http://steel/MelProdData/idautomation-code128.asp?D=" & MasterSerialNumber %>"
</p> <tr>
<td style="width: 174px"> </td>
<td class="style2"> </td>
</tr>
<tr>
<td style="width: 174px"> </td>
<td class="style2"> </td>
</tr>
</table>
</body>

</html>


03-09-12     2691 day(s) ago    

  Report Abuse

 

Ben

Best Answer

Is anything being returned?

I am not sure if you will be able to pass your variable in VBScript because it contains the & which is reserved for HTML. This means anything beyond the ampersand will probably be ignored. You may need to find out if there is another way to pass the variable using VBScript without using the &. If not, you should be able to use JavaScript as it uses the + symbol for variables.

Perhaps, you could try something similar to this:

<script type="text/javascript">

var MasterSerialNumber = "12345";

src="<%=" target="_blank">http://steel/MelProdData/idautomation-code128.asp?D="+MasterSerialNumber %>"

Posted 2691 day(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2019 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook