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.
|
 |
 |
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.... :)
|
 |
 |
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....
|
 |
 |
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
|
 |
 |
|