I am building a site and I have a list of status updates and I want to allow the users to write comments for each of of the items in the list
However I am trying to implement a UI similar to the way stack overflow works
specifically the collapsible comment form / list where a user clicks on add comment on the specific status update in t...
I have a ASP MVC App with some seemingly simple code to save and retrieve cookies but for some reason they won't persist. The code in the controller is :
if (System.Web.HttpContext.Current.Response.Cookies["CountryPreference"] == null)
{
HttpCookie cookie = new HttpCookie("CountryPreference");
cookie.Value = country;
cookie....
I'm designing a blog architecture on asp.net mvc. Lets say i only have 2 entities: post and comment. do i need a controller and a repository for each one? how goes the mechanism for displaying a post with it's comments? do the post controller looks in the posts repository for the post, then asks the comment controller to retrieve all the...
I have some POST actions on my controller that are hit from a pair of GET actions. When validation fails, I want to render the view of the action that the POST is coming from. For example:
~/accounts POSTs to ~/accounts/disable - render "index" view on validation error
~/accounts/profile POSTs to ~/accounts/disable - render "profile" ...
I have limited prior ASP .NET knowledge (very basic knowledge). I have worked with Ruby on Rails and and primarily a WPF/C# developer. For a new project I am going to be working on I need to know ASP .NET MVC. What are some good resources for learning it?
...
Using ASP.NET MVC Preview 5 (though this has also been tried with the Beta), it appears that querystring defaults in a route override the value that is passed in on the query string. A repro is to write a controller like this:
public class TestController : Controller
{
public ActionResult Foo(int x)
{
Trace.WriteLine(x);...
I have an ASP MVC form which updates a business object and then its action goes to another page.
Both of these pages have a textarea with an id "Description", when it goes to the other page, for reasons unknown it fills in the values which were entered before the form submission.
...
I've been tasked with making a prototype web application, and i'm debating between using ASP.NET WebForms or the new ASP.NET MVC.
There is a commerical ASP.NET UserControl that i would like to use that gives me 95% of the functionality i need (and it does it in an AJAX-y fashion). But i've heard that since ASP.NET MVC doesn't use ViewS...
Hi everyone,
Is it possible to use SimpleModal (jquery plugin) with ASP.NET MVC. Since it has postback stuff init.
thanx
Owais
...
When submitting one form from view, how can i also read or have controller read data in another form in same page?
...
What is the 'page lifecycle' of an ASP.NET MVC page, compared to ASP.NET WebForms?
I'm tryin to better understand this 'simple' question in order to determine whether or not existing pages I have in a (very) simple site can be easily converted from ASP.NET WebForms.
Either a 'conversion' of the process below, or an alternative lifecycl...
How do I make the below function more dynamic for example commentLink and commentContainer will have an ID after them like this commentLink-2289 commentContainer-2289 because there will be multiple ones in a list.
Javascript
$(function() {
$("#commentLink").click(function()
{
$("#commentContainer").toggle();
if ...
I would like to know people's thoughts on the best way to do the opposite to Phil Haack's Model Binding To A List. I have a form which contains several individual fields as well as form fields which are created dynamically using JQuery. This means that when I query the database for something to edit, it will return an object which in its...
Hi, I want to put some common information in my MasterPage to be shown on all pages such as Categories. How can I do that instead of filling that area in my each action.
...
Duplicate:
Should I pursue ASP.NET WebForms or ASP.NET MVC?
We are developing an enterprise application which uses client-server architecture. It is based on .NET Framework 3.5, the client is a rich WinFom application and the entire system is in Beta testing stage. We need to exposed some of this system's functionality through web....
I had user control in MVC asp.net which list the comments for particular image. I had given delete link with every comment. Now i want to delete that comment using ajax link. Please tell me how can i use ajax
This is my user controll and i am calling controller action on delete link
<%@ Control Language="C#" AutoEventWireup="true" CodeB...
I feel like I'm running around in circles. I can't seem to make up my mind as to what the right Repository pattern is using Linq To Sql. If you're familiar with Rob Conery's MVC Storefront you will see that his implementation wraps the Linq-Generated models with another class and treats the Linq-Generated one simply as a Data Transfer Ob...
I'm trying to create some basic logging for unhandled exceptions in my ASP.NET MVC application, but as I'm using IIS6 all requests come through .NET. Now while I agree that missing images are an important thing to flag, they aren't show-stoppers and so I'd like to set the event priority to high for 404s unless they are images (which wil...
I am in the process of developing a large ASP.NET MVC application. I am currently working through the mechanisms I'll use to structure my controllers/views. I have see some mention of monorail and it's use of "areas". I have reviewed Haacked's article and it looks like an intresting option. What I would like to know is whether or not...
Does anybody know if there is an official or estimated release date for the ASP.NET MVC framework? I'm starting on a project that I hope to have completed by mid March and it would be a perfect candidate for the platform, but I don't want to release it under a framework that isn't completed.
...