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.
Unfortunately, activation email could not send to your email. Please try again.

Link to Button

Thread ID:

Created:

Updated:

Platform:

Replies:

128636 Feb 2,2017 02:09 AM Feb 6,2017 09:47 AM ASP.NET Core 3
loading
Tags: Button
Vengatramanan
Asked On February 2, 2017 02:09 AM

How do i add a link to the button to redirect from one action to other

Deepa Loganathan [Syncfusion]
Replied On February 3, 2017 01:35 PM

Hi Vengatramanan,  
Thanks for contacting Syncfusion support.  
You could redirect from one action to another by using the button click event as give below. 
 
<ej-button id="btn_rel='nofollow' href" text="Click to redirect" click="redirect" /> 
 
<script> 
    function redirect() { 
        // Redirect to action  
        window.location.rel='nofollow' href = '@Url.Action("processForm")' ; 
    } 
</script> 
 

Please get back us if you need any further assistance.  
Regards,  
Deepa L. 


Vengatramanan
Replied On February 4, 2017 04:42 AM

Hi Vengatramanan,  
Thanks for contacting Syncfusion support.  
You could redirect from one action to another by using the button click event as give below. 
 
<ej-button id="btn_rel='nofollow' href" text="Click to redirect" click="redirect" /> 
 
<script> 
    function redirect() { 
        // Redirect to action  
        window.location.rel='nofollow' href = '@Url.Action("processForm")' ; 
    } 
</script> 
 

Please get back us if you need any further assistance.  
Regards,  
Deepa L. 


But will it work without calling the method like this.
 

<ej-button id="btn_rel='nofollow' href" text="Click to redirect" click="window.location.rel='nofollow' href = '@Url.Action("processForm")' " /> 

Thanks,
Vengat

Francis Paul Antony Raj [Syncfusion]
Replied On February 6, 2017 09:47 AM

Hi Vengatramanan, 
 
In our ASP.NET Core Tag Helper, we have not provided the support to define the events at Tag Helper inline. So, please achieve your requirement by defining a function for EJ events at client-side script section as mentioned in our previous code example. 
 
Regards, 
Francis Paul A. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;