0
votes
0answers
8 views
Simple approach to make visible a textbox when a preceeding dropdown/checkbox is clicked?
I am using MVC3, Razor, C#.
I have dropdown created from an HTML Razor Helper ie EditFor for tristate values.
I need to show a textbox if "Yes" is selected in the dropdown. I suspect this is best ...
0
votes
0answers
6 views
How to customise the dropdown values in the EditFor Helper for tristate types(nullable boolean) in Razor?
If I have a nullable boolean property, the VS MVC(3) scaffolding creates an EditFor Helper to enable editing for this property. Since it is tristate it is rendered as a tristate dropdown with "Not ...
0
votes
2answers
37 views
When to use RedirectToAction and where to use RedirectToRouteResult?
Question
In which context, I can use RedirectToAction and where to use RedirectToRouteResult ?
I have two Action Methods like below.
Approach - 1
public class ActionResultTypesController : ...
0
votes
0answers
11 views
ASP.NET MapRoute contraint for static urls
I have mapped urls in my ASP.NET application as below:
context.MapRoute(
"Product_v1_DataExchange",
"v1/xch",
new { controller = "Data", ...
0
votes
0answers
10 views
Getting “multiple instances of IEntityChangeTracker.” Error, Best way to handle context object to solve?
I have solved this error by passing through my initial context object to my action and this works. However it has raised a question.
Basically I have a ViewModel which makes use of the context object ...
0
votes
3answers
22 views
loginpage first in mvc3
I'm working with an MVC3 (razor) application. In the default sample program, how can a user get the login page first, then to allow registered users to enter into homepage?
I tried to create one ...
1
vote
1answer
15 views
where is aspnetdb.mdf in mvc3 default sample program?
In the default sample appication in mvc3, Where do the details we fill in registration form gets stored?
<configuration>
<connectionStrings>
<add name="ApplicationServices"
...
3
votes
2answers
46 views
Why is it that when I pass a Model to my .Net MVC 4 Controller Action it insists on using it in the Partial Update?
I am intending to pass a Hotel model to my Controller Action - Do some checks/processing on it, then return a potentially different Hotel model rendered in a Partial View.
The problem I'm getting is ...
1
vote
1answer
20 views
Some clarity on how to use View Models with MVC and ModelBinding please
I am getting confused about the use of ViewModels in an edit form where one of the properties is the editable entity ie
ViewModel
Entity
Actions
The model desclaration at the top of the View ...
1
vote
0answers
19 views
Using PagedList.Mvc for partial page
I have four different tabs in one page and data for each tab is rendered by an ajax call using partial page. Data for tab is loaded by ajax post.
ajax call:
$('#movieDatabase').click(function () {
...
1
vote
0answers
26 views
Textarea issue in IE7
I am trying to enter single character in a line, and pressing enter. An continuing doing the same.
After 334 characters , i am unable to enter any more characters .
This occurs only in IE7.
Cannot ...
1
vote
1answer
37 views
Persisting non-form Model data in ASP.NET MVC
I'm still relatively new to ASP.NET MVC 3, and I have a conceptual question for those of you with more experience here.
Lets say for (simple) example I have a signup form for an event. The form would ...
0
votes
0answers
24 views
TFS -Service reference
I'm trying to consume a service reference in an MVC 3 application that is on another computer.
My current solution is sat inside a TFS directory.
When I add the service reference to the project, ...
2
votes
2answers
51 views
Controller's actions in c#
I'm making a basic app in MVC.
I have a edit page. That page is feed by the object ID.
public ActionResult Edit(int id)
When you see this edit page, a "Save" button is in the bottom.
<input ...
3
votes
1answer
37 views
ASP.Net MVC JQuery is undefined in IE8 but ok in Chrome
I have a web application which works perfectly in Chrome, but in IE8, I get undefined errors for my script files:
The scripts are all loaded in the correct order (View -> Source):
I'm not sure where ...