We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to pass data to the controller while calling transfer page API in ejm?

Platform: ASP.NET MVC |
Control: General
Tags: general, mobile

Pass data to controller by calling transfer page API

You can pass the desired value to the controller by means of thedata” attribute available in the transferPage API.

You can refer the following code examples where a string value is passed with the “text” attribute. This value gets passed on to the controller once the action calls for that particular page.



    //Click action of some element

    function select(e) {

        App.transferPage(App.activePage, "Home/" + e.text.toLowerCase(),

            { data: { text: e.text} });



While the action gets called, you have to get the string value with the same name that you defined it with, in the transferPage API. Here, in client-side, it is sent with the “text” attribute. Refer to the following code examples where the value catches with the string type variable “text”.


//Helper public ActionResult Item1(string text)
     ViewBag.text = text;
     return View();


2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile