asp.net-mvc

ASP.NET MVC - PartialView not refreshing

Hello Everyone, I have a view that uses a javascript callback to reload a partial view. For whatever reason the contents of the partial class do not refresh even though i can step through the entire process and see the page being recalled and populated. Any reason why the page would not display? Code is as follows: <div id="big_image...

Adding a view - View data class missing (Asp.net mvc)

When I'm going to create a view and go <methodInController> - right click, add view and get the dialog showing me the options, I WAS getting my viewmodels in there but now those are missing and I'm getting a bunch of this junk ... <PrivateImplementationDetails>+$$struct0x600018b-142 I am using resharper, but I'm not sure if that has a...

ASP.NET MVC web hosting that has payment option of paypal?

I already check some of asp.net mvc hosting sites listed here: http://stackoverflow.com/questions/637567/affordable-stable-asp-net-mvc-hosting-exist I worry entering credit card number, all of them required credit card number. Do you know which ASP.NET MVC web hosting that has paypal payment option? ...

JavaScript for child items in menu in telerik MVC controls

i know i can use .ClientEvents for the parent items in menu to call javascript funtions. is there a way i can call javascript functions from my child menu items? Thanks ...

Where should my "filtering" logic reside with Linq-2-SQL and ASP.NET-MVC in View or Controller?

I have a main Table, with several "child" tables. TableA and TableAChild1 and TableAChild2. I have a view which shows the information in TableA, and then has two columns of all items in TableAChild1 and TableAChild2 respectivly, they are rendered with Partial views. Both child tables have a bit field for VisibleToAll, and depending on ...

ASP.NET MVC loading of CSS based off of controller

Within my site I have controller specific CSS files in addition to my master css file. For example CSS/ Prodcuts/ product.css ... Blog/ blog.css ... masterStyle.css Where masterStyle.css is the master css file. What I want to do is when the user hits http://www.example.com/Products...

ASP.NET MVC and ASP.NET membership template provider

In a standard ASP.NET MVC template application that is created by default in Visual Studio when starting a new ASP.NET MVC application there is already a built-in membership / authentication / authorization system. Using web search one can find lots of info about how to work with a built-in ASP.NET membership system, but very often this...

when to clear or make null asp.net mvc models?

I am working in an asp .net mvc application. I am using the model and storing some of the values which i need to preserve between the page posts, in the form of datacontexts. Say my model looks something like this: public SelectedUser SelectedUserDetails { //get and set has //this.datacontext.data.SelectedUser = ..... //r...

ASP.NET MVC as a service host for SOA like architecture

I'm creating a distributed application that includes a lot of services and I'm looking for the technology that allows me to create and manage a lot of services easily. I know managing and deploying windows services is not fun. I'm thinking of using ASP.NET MVC as service host of my services where each controller action becomes essentia...

Providing localized error messages for non-attributed model validation in ASP.Net MVC 2?

I'm using the DataAnnotations attributes along with ASP.Net MVC 2 to provide model validation for my ViewModels: public class ExamplePersonViewModel { [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(Resources.Validation))] [StringLength(128, ErrorMessageResourceName = "StringLength", ErrorMessa...

How to replace all id attributes of a child collection of complex types using jQuery in ASP.net MVC

Here's my situation: I'm writing an ASP.net MVC 1 website and I have a create/edit form that uses the default model binding to parse the form into a strongly typed complex object. The object I'm posting has a child collection of another complex type and the way I format my id's for the model binder is as follows: <div class="childCont...

NHibernate paging for Telerik Extensions for ASP.NET MVC

How can I integrate Telerik Grid paging for ASP.NET MVC (http://demos.telerik.com/aspnet-mvc/Grid) with my NHibernate data access with minimal coding? ...

form submits in FireFox when any button on page is clicked

First time using Asp.net-mvc and originally followed the NerdDinner tutorial. My form submit button looks like this: <p> <input type="submit" value="Save" /> </p> I've now added another button to the page with jQuery code attached. It works in IE, but when I test in FireFox the form submits. I tried adding...

How do you get AnonymousID from cookie ASPXANONYMOUS?

If I have a look at my cookievalue .ASPXANONYMOUS it is a string ie WZnX-rXHygEkAAAAOTFhZjE5YTctZmEzZi00MTMwLWEwNTAtYjYwMzI0N2M0NTY4gQUsRlThiJWAjBgmBnpeIba7eGo1 The value Request.AnonymousID is a Guid. How do you get from ASPXANONYMOUS to AnonymousID ? I need this to debug some issues I have with FormsAuthentication. ...

Facebook canvas app ASP.NET MVC HttpException: Invalid Model

I am working on a Facebook tab application. I am using asp.net MVC 2 with the "official" Microsoft Facebook SDK. Most of my views are working just fine. However, I have one that is causing a huge mess. I am simply returning a List<Tags> to the view and as my ViewModel. This problematic view is simply displaying the list in a foreach l...

Simulating remote environment?

I'm building a .NET MVC application which will be deployed on a Windows 2003 server. The server has a folder @ c:\Website\Files which needs to be written to from the application. How do I cope with this in my development environment so that the MSI setup file, which I will compile, will work correctly when deployed? p.s. the folder is ...

Are there any ASP.NET MVC Real Time View Editors?

I'm looking for a tool and I'm not even sure of the proper name. Please be patient with me as I explain. I'm doing a lot of HTML/MVC 2 work. Using the standard MVC 2 view engine, I would like to have an editor that shows real time changes in the browser. If I re-arrange div elements containing standard HTML and some server side compo...

Saving state between actions.

Hi all! I'd like to ask for a solution. For example we have a page. And I have a link to a another action from this page. I want to have an ability to save the values of entered data on the page. For instance I go to another page enter data and go back. Like the wizard. But the problem is that we can come to the action from different pag...

Can ASP.NET MVC be hosted on godaddy's economy hosting?

I want to host an asp.net mvc website on godaddy, is economy hosting sufficient? Economy hosting's database is MySQL. Can this be converted to mssql(or perhaps postgresql)? ...

render Url.Action in model

how can i do such thing in model or controller? <%= Url.Action("Home"); %> ...