Quantcast
Channel: ASP.net MVC Awesome - jQuery Ajax helpers
Viewing all articles
Browse latest Browse all 345

New Post: Passing Dropdown value as parameter in Create Button

$
0
0
I have dropdownlist as like below.
@Html.Awe().AjaxDropdown("BatchProg").Parent("ProgramIns","progSeq")

Then I have a create button as like below.

<button type="button" onclick="@Url.Awe().PopupFormAction().Url(Url.Action("Create")).Success("refreshGrid")" class="awe-btn">Create</button>

I want to pass selected dropdown value as a parameter in create button . How do I do that.
Ex
<button type="button" onclick="@Url.Awe().PopupFormAction().Url(Url.Action("Create",new {batchseq=1})).Success("refreshGrid")" class="awe-btn">Create</button>

Viewing all articles
Browse latest Browse all 345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>