Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I have a view(Home) with 2 partial pages in it.
 
1st (partial page) has data and the other 2nd (partial page) is a cart.
Both are on the same page. For the selection I make in one page by clicking a "select" button I send the selected items into the cart(partial page). the cart (partial page) and a confirm and cancel button.now I need to disable the submit button in the cart page before its loaded. once its loaded with items then the submit button should be active. as the submit button leads to billing information(another view).
 
I have given the button this way. Using MVC3,Jquery,JavaScript
 <a type="button" href="@Url.Action("Index", "Billing")">Submit </a>
<a type="button" href="@Url.Action("Index", "Home")">Cancel</a>
Posted 24-Oct-12 5:00am
Edited 24-Oct-12 6:05am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can use ActionLink as
<%: Html.ActionLink("Submit", "Index", "Billing", new {}, new {@disabled = "disabled"}; %>
  Permalink  
v3
Comments
Member 9359591 at 24-Oct-12 13:01pm
   
Hi ajay, thank you for your response. but its not working. first thing its a button, actionlink is making it like a link. next is its not getting disabled

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 30 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100