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
|