Google Answers Logo
View Question
 
Q: Create and post Dynamic HTML in VB .net event? ( No Answer,   0 Comments )
Question  
Subject: Create and post Dynamic HTML in VB .net event?
Category: Computers
Asked by: tonymast-ga
List Price: $20.00
Posted: 07 Mar 2003 19:35 PST
Expires: 10 Mar 2003 19:25 PST
Question ID: 173353
I'm using VB .NET
I need to have the customer click a button and raise an event.
I then need to process some information and prepare values to send.
I then need to create the example below and send it in the VB .NET
event.


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
       
        'code goes here prepare dynamic values. (I can do this part)
        ' then create the code below and post it? (this is the example
I need  to see.
        
End Sub

<FORM ACTION="https://www.whatever.com/cgi-bin/webscr" METHOD="post"
TARGET="XYZ" ID="Form2">
<INPUT TYPE="hidden" VALUE="_cart" NAME="cmd"> 
<INPUT TYPE="hidden" VALUE="me@me.com" NAME="business"
<INPUT TYPE="hidden" VALUE='<%# DataBinder.Eval(ctype(Container,
DataListItem).DataItem, "Name") %>>' NAME=item_name>
<INPUT TYPE="hidden" VALUE='<%# DataBinder.Eval(CType(Container,
DataListItem).DataItem, "ItemID") %>' NAME=item_number>
<INPUT TYPE="hidden" VALUE='<%# DataBinder.Eval(CType(Container,
DataListItem).DataItem, "RetailPrice") %>' NAME=amount>
<INPUT TYPE="hidden" VALUE="1" NAME="no_note">
<INPUT TYPE="hidden" VALUE="USD" NAME="currency_code">
P align="right">
<INPUT TYPE="image" HEIGHT="23" ALT="xxx" WIDTH="87"
SRC="https://www.me.com/images/x-click-but22.gif" BORDER="0"
NAME="I1">
<INPUT TYPE="hidden" VALUE="1" NAME="add"></P>
/FORM>

Request for Question Clarification by cerebrate-ga on 08 Mar 2003 00:54 PST
Dear tonymast-ga,

It shouldn't be a problem to put together a solution to do this for
you, but I do just need to clarify a point first.

From your use of <% %> blocks, I understand that the code you give is
part of an ASP.NET web application?

Given that, what I think you're looking for is for the form (with the
dynamic values) to be submitted to the "www.whatever.com" server as an
HTTP POST request, and the results to be displayed to the user of your
application in his browser? I can think of another couple of
possibilities as well, so I just want to be absolutely sure of what
you want before answering.

Thanks,

cerebrate-ga

Clarification of Question by tonymast-ga on 08 Mar 2003 12:11 PST
I'm using VS .NET and VB .NET

The HTML code (and asp.net <% %>) was a copy and paste from paypal
credit card processing.
I have to hard code each product with the price item number etc.
I want to use a code behind event to create that code and post (send)
to them.
So I fill in the values, user clicks an "add to cart button" and the
info is sent to Paypal shopping cart.
On thier shopping cart there is a continue shopping button which
returns to the screen of products they (user) was on, they do that
part.

So, Instead of using thier cut and paste I want the user to click an
"add to cart" button raise an event and get in between the user
clicking "Add to cart" button and the actual post to paypal, so I can
manipulate some data. example. minus one from inventory file.
calculate total price with shipping and add that value and other data.
create the form HTTP code and send to paypal.
Hope I made it clear and thanks in advance.
tony
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy