CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Strange Behavior

Print topic Send  topic

Author Message
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.
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.