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. (Last updated on: November 16, 2018).
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?

You can pass the desired value to the controller by means of the “data 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.


Article ID: Published Date: Last Revised Date: Platform: Control:
3877 02/12/2015 02/12/2015 ASP.NET MVC General
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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