Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 27, 2012 02:09 AM by dragular
Member
118 Points
144 Posts
Mar 16, 2012 03:06 AM|LINK
Hi all,
I would like to know
How to use in butoon in MVC.
e.g
<td><%:Html.ActionLink("Renew", "RenewSubscription", "Subscription", new { SubscriptionID = Model.SubscriptionID },null)%></td
above link to change with button.
pls help me
Contributor
2356 Points
478 Posts
Mar 16, 2012 03:12 AM|LINK
See this http://weblogs.asp.net/dfindley/archive/2009/05/31/asp-net-mvc-multiple-buttons-in-the-same-form.aspx
Mar 16, 2012 03:39 AM|LINK
sorry can't not. :(
All-Star
21344 Points
1818 Posts
Microsoft
Mar 22, 2012 02:32 PM|LINK
dragular <td><%:Html.ActionLink("Renew", "RenewSubscription", "Subscription", new { SubscriptionID = Model.SubscriptionID },null)%></td above link to change with button.
Hi
What's your problem about this? This actionlink will redirect you to RenewSubscription action in Subscription controller.
You can get the overload method from here: http://msdn.microsoft.com/en-us/library/system.web.mvc.html.linkextensions.actionlink.aspx
Hope this helpful Regards Young Yang
Mar 27, 2012 02:09 AM|LINK
Thanks a lot for help me.
I can solve this problem.
<input type="button" value="Renew" onclick="location.href='<%: Url.Action("RenewSubscription", "Subscription",new { SubscriptionID = Model.SubscriptionID },null) %>'" />
dragular
Member
118 Points
144 Posts
button link
Mar 16, 2012 03:06 AM|LINK
Hi all,
I would like to know
How to use in butoon in MVC.
e.g
<td><%:Html.ActionLink("Renew", "RenewSubscription", "Subscription", new { SubscriptionID = Model.SubscriptionID },null)%></td
above link to change with button.
pls help me
dragular
Bimalvv
Contributor
2356 Points
478 Posts
Re: button link
Mar 16, 2012 03:12 AM|LINK
See this http://weblogs.asp.net/dfindley/archive/2009/05/31/asp-net-mvc-multiple-buttons-in-the-same-form.aspx
Bimal
dragular
Member
118 Points
144 Posts
Re: button link
Mar 16, 2012 03:39 AM|LINK
sorry can't not. :(
dragular
Young Yang -...
All-Star
21344 Points
1818 Posts
Microsoft
Re: button link
Mar 22, 2012 02:32 PM|LINK
Hi
What's your problem about this? This actionlink will redirect you to RenewSubscription action in Subscription controller.
You can get the overload method from here: http://msdn.microsoft.com/en-us/library/system.web.mvc.html.linkextensions.actionlink.aspx
Hope this helpful
Regards
Young Yang
Feedback to us
Develop and promote your apps in Windows Store
dragular
Member
118 Points
144 Posts
Re: button link
Mar 27, 2012 02:09 AM|LINK
Hi all,
Thanks a lot for help me.
I can solve this problem.
<input type="button" value="Renew" onclick="location.href='<%: Url.Action("RenewSubscription", "Subscription",new { SubscriptionID = Model.SubscriptionID },null) %>'" />
dragular