views:

440

answers:

1

hi everyone,

I am trying to use form collection and this is what i am using to submit the form

 <%=Html.ActionLink("Update", "Calendar", ViewData["sub"], new { onclick =  "this.form.submit();" })%>

just for the heck of it i tried replacing it with a dropdownlist that retains its value and all of a sudden i get all my form collection

 <%=Html.DropDownList("dllMonth", new SelectList(new List<string>() { "January", 
    "Feburary", "March", "April", "June", "July", "August", "September", "October", "November", "December"}, ViewData["Month"]), new { onchange = "this.form.submit();" })%>

can somwone please explain whats going on

A: 

I changed my actionslink to this and now all is working fine

<a name="update" href="Calendar" onclick="this.form.submit();" type="submit">Update</a>
devforall
so mark your answer as accepted!
darasd