How can I disable HTTP Keep-Alive in ASP.NET MVC?
Is there a way to tell IIS/ASP.NET not to allow Keep-Alive for certain requests? Or even for an entire website, if that's really the only way to go about it? ...
Is there a way to tell IIS/ASP.NET not to allow Keep-Alive for certain requests? Or even for an entire website, if that's really the only way to go about it? ...
I am learning ASP.NET MVC. I started reading "MVC in Action" and "Pro ASP.NET MVC Framework" books and noticed their text and code depend kinda heavily on some open source projects like MVCContrib, NHibernate, Castle Windsor.. etc. These are very good books with good sample projects however I need to learn raw ASP.NET MVC without clutter...
I have an ASP.NET MVC web application that makes REST style web service calls to other servers. I have a scenario where I am making two HttpWebRequest calls to two separate services. I need them both to complete to continue, but their order doesn't matter. They may take 1-2 seconds each and I am running them in sequence now. Running ...
Hi Guy's, Im using a custom profile class within my mvc app but i cannot access a property in my view. Here is some code Web.config <profile inherits="ValuePack.Helpers.ProfileCommon" defaultProvider="AspNetSqlProfileProvider" automaticSaveEnabled="false" enabled="true"> <providers> <clear /> <add name="AspNetSqlProfileProvider" t...
Hi I have a List of classes in my collection like List<MyClass> test = new List<MyClass>(); In my classes I have just some properties public string id {get; set;} public DateTime date {get; set;} Now I make these classes by getting some queries from 2 different database tables. I then take those 2 results from the database tables ...
I have a form that looks like the following mock-up (photoshopped from Facebook) for our Messages view on our ASP.NET MVC site. I'm looking to get the "Mark as Unread" and "Delete" functionality working for a form that looks like this. I'm trying to figure out how I can do this with html forms. How do I make hitting the "Mark as Unre...
Hi, I am building a large, multi-area MVC project. (MVC 2 Beta). I have a session wrapper class, in its own project, MySession, that looks like this: Public Class MySession Private Shared _userlist As String = "UserList" Public Shared Property UserList() As IList Get If HttpContext.Current.Session(_userlist) Is Nothing ...
there is known issue with loading a flot chart in a jquery tab that is not the initial visible tab here: this was asked here: http://osdir.com/ml/jQuery/2009-06/msg02284.html and answered with this solution: .tabs-hide { /*display: none;*/ position: absolute; left: -10000px; } there is still some issues with this solution. ...
For some reason I'm stuck on this. I need to filter results from a View based on a DropDownList in the same view. The basic idea is this: I have a list of providers that belong to various partners, but the provider list contains ALL the providers together (for all partners). I need to be able to display the providers by partner when some...
I am developing my first web app after years of C# Windows Forms development in .NET. I've been following the NerdDinner tutorial and making changes where needed to suit my programs needs. I have some more things to add, but currently all the functionality is working. I've kept my Index View as a table. When it displays, the table is...
Hello, I've been having this discussion with my brother, and it looks like none of us is well qualified to answer the question. n fact, since I've been learning ASP.Net MVC, I've the impression that I should create all my .aspx pages using HTML/CSS. He (my brother) sustains that - in the modern day - we should not spend to much time o...
I am trying to implement Error handling using Action Filters Attributes as per ScottGu's blog My code is as follows: [HandleError] [HandleError(ExceptionType = typeof(NullReferenceException), View = "CustomError")] public class ArticlesController : Controller { public object OhDearACrash() { throw new Exception("Oh Dear...
I use ASP.NET MVC for serving web application and I want to create something like the following code. <% using(HTML.Form(Model)) { %> <% HTML.CreateTextBox('txt1', x => x.Property1); <% } From the above code, Form extension method will receive object that represent type of current Model object in current View page. Next, CreateTex...
I recently ran into a situation in which accessing session information from view is the most intuitive and quick solution to the problem. So, I just did it without thinking too much. But now when I revisit my code. I somehow feel uncomfortable about the decision I made earlier. I can't clear state what is wrong of doing what I did. Just ...
How do I restrict file types with the HTML input file type? I have this <input type="file" id="fileUpload" name="fileUpload" size="23" accept="Calendar/ics"/> I am trying to restrict the type to only the iCalendar format type. I also want to check it on the server side. How do I do this in ASP.NET MVC? ...
Hi So is there some sort of built in checking in Dday iCalendar that checks the input stream of what they are uploading is a valid iCalendar format. I am not sure what happens if something is not in proper format or if it is like a jpg being uploaded instead but has an Ical extension. ...
This question is a bit subjective in nature, but I am unsure if there is a better place to ask this in the family of sites. Is anybody using the new Orchard CMS on a public facing site? For those that don't know, Orchard is basically the replacement for Oxite. It is an ASP.NET MVC based CMS. I've pulled it down and compiled it, but ...
I am using ELMAH to log errors in my asp.net MVC(C#) application. I am able to log errors in xml or database. How to log errors to the eventlog using ELMAH? ...
I have a controller that is all ajax calls, so I want to verify it's an ajax call once on the page before it calls the controller action so that if it's not an ajax call I can redirect to a home or error page. Is this possible? I know I can put in the constructor class, but the request object is null at that point. ...
In ASP.Net MVC is it possible to use either Redirect or RecirectToAction to call for example a 303 error? I am working my way through a book titled "ASP.NET MVC 1.0 Website Programming" and the source is making calls such as return this.Redirect(303, FormsAuthentication.DefaultUrl); but this call only functions with an external library,...