formcollection Questions
7
Is it possible to convert formcollection to a 'model' known?
[HttpPost]
public ActionResult Settings(FormCollection fc)
{
var model=(Student)fc; // Error: Can't convert type 'FormCollection' to...
Fistic asked 7/9, 2016 at 8:22
3
Solved
I have a form which contains a whole bunch of checkboxes and some other types of control too. I need to retrieve the names of each selected checkbox.
What is the best way to do this? Can I do it w...
Pippas asked 30/9, 2010 at 14:33
2
Solved
I am getting the following error An unhandled exception occurred while processing the request. InvalidOperationException: The 'Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormCollectionModelBinde...
Preengage asked 6/9, 2017 at 8:43
4
Solved
anybody knows how to transform the FormCollection into a IDictionary or how to get a IDictionary in the post action ?
Escutcheon asked 4/5, 2010 at 11:29
2
Solved
I am receiving some data in mvc controller as FormCollection. I would like to check if there is a particular key exists in the formcollection.
public JsonResult FullRetailerUpdate(FormCollection ...
Scintillator asked 4/12, 2014 at 7:29
2
Solved
I've tried the usual way of:
var form = new FormCollection { "WeekList" = weekfilter, "PracticeList" = practicefilter}
and all possible deviations I could think of, but ultimately had to seperat...
Vulgar asked 18/3, 2014 at 18:11
1
Solved
When I am using this code as web view, it works fine, but when with developer option in Chrome I select Mobile View, FormCollection shows empty strings in the controller
VIEW (Edit updtaed)
<d...
Cassock asked 3/10, 2016 at 13:43
2
Solved
What happened to FormCollections from System.Web.Mvc? In the past I would use something like this string value = data.GetValues(key).FirstOrDefault(); where data is a formcollection. Now when I try...
Scales asked 16/10, 2015 at 19:56
2
Solved
I am building a jQuery plugin to manage form collections. The plugin aims to add add, remove, move up and move down buttons to alter that collection.
A collection's root node always contains a s...
Chatelaine asked 28/2, 2015 at 17:24
2
Solved
My view has a Select with elements(options) from my ViewModel.
@using (Html.BeginForm("NewUser", "Admin"))
{
<select multiple="" id="inputRole" class="form-control" size="6" name="inputRole"...
Nostradamus asked 23/1, 2014 at 8:43
4
I have a form with two submit buttons in my asp.net mvc (C#) application. When i click any submit button in Google Chrome, by default the value of submit button is the first submit button's value.
...
Salonika asked 11/3, 2010 at 6:32
1
Solved
I am doing an Asp.Net MVC 4 project and am looking to an internal request (like a proxy) to our api service.
This is what the index method looks like in my controller. I'm stuck at the PostAsync p...
Untutored asked 23/10, 2012 at 18:31
2
Solved
Given multiple HTML checkboxes:
<input type="checkbox" name="catIDs" value="1" />
<input type="checkbox" name="catIDs" value="2" />
...
<input type="checkbox" name="catIDs" value="1...
Martial asked 11/4, 2010 at 16:34
1
Solved
This is My View:
@foreach(var action in Model.Category.Actions) {
<div class="action" style="margin-right: 30px;">
<input type="checkbox" class="chk-act" id="@action.Id" name="actionChk"...
Catricecatrina asked 28/3, 2012 at 12:1
2
Solved
I am currently developing an application with the new ASP.NET MVC2 framework. Originally I started writing this application in the ASP.NET MVC1 and I'm basically just updating it to MVC2.
My probl...
Antifederalist asked 28/1, 2010 at 15:59
3
Solved
My scenario is this: I have two listbox's, one that contains all my database items, and an empty one. The user adds the items needed from the full listbox to the empty listbox.
I'm using a form to...
Stonefly asked 4/3, 2010 at 22:9
1
Solved
I was previously using How can a formcollection be enumerated in ASP.NET MVC? 's implementation but now I'm on VS2010 and MVC2 its complaining:
Error 1 Cannot implicitly convert type 'System.Web...
Tufted asked 16/6, 2010 at 10:35
1
Solved
i have a javascript object, obj, that gets passed to an mvc action via a $.post() like so:
var obj = {
Items: [{ Text: "", Value: { Property1: "", Property2: "" },
{ Text: "", Value: { Property1...
Ransell asked 16/5, 2010 at 20:18
1
Solved
i am posting a simple action.
public void Login(FormCollection formCollection)
{
...
}
Even with few querystring values, the formcollection.Count is 0. Is it by behaviour?
Uvular asked 15/2, 2010 at 10:15
2
Solved
I have a controller with the codes like this:
[AcceptVerbs("POST")]
public ActionResult Create(FormCollection collection)
{
//why is that the collection is null?
}
I am calling this action usin...
Nagano asked 11/10, 2009 at 8:58
4
Solved
I am interested to know what you guys feel should be deemed "correct behaviour" in terms of the UpdateModel method in ASP.NET MVC.
The reason I ask here is perhaps if this functionality is "by des...
Dremadremann asked 7/8, 2009 at 3:35
1
© 2022 - 2024 — McMap. All rights reserved.