CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Strange Behavior

Print topic Send  topic

Author Message
manuel

Posts: 48
Posted: 04/18/2011, 12:41 AM

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
damian

Posts: 838
Posted: 04/18/2011, 4:49 AM

when you click search it usually returns you to same page or a list page not normally to a particular search result.
is the code above for php?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
manuel

Posts: 48
Posted: 04/18/2011, 6:52 AM

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



Whit the same results....
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 04/28/2011, 1:02 PM

hi,

I´ve experience than changing some events like that one makes CCS goes weird,

maybe you can get what you expect following other way.

Quote manuel:
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



Whit the same results....

_________________
Best Regards
Entrepeneur | NT Consultant
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.