I've a couple of extension methods I've been developing for a couple of projects, they currently rely heavily on some AJAX to make bits and pieces work. The problem is that they require copying and pasting JavaScript files to the project you want to use it in.
As this JavaScript file only needs to be used once (all instances of the rend...
I would (as the question states) like to make an asynchronous call, preferably using ASP.net AJAX.
The code for the WebMethod looks like this:
[WebMethod]
public void SendMail(string name, string email, string subject, string body)
{
MailMessage toSend = new MailMessage(email, [email protected], subject, body);
var smtp = new Smtp...
The controllers in my ASP.NET MVC web app are starting to get a bit bloated with business logic. The examples on the web all show simple controller actions that simply pull data out of a repository and pass it to the view. But what if you also need to support business logic on top of that?
Say, for instance, an action that fulfills ...
Hi Guys,
I am trying to create an upload control for ASP.NET MVC with jQuery progress bar. In ASP.NET the implementation works no problems, but in MVC the problem is that the server doesn't respond to my callbacks until the file is uploaded.
The upload control is based on html file upload element, and I cannot for the life of me, under...
I am working on a ASP.net project created with local file system settings. I am using MVC and Jquery. Jquery is working fine when I run the application in debug mode i.e. in ASP.net Development server. I am trying to host the application in IIS 7. In hosted mode, it does not recognize Jquery and gives scripting error 'Jquery is undefined...
Hi there.
I've downloaded Kigg example from codeplex, but it's seems to be outdated.
Is there a version for ASP.NET MVC Beta? Is there someone who try to port it(I've tried but without success because of lack of knowledge)?
...
I noticed that there is one change about ASP.NET Routing. I cannot understand why such change.
In ASP.NET MVC Preview, the routing setting in Global.ascx is like "[controller]/[action]/[id]". Now, it is changed to be "{controller}/{action}/{id}". Why change [] to {} ? Is there some necessity to do that?
...
Hi folks,
I'm trying to connect my stock standard, default ASP.NET MVC (web) application to the Vista IIS7 localhost web server instead of using Cassini.
I'm trying to find some steps to set this up, etc.
I've installed Vista IIS7 and of course MVC beta, VS2008 & Sp1.
Lastly, i'm hoping to also have multiple solutions use the Vista I...
I've been spending some time looking at Phil Haack's article on Grouping Controllers very interesting stuff.
At the moment I'm trying to figure out if it would be possible to use the same ideas to create a plug-in/modular architecture for a project I'm working on.
So my question is: Is it possible to have the Areas in Phil's article sp...
I've been working with ASP.NET MVC for the last few weeks, learning as I go, from tutorials and mostly trial and error.
I'm sorta groping in the dark, since I have no other experience with MVC frameworks and I'm just moving ahead blindly trying to figure things out as I move along.
So, I'm looking for better, more organized source ...
Hi,
What options do I have for error handling in ASP.NET MVC?
Do I call GetLastError on the error page and send out the email or log it?
...
Here is a simple overview of my directory layout for my views:
Project
Page 1
Page 2
RSS
Issues
Page 1
Page 2
RSS
I am using forms authentication to deny access to all unauthenticated users, that works fine. However, I want to be able to grant access to the RSS views to everyone (so they can subscribe via google reader and stuff...
I'm using reflection to get the Authorize Attributes from controllers and methods.
Since I will need to get this information over and over I'm wondering if it is faster to cache it or to simply continue to use reflection to get it.
Any thoughts?
...
Lately i got into web development (in asp.net mvc), and i'm looking for some ideas web application ideas worth coding, preferably in an increasing difficulty level.
my first app (which i'm currently coding) is a photo gallery web site
...
I am developing an Asp.net mvc application, everything works fine in ASP.net development server but when I am trying to host it on IIS 7. I am getting problem related to URL resolution. I have used relative paths in Javascript to give the image. The script file is in ~/Scripts/ folder and image files are in ~/Content/images/ folder. Now ...
Hello there!
I'm looking for some information on Routing in MVC with C#. I'm currently very aware of the basics of routing in MVC, but what i'm looking for is somewhat difficult to find.
Effectively, what I want to find is a way of defining a single route that takes a single parameter.
The common examples I have found online is all b...
I have read lots of information about page caching and partial page caching in a MVC application. However, I would like to know how you would cache data.
In my scenario I will be using LINQ to Entities (entity framework). On the first call to GetNames (or whatever the method is) I want to grab the data from the database. I want to save ...
I'd like to add a click handler for a button using jQuery, but the handler needs to reference data supplied by the controller. Is there a way to access ViewData in a script block in ASP.NET MVC? Or do I need to construct the script in the controller?
...
I'm building an ASP.NET MVC application with a form that needs validation. The majority of the form is static, but part of the form is dynamic.
I need to enable the user to enter n string/date combinations.
The string/date combos need to be validated server side, and I need to give feedback to the user preferably directly beside the ...
I have just started playing with the ASP.Net MVC framework, and today I created a simple UserControl that uses some CSS. Since the CSS was declared in a separate file and included in the View that called the UserControl, and not in the UserControl itself, Visual Studio could not find any of the CSS classes used in the UserControl. This g...