Tagged Questions
0
votes
1answer
29 views
Selected Value not being set in a Dropdown List from a SelectList
Dropdown lists in MVC...basically the bane of my existence...
I've seen numerous topics on this exact issue, but everything I've found on here and around the Internet haven't solved my issue.
A bit ...
-2
votes
1answer
364 views
Creating a Tuple<List<Model>, Model> to pass as a model to Html.Partial
I am a beginner at using MVC3 with the razor syntax. I want to know how can I write for @html.partial.
In ProductVarient.cshtml, I will call the partial view as follows:
@{
var ...
2
votes
1answer
64 views
What happens in BeginProcessRequest()?
We are using NewRelic to provide server-side application traces.
We have noticed that some of our applications consistently spend about 100ms in the method ...
2
votes
4answers
28 views
Posted data contains only null values in asp.net mvc 4
the problem is whenever i try to save the data using the view. I always get null data. Please help. My codes for controller, models and view are as follows. Thanks.
public class OverallData
{
...
6
votes
3answers
4k views
System.Drawing does not exist?
I'm trying to create a validation image using class library in asp.net, but that is not the question.
Anyway, my question is... well... system.drawing does not exist so I cant use "bitmap".
From ...
2
votes
1answer
34 views
The call is ambiguous between two methods or properties
I use mvc3/razor,This code is for integrating openID.
When I run the program it is working fine,But When i see the code, red lines gives this popuperror.
The call is ambiguous between two methods or ...
0
votes
0answers
38 views
Redirecting from one value to another using action link
When I click on the column values in a table, it should redirect me to another table which has a common id, but a different view.
@foreach (var item in Model.Vendor)
{
<tr>
...
1
vote
2answers
1k views
Preventing a deadlock when calling an async method without using await
I need to call a method returning a Task from within
public override void OnActionExecuting(ActionExecutingContext filterContext)
It wont let me make this method async it throws the following
...
2
votes
2answers
82 views
Html.dropdownlist does not display the default/selected value in the dropdown field
I have a table with various rows and each row corresponds to an ID. For every row, I have EDIT option which when selected should enable the user to look at the default values corresponding to that ID ...
5
votes
1answer
3k views
Asp.net MVC 3 Conditional validation with DataAnnotations
I are using Asp.net MVC 3, facing validation problem with dataannotations as below
We have maintained model in seprate library project, model class hierarchy is like Below
public class ...
1
vote
3answers
1k views
ASPX VS CSHTML to do grid processing
I need to write a web page which I need to interact with Grid entry/edit.
I choose ASP.Net MVC and LINQ TO Entity Framework.
What my problem is I have two option to choose at View Layer.
ASPX
Razor ...
1
vote
0answers
48 views
How to change the display name for a property in the controller?
I'm working with ASP.NET MVC4.
I am looking to change the display name of a property based on some other value retrieved from a database, so that when I call @Html.LabelFor() in my view, the correct ...
1
vote
2answers
21 views
ViewBag property changed to object type
In my controller i put model object to viewbag as shown in the below:
ViewBag.fileModel = new ViewFileModel(id)
public class ViewFileModel
{
public Employee Employee { get; set; }
...
1
vote
1answer
33 views
Radio Button Group in ASP.NET MVC3
I am having a field of Boolean in Model named Child_With_Bed .
Now, I want radio button group in which yes = true and no = false. So when I select it Child_With_Bed's value is set.
I tried below ...
0
votes
2answers
50 views
MVC3 asp.net error: Value cannot be null. Parameter name: items on dropdownlist
I am getting a dump ONLY in the server and not in my local system when trying to post the data. There is a page which submits some value to the database. I have also modeled the dropdown in the page ...