The ASP.NET MVC Framework is a Microsoft web application framework that implements the model-view-controller (MVC) pattern. The latest release of the framework offers REST-style web services development capability, also known as Web API.
1
vote
0answers
5 views
How to read child page viewbag varible in parent master page
I have stumbled upon this situation where I set a viewbag variable inside a MVC controller, but can't read it inside the master page, the viewbag variable shows always null in the masterpage.
I ...
0
votes
0answers
14 views
Call an Action Method inside a MVC Section: “Section not defined”
In the _Layout.cshtml there is a @RenderSection("MySection",required: true)
in the Index.cshtml the call was just passing the Object model with an @Html.Partial
ie.
@section MySection
{
...
0
votes
1answer
13 views
asp.net mvc html helpers using property name
I'm trying to use a list of string model property names to make a form. When using scaffolding code like this is generated:
@Html.HiddenFor(model => model.modelRecId)
I thought that using ...
0
votes
0answers
13 views
MVC 4 CheckBoxListFor text with a parameter
Hi I was wondering if is possible to add an parameter to the text of the CheckBoxListFor? I have this:
@Html.CheckBoxListFor(model => model.CondPosted.IdCond,
model => ...
0
votes
0answers
3 views
Custom validation with Ajax.BeginForm and jquery.validate?
I've created a partial view that uses Ajax.BeginForm and jquery.validate to create a form with validation. At the moment it all works perfectly however I'd like to customise the validation further but ...
-3
votes
0answers
37 views
Hide or display links on view depending on mouse click
So on my MVC application I want to display a link in the view, which when clicked allows a set of links to appear on screen through the following code:
<ul class="productmenu">
@foreach ...
-2
votes
2answers
33 views
How can we let our web designers code complex web apps without a server side language?
In my web development company, we have many designers who have the following dev knowledge and experience:
Client-side web languages (HTML, CSS, JavaScript)
Basic database design (how to create ...
0
votes
1answer
10 views
Setting Response.StatusCode using MvcContrib.TestHelpher
I've got a very simple test method, using MvcContrib.TestBuilder to setup the controller (and mock the HttpContext etc...)
[Test]
public void http404_returns_status_code_of_404()
{
...
0
votes
0answers
6 views
What is a good way to compose plugin classes that aren't imported by the class performing composition?
I have an ASP.NET MVC application which uses MEF to implement a plugin framework. Plugins are separate DLLs that exist in the application's bin directory. Plugins usually export one or more ...
-3
votes
1answer
12 views
kendo grid does not load data when it's published on IIS
I'm filling a kendo grid from a web service, when using IIS Express no problem, but when it is published in IIS does not load data, Can anyone help me?
-1
votes
0answers
11 views
JQuery Validation Chrome Autofill In Textbox Not Detected?
I have a standard login form, that uses Jquery validate
$(".form-login").validate();
However, if a user uses Chrome autofill to fill in the fields and hits submit. The form won't submit and the ...
0
votes
0answers
14 views
getJSON dosen't work on IE during typing special characters
I am using $.getJSON to autocomplete control and everything is fine for chrome browser.
On IE, only plain text (without special characters like 'ż','ł' etc.) work fine.
Probbably it is cause by ...
0
votes
2answers
30 views
LINQ to Entities does not recognize the method. Guid causing trouble?
In my model class OwnedModule i have OwnerID as Guid.
There is another model class called BusinessUnit which contains the same Guid value from OwnedModule and its OwnerName.
I want to show the ...
-1
votes
0answers
31 views
Why one need to switch to MVC instead of working with WebForm
i am new in mvc and learning now. i have worked with webform for long time. these days huge hype about asp.net mvc in market. so i like to go with market for stability in job. so i have gone through ...
0
votes
4answers
53 views
When should an Action reside in the Default Controller
From a design standpoint, if I want my site to have two URLs like the following -
www.mysite.com
and
www.mysite.com/Stuff
If my Default controller is HomeController, when should the "Stuff" action ...