manuel
Posts: 48
|
Posted: 04/18/2011, 7:48 AM |
|
Scope: a form with only one textbox, that will populate a variable (student), and redirects to a page (this page is on an external server - I dont have any control over it).
For this I used a Search form (POST) and this is what happends:
When you click the Search button on a form, it will redirects you to a page:
http://mypage/student_code?student=4371&sede=central
This is my onclickcode:
Dim student
student1= StudentDetail.studentcode.Value
Redirect = "http://mypage/student_code?student="&student1&"&sede=central"
This is the strange part, I click the search button, I got redirected to the page, but noting happens, BUT if I Refresh the page (while in http://mypage/student_code?student=4371&sede=central) THEN it works...
or, if I click the Address bar, and press ENTER, then it works too...
Any clue? Tested in several PC, Explorer and Firefox.
|
|
|
manuel
Posts: 48
|
Posted: 04/18/2011, 7:49 AM |
|
Second approach:
I changed the Button_DoSearch_OnClick(Sender) code, to the one I show you before, so that when the search button is clicked, it sends you to that page.
I even tried changing the Button_DoSearch code:
Redirect = FileName & ""
If Validate() Then
If PressedButton = "Button_DoSearch" Then
If NOT Button_DoSearch.OnClick() Then
Redirect = ""
Else
' Redirect =
"http://mypage/student_code?" & CCGetQueryString("Form", Array(PressedButton, "ccsForm")) & "&sede=central"
End If
End If
Else
Redirect = ""
End If
|
|
|
|