I don't know if I've just been up WAY too long or what, but I am missing something really basic here......PLEASE HELP! I have a ton of experience with traditional ASP and am now trying to create some ASP.NET 1.1 code. Here is what I need help with: 1. I have
a page with form controls and Validation controls on it. 2. The Validation controls automatically validate the user's input and it is left up to me only to confirm validation by calling IsValid(). 3. The first thing I want to do is be able to redirect (or
transfer) to another page (.asp or .aspx or whatever) based on the results of the IsValid() call. I believe I have this working with the following code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Page.Validate() If Page.IsValid() Then Server.Transfer("someOtherPage.aspx") End If End Sub 4. The redirect page happens to be a credit card transaction processing page ho9sted at a payment gateway. So, before redirecting (or transfering) to the next page,
I need to perform some JScript processing (oh, my pages are written in VB) and then I also need to set some hidden form field variables. How do I do this without using an intermediate page? 5. Also, how do I access the values from page1.aspx form fields on
page2.aspx? Thanks in advance, Sean
I dont quite understand #4, but for #5, if you transfer (not redirecting) from page1.aspx to page2.aspx, you can access data in page1 from page2 this way:
Dim P1 As page1
Dim strString As String
strString = P1.SomeVariable 'provided that SomeVariable is declared as Public
shanko
Member
20 Points
4 Posts
Need help with form post processing
Aug 04, 2003 09:18 PM|LINK
daibatron
Participant
1090 Points
218 Posts
Re: Need help with form post processing
Aug 04, 2003 09:39 PM|LINK