Model–View–Controller (MVC) is an architectural pattern used in software engineering. Use the more specific [asp.net-mvc] tag (ASP.NET MVC) instead, if applicable.

learn more… | top users | synonyms (1) | mvc jobs

0
votes
1answer
12 views

OnBeforeUnload should not run for some links and buttons

I am using the following JS for confirmation before leaving a page in an MVC application. window.onbeforeunload = function() { return 'Any Unsaved data will be lost !!'; } This works fine, ...
1
vote
1answer
13 views

Spring MVC and JUnit: Failed to load ApplicationContext

In order to test my DAO and automatically autowire my objects, I created the following test class in JUnit: @RunWith( SpringJUnit4ClassRunner.class ) ...
2
votes
0answers
9 views

How can Add error message in ModelState on MVC using Javascript?

This is my Model property public ModelStateDictionary modelSateClientSide { get; set; } Now I called the Property In JavaScript and add the error in my modelstate ...
0
votes
0answers
4 views

.NET MVC: Having a physical folder with the same route as a controller

I have a controller/view for URL: http://mydomain/SomeFolder/ I would also like to create the physical folder to put files in it http://mydomain/SomeFolder/ When someone goes to URL ...
0
votes
5answers
33 views

How do you generate web pages based on a form?

For example, the website https://talky.io/ has a form on its homepage. When you enter text into the form and hit the button, you're taken to a page that's https://talky.io/[your text]. How do you do ...
0
votes
1answer
22 views

Set Label for checkbox in razor

How to set label to the checkbox, I looked at some sites they r using lambda expressions, but I cant understand, I am new to mvc @{ bool chkVal = false; } ...
0
votes
0answers
7 views

Binding Complex object

I'm using MVC 4 with Telerik controls. I could bind sample objects to my model but I'm having trouble binding complex object with hierarchical child objects in it. I've tried serializing form to ...
0
votes
0answers
5 views

Use DataContext to return dynamic data for jqGrid

I'm trying to create a way to output dynamic results in JsonResult format so that it will work with jqGrid. In my case, I have a simple sql statement in a string: string columns = "userid, username, ...
0
votes
1answer
17 views

MVC Razor form closes immediately after opening?

I have a table that displays some data as well as an "Edit" button, and when the button is clicked the row is replaced with a Partial View that contains a row with input controls for changing the data ...
0
votes
0answers
21 views

Mvc post view result

HI im sitting here trying to make my first MVC application and im stuck the application is a rss reader i have made some checkboxes where you can pick diffrents sources off rss feeds and then click a ...
-1
votes
1answer
36 views

changing href=“example” to href=“/example” [on hold]

I have a model, which returns html from the database, and I need to change href="example" to href="/example" as the first one is getting added on to my url
2
votes
1answer
21 views

System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type)

As best as I can tell, this error has occurred in the past when Ninject is and the target for the site package are 4.x and do not match each other. I have checked on my machine and they match - both ...
0
votes
0answers
28 views

Linq statement to select rows from db and display as list in MVC view

I need to select all rows from a table with a status as closed, and then I need to display results in a list in a asp.net mvc view. What should I place in the cshtml first line? @model ...
-4
votes
2answers
39 views

How to pass the string from controller's UITextField to model [on hold]

IBOutlet UILabel *display; IBOutlet UITextField *textfield; and, I have this button to update the text from textfield to label -(IBAction)updateLabel:(id)sender { display.text=textfield.text; } ...
0
votes
0answers
6 views

Displaying json data in a select with optgroups

I tried to dynamically created dropdownlist with opt groups. Here's my Json, not sure what I did wrong with the jquery? My dropdownlist is not displaying anything but blanks? I need the dropdownlist ...

1 2 3 4 5 842
15 30 50 per page