Page 1 of 1

Redirect after add

Posted: Tue Feb 21, 2023 11:14 pm
by gmandelli

What to do you suggest in order to redirect on two different pages after add?

The idea is that if we got 'Added successfully' after user press Save then redirect to addOK page.

If the user press cancel then redirect to addKO.

Thanks.

Best regards,
John


Re: Redirect after add

Posted: Wed Feb 22, 2023 8:21 am
by MichaelG

The idea is that if we got 'Added successfully' after user press Save then redirect to addOK page

You can specify the return page for Add in Table -> Table Options -> Return Pages -> After add

If the user press cancel then redirect to addKO

You can use the Page_Load server event of the add page to override the return URL. For example:

ReturnUrl = "MyReturnUrl";