if i have created a view model and have a partial form that is a create form for the view model. but now i want to take in a list model to my form and be able to loop through each item and depending on one of the properties append a string to teh end of the Name and id fields. or alternatively give each of the items in the list a unique ...
I have installed Visual Studio 2010 (final) and then Visual Studio 2008. Now I have to open a project with VS2008 that uses MVC2. Is there any problem to install MVC2 after VS2010?
...
I created an ASP.NET MVC 2.0 Application. It ran fine at first test and I made some minor edits to the views. I then wanted to add a new controller so I had to compile the app. After I did anytime I run it I get the following error:
Parser Error Message: The type 'System.Web.Mvc.ViewMasterPage' is ambiguous: it could come from assemb...
Hello,
I've built an mvc application which contains some jquery code. When I run the app from my ide, everything works perfectly. When I publish to the server and open the page, the jquery does not work. I get object expected errors.
Could this be due to my file mappings? here is a sample of my mapping in the app -
<script type="t...
I'm working on application for tracking vehicles. There will be about 10k or more vehicles. Each will be sending ~250bytes in each minute. Data contains gps location and everything from CAN Bus (every data that we can read from vehicle computer and dashboard). Data are sent by GSM/GPRS (using UDP protocol). Estimated rows with this data ...
I am trying to click on an image and change it to another image through jquery.
When i step through the below code, on the serverside, the controller action fires and on the client side, i can see the correct html return in firebug watch window but the image doesn't change at all. any idea why this div is not updating?
original div:
...
I am new to jQuery, but I would like to have a button that when clicked will add more textboxes to a page. I have three textboxes that contain data of the same type and if the user has more data of the same type to enter, I would like to pop up three more textboxes.
What would be the best way to go about that?
...
I am fairly new to MVC but not sure exactly which Redirect... replaces the standard redirect used in WebForms ie the standard Response.Redirect()
For instance, I need to redirect to other pages in a couple of scenarios:
1) WHen the user logs out (Forms signout in Action) I want to redirect to a login page.
2) In a Controller or base C...
Hi
I want to display the ImageLink on my ASP.NET MVC Page.
HTML.ImageLink is not showing up.
Did i miss any libraries?
Appreciate your response.
Thanks
...
Hi,
in the old days, with asp.net, when i would navigate to a non existing page, the .net framework (or iis?) would throw a 404 and i could attach a default page to that error in the web.config in the custom errors section.
but in the asp.net mvc that doesn't seem to work? Does the mvc framework throws some kind of invalid route excpet...
when overriding OnActionExecuting, how do I return a Json result without passing to action?
...
I am returning an IList to my model of data about users. I want my end users to be able
to select which columns they want to see.
I know I can do this with a huge "if statement" however, I know there must be a better way.
I have created an Enum with the column names. I feel if I could take the IListItem.EnumName I would be set. Howev...
With Validation Application block, there's the following functionality:
Creating Custom attributes
Creating SelfValidation on the type
Ability to read from external config file
I plan to use the DataAnnotations to replace the Validation application block. Are the above possible with DataAnnotations? If so, how'd I implement them?
An...
Before migrating from ASP.NET WebForms I had a very good way to monitor all my application errors in the Events Log (Administrative Tools).
But now after moving to asp.net MVC, all I get is the same mistake occurring every minute (something about Site Master). I know it's not right, because there are other mistakes, but they are not dis...
Hello,
I have been using xVal with success for a while but this evening ran into an issue where a field containing a period would not be validated (client or server-side). I am using ASP.NET MVC2 and need to use the period syntax in cases where I am model binding to a list. In the below example I am using a textbox for the sake of simpl...
hello,
I am new to asp.net
Can you please guide me what is session and session variables ? Please I don't need a comparision of asp session and asp.net session because I don't know anything about asp.
I have saw many articles on types of session as well. But still I can't understand correctly what is session and what are session vari...
Hi folks,
If i have a request for a resource in my ASP.NET MVC1 (or 2) web app for a static resource, say ... an image or a javascript file or a css file ... does the .NET framework try and see if the request matches the route list ... and eventually can't find a controller for it?
eg.
Resource: /Content/Images/Foo.png
Does this requ...
Hello,
i am devloping a site using .net MVC
i have a data access layer which basically consists of static list objects that are created from data within my database.
The method that rebuilds this data first clears all the list objects. Once they are empty it then add the data. Here is an example of one of the lists im using. its a met...
Hi, I've added the reference to System.Runtime.Serialization dll to my project but still can't find the System.Runtime.Serialization.Json namespace and hence can't find the DataContractJsonSerializer class. What am I missing here?
...
how to export asp.net mvc view data to an excel file ?
Actually my view page contain many viewdata types.
i am using for each loop with these datatype to displaying data on the view page.
my requirement is that i want to export this displayed data into excel file.how to do that?
thanks
...