Just recently put a new site live to be internet facing. The site is built on ASP.NET MVC, and JQuery primarily. We tested the site fairly rigorously in IE6/7/8, Firefox, Safari, Opera, and Chrome. We do capture exceptions and log them.
We've just received a couple complaints where the user is unable to register on the site. There a...
title speaks for itself,
db.ExecuteCommand("INSERT INTO tCSVFile(fileName, fileContent, mimetype, timeCreated) VALUES({0}, {1}, {2}, {3})", filename, EncodeTo64(CreateCSVFile(header, rows)), "text/csv", DateTime.Now );
this works fine from the virtual server but on iis inserting causes nothing to happen.
Also tried this..
tCSVFile...
I have the following layout for my mvc project:
/Controllers
/Demo
/Demo/DemoArea1Controller
/Demo/DemoArea2Controller
etc...
/Views
/Demo
/Demo/DemoArea1/Index.aspx
/Demo/DemoArea2/Index.aspx
However, when I have this for DemoArea1Controller:
public class DemoArea1Controller : Controller
{
public ActionResult Index()
{
...
Hey All.
I have my own inherited App.Controller from Mvc.Controller which then all of my controllers inherit from. I wrote a provider utilizing an interface and implemented it as MyService and the constructor takes the Server property of Mvc.Controller which is of HttpServerUtilityBase.
However, I instantiate MyService in App.Controll...
I am having problems with MVC RC2 where upon validation failure, the failed field will throw a NullReferenceException when the view is passed back to the user.
A short term solution was found: which was to rename the Html.ValidationMessage to be different than the Target Form Field. This works!
BUT now the automatic highlighting is di...
I notice in the default MVC template project that the Account registration fields are highlighted via a class change.
I can't seem to get the same behavour out of my own code (in the same project - same CSS etc)
What might be stopping this from occuring?
Update
I believe this relates to one of my other questions
Because I was having...
I have just deployed my first application in .NET MVC and i'm having issues.
I have resolved the iis 5.1 problems with the routing (If anyone is looking for this go here:
http://itscommonsensestupid.blogspot.com/2008/11/deploy-aspnet-mvc-app-on-windows-xp-iis.html )
**Now my issue is that wherever I call db.SubmitChanges() on my data ...
Can it easily be combined with jQuery, (ASP.NET) Ajax, ASP.NET webforms, other frameworks.
What about pulling dynamic code from ASP.NET MVC into for example classic ASP?
Does the MVC model mean that it is easy to customize code?
Background:
I have some experience that it can lead to problems to integrate frameworks relying on Javascr...
I have a main MasterPage which has a single column layout for the web application I am currently designing. I want to re-use the existing MasterPage to implement a two column layout using Nested MasterPages which was possible on previous releases of the ASP.NET MVC Framework but I can't seem to get it to work in the RC2.
Any suggestion...
In my asp.net-mvc ontroller I accept a bunch of form field values and from those create a string the Lucene library understands.
Then I want to redirect to a get method that will show results depending on this lucene string.
The lucene string is in the pattern {fieldName1:value1 fieldName2:value2 ...}
my Global.asax has the followi...
How can i get the path of the MasterPage from inside a view, I tought that
((WebFormView)Html.ViewContext.View).MasterPath
would do the trick, but unfortunately, it's always empty.
so how do I get it?
...
I need a image generator in my ASP.NET MVC application, but I don't know if it is possible to use ASHX in ASP.NET MVC.
If there is an class similar to IHttpHandler that inherits IViewDataContainer, then I could use ViewData.Model on my ASHX.
I read a blog post about it but it seem outdated from the info I got in the ASP.NET forum
Any ...
I am looking to register 2 styles of user, they will both have different sets of data in the database.
I am looking to use asp.nets membership roles. Are there any simple ways to do this in an mvc app using maybe the account controller?
...
I'm a little confused with trying to do bring a list of Categories into a navigation bar on a MasterPageView in the latest release of the ASP.NET MVC framework.
I have 0 experience with Partials so far (this adds to the confusion).
Should I use this variant of the RenderPartial?
HtmlHelper.RenderPartial(string partialViewName, objec...
Hello all,
First off, I am fairly new to MVC and jQuery. I apologize if my question or terminology is incorrect.
I currently have a view in my MVC application that displays a list of addresses. On the same page, I also have a map where I wish to map these locations.
I am trying to find the 'proper' way of getting the list of address o...
I've some simple questions regarding asp.net mvc development.
What the use of UpdateModel and TryUpdateModel ? and which condition does apply to use either UpdateModel or TryUpdateModel. From my experience TryUpdateModel beside binding FormCollection into Model also validate the data. Is it correct ?
...
I have a fairly large ASP MVC application. Instead of having many controllers all in the controller directory I would rather create some hierarchy. So I might have something like
~\Controllers\Security\
~\Controllers\Maintenance\
~\Controllers\Reports\
I would also like to be able to do similar with Views
~\Views\Security\Users\
~\Vi...
Hi,
if you were using Nhibernate for data access in an MVC app what would be the best cache provider e.g. Syscache,Syscache2,Memcache,HashTable.. to use?
Thanks for your opionions.
...
Is there a way to use something like this: System.Web.Mvc.ViewUserControl<DateTime>? I get an exception that the type is a value type, not a reference type. What is the proper way to resolve this? Thanks.
Edit
What I am trying to accomplish is having a control that takes a DateTime to render a calendar. I want to pass in the DateTime ...
Thare is two forms in a page first one for searching and another for deleting....
<table><tr><td>
<% using(Html.BeginForm("ViewList","ControllerName",
[values],FormMethod.Post,new{id="viewListForm"}))
{ %>
Name: <%=Html.TextBox("Name", "[value]", new { maxlength = "250" })%>
Location: <%=Html.TextBox("Location", "[Value]", ne...