I am using MVC preview 2 framework to develop web sites and I am following MVCStorefront tutorials to get a good feel on MVC.
Can you tell me why I can't use RenderView() method ?
Am I missing something or can I use View() instead ?
What's the difference between these methods..
Thanks
Here is where Rob is using RenderView in his tuto...
I'm working on my first ASP.NET MVC app, and I'm running into a little confusion about creating/updating certain data.
I have a database table User, a LinqToSql-generated partial class User, and my own custom partial class User.
I'm using [Bind(Exclude = "Id, InsertDateTime, UpdateDateTime")] on my version of User because I don't want ...
Does anyone know of an open source implementation of an ASP.NET ProfileProvider that stores user profile information in the file system?
I would prefer to avoid writing my own if a decent implementation already exists - while the API doesn't look to complicated, I'd rather not re-invent the wheel (so to speak).
Hopefully this doesn't m...
Hi there,
trying to work my way through Steve Sandersons MVC book - but have hit a brick wall when creating the WindsorControllerFactory. It looks as though the method has changed from MVC1 to MVC2. This is the error I'm getting when trying to compile the project:
'WebUI.WindsorControllerFactory.GetControllerInstance(System.Type: no su...
Hi!
I've implemented some basic, custom membership provider for my ASP.NET MVC application so I thought that all validation will be done in my custom code.
Unfortunately when I'm trying to create new user by calling function:
Membership.CreateUser(user.UserName, user.Password, user.Email, null, null, true, Guid.NewGuid(), out status...
I decided to use ASP.NET MVC, S#arp Architectur and the Spark View Engine for my new project.
First i created a new project with the help of S#arp.
I tried to update the view of the S#arp Architectur to .spark files.
That works fine except for one exception left. The ActionLinkForAreas Method used in the Application.spark is not found...
I browsed the source code of FormsAuthentication, and noticed it ends in
context.Response.Redirect(strUrl, false);
The 'false' parameter stands for "don't terminate execution of the current page".
Why wouldn't a call to FormsAuthentication.RedirectFromLoginPage() need to terminate viewing the current page? What is the correct behavi...
As of ASP.net MVC 2 RC, there have been Async Controller available. There also various of ways and practice to make the async Controller.
For example:
http://msdn.microsoft.com/en-us/library/ee728598(VS.100).aspx
http://www.ducdigital.com/2009/12/24/builtin-async-controller-in-asp-net-mvc-2/
http://weblogs.asp.net/seanmcalinden/archi...
I am starting to develop a complex web application using S#arp Architectur and the Spark View Engine.
By default MVC 1.0 is used.
But i am thinking about upgrading everything to ASP.NET MVC 2.
Would u start developing in MVC 1 and upgrade to version 2 later or do the upgrade straight from the beginning?
Thanks for your advice,
-Ben...
I am not at all familiar with ASP.NET membership/roles. This is my first time using it, and my first time trying ASP.NET MVC. When I create my first project for MVC, it gives me a lovely template to create an account. I was excited to see that I did not have to do this manually. However, it failed because it cannot connect to SQL Ser...
Hi, how do i write a async class like WebClient?
Is there anyway i can keep it short and does not have to repeat it for every method?
for example, i have:
Download(string a)
Download(string a, string b)
do i have to rewrite Async + Complete method for each of these?
Thank you very much.
...
I'm developing (.NET MVC) a large website which has the following specifications:
Database pages (HTML editors)
Sub applications (/products, /search, /user-area (more mixed db-pages & apps))
Multi location (both db-pages & apps)
Multi language (all: db-pages, apps & multi-location)
I have problems with the following:
Routes. Do I i...
This is NOT a Master/Detail question.
I am using ASP.Net MVC and trying to display several jqGrids on the same page from different data sources in a tabbed interface.
However, when the page loads each jqGrid has the layout and data for the last jqGrid that is defined on the page. Is it possible to have two unrelated jqGrids on the sam...
Take the example of wanting to have a "Latest news items" sidebar on every page of your ASP.NET MVC web site. I have a NewsItemController which is fine for pages dedicating their attention to NewsItems. What about having a news sidebar appear on the HomeController for the home page though? Or any other controller for that matter?
My fir...
I made a really simple MVC application with VS 2010 beta. just a view with 2 fields ID, and name made the controller and just tried to check the Index page. I am getting the following error. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporaril...
In my MVC application I have the following paths;
/content/images/full
/content/images/thumbs
How would I, in my c# controller, get a list of all the files within my thumbs folder?
Edit
Is Server.MapPath still the best way?
I have this now DirectoryInfo di = new DirectoryInfo(Server.MapPath("/content/images/thumbs") ); but feel it...
Assuming my question here gets answered what are the options to attaching meta data to an image in my thumbs folder?
I thought of placing an xml file in the folder which contains the filename and then the description of it but feel this to be a little clunky.
For various reasons I can't use a database in this project which is very limi...
Hello,
I'm passing 3 sets of data through to a view in a viewmodel and have a problem relating one of them to the other two in my foreach coding:
My DB tables are:
"ServiceGroups" is parent to "Services"
"Services" is related through a joining table (using a 2 composite Primary Key) to the aspnet_users table (I call "Users")
I pulled ...
Hello,
In an ASP.NET MVC application using for the first time jqGrid.
I have a menu, I call "employee" from the menu in the master page like this :
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$(".mnuEmployee").click(function() {
$.post("/Employee/Index", null, function(d...
we are extending Oxite CMS we need to make the home page contain boxes and this boxes can be filled with text or filled from backend with news or articles titles and the admin can change this boxes places
how I can implement something like this ?
...