How to get Selected Value in dropdown Even page postback

Posted by Manorama under ASP.NET MVC on 8/5/2013 | Points: 10 | Views : 1430 | Status : [Member] | Replies : 3
I have One Dropdown ,Listbox and JQgrid In MVC. If i am selected dropdownlist ,depends on dropdown selection the grid and listbox will open.
Once I added new item or Edit in the grid the page is Refreshing .Once page refreshing i am getting starting value for dropdown only ,but i want which value selected that one only[i.e for dropdown] .My dropdown is HTML dropdown.

Please help me.

Thanks & Regards

Manorama

ManoRama


Responses

Posted by: Bandi on: 8/5/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer these links
http://stackoverflow.com/questions/9981871/how-to-postback-to-a-controller-function-when-a-value-is-selected-from-dropdown
http://stackoverflow.com/questions/14479548/how-to-get-selectedvalue-of-dropdownlist-without-postback-or-updatepanel

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Paringi45 on: 8/5/2013 [Member] Starter | Points: 25

Up
0
Down


Kitchens For Sale Oxford Try looking at www.kitchendesign1.co.uk. They have some amazing designs and prices.
Kitchens For Sale Oxford







Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhavanib on: 2/17/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Manorama,

Did you solved your posted issue? Becoz i also want to check the same scenario. Please can you help me out.
this is my view

<section class="section">
<h3>@Resource.Categories</h3>
@*<input type="hidden" name="selected_search_category" value="@Model.Filter.CourseCategoryId"/>*@
<select id="selCategories" class="form-control">

<option value="0">@Resource.All</option>
@foreach (var topic in @Model.Filter.Categories)
{
var detail = string.Format("{0}", topic.CourseCategoryName);
<option value='@topic.CourseCategoryId' @if (topic.CourseCategoryId == @Model.Filter.CourseCategoryId)
{
@Html.Raw("selected")
}>@detail</option>
}

</select>

</section>

Thanks
bhavani






Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response