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 -> .NET

 Redirect URL based on field entry

Print topic Send  topic

Author Message
avj

Posts: 1
Posted: 06/17/2006, 12:51 PM

I've entered the code suggested in a previous topic when redirecting based on a field value:
FYI - Here is a method of directing a user to a different page depending on the value selected in a listbox. (VB.NET)

* Add your record form as normal that contain the listbox you would like to use. Set up you listbox with any values you want.

* Add a After Insert Event to the Record form that contains code simular to the following:

'Record L_FSE_Removal_Requests_tb Event AfterInsert. Action Custom Code @78-73254650


If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Lost" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("Thank_you_C.aspx", "")
Else If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Never Received" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("Thank_you_C.aspx", "")
Else If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Still Working" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("RR_C_5B.aspx", "")
Else If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Sent Back" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("RR_C_6.aspx", "")
End If

'End Record L_FSE_Removal_Requests_tb Event AfterInsert. Action Custom Code

However, when using this code when inserting a record, I need to also include a parameter so the desired page only displays the wanted records. The parameter is a field in the record grid, I've tried several methods of attaching the url parameter, but all are providing errors. Could anyone point me in the right direction...

Thanks.
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.