C# MVC Project Return Vars on a Page
Inside your Controller in this case it’s the Movies Controller.
The action Result below is Index so on other words the Home of the
Movies Controller.
In this action there’s two IF statements.
If you load this controller-> Index it will return this
pageIndex=1$sortBy=Name
public ActionResult Index(int? pageIndex, string sortBy){ if(!pageIndex.HasValue) pageIndex = 1; if (String.IsNullOrWhiteSpace(sortBy)) sortBy = "Name"; return Content(String.Format("pageIndex={0}$sortBy={1}", pageIndex, sortBy)); }
C# Return Methods
namespace Vidly.Controllers { public class MoviesController : Controller { public ActionResult Random() { Movie movie = new Movie() { Name = "Shrek!" }; // THE RETURN METHODS BELOW // return View(movie); // return Content("Hello World!"); // return HttpNotFound(); // return new EmptyResult(); // return RedirectToAction("Index","Home", new { page = 1, sortby = "name"}); } } }
Add input on change delay
Simply add this line to the javascript as is, for whichever page or block and it will set a delay on the input fields onchange. It will apply to all your input fields.
Outsystems default onchange delay is 800 which can be annoying when typing and it resets your cursor back to the start of your text. This will delay that jump on the text cursor.
osOnChangeTimerDelay = 3000;
© Garth Baker 2025 All rights reserved.