Besides simply redirecting from HTTP to HTTPS, the RequireHttps attribute also changes my URL's question mark ? to %3F. Unsurprisingly, that breaks things.
Why? How do I fix it?
scenario:
I try to navigate to http://www.example.com/message/compose
But let's say I don't have permission to view that page.
<HandleError()> _
Public Cl...
Hi
I am just started to employ some new programmers for a trial period. They are students so nobody know if they're good or not. I would like to give them some typical tasks at the beginning to see how skilled they are.
The problem I have is that I want them to write some bits for my asp.net mvc web application, but I don't want them t...
I'm trying to do something similar to this post where I don't pull back all columns from a particular entity, however my framework makes use of inheritence and I lose scope of the entity type after it's been cast to an anonymous type.
The structure of my Entity Framework has a base entity called Action. From here I've created two inhe...
Is it possible to do nonsilent delivery of a WMRM DRM license via ASP.NET (ideally MVC)?
I have silent delivery working fine.
All the samples from the SDK (WMRM10.1) are in asp - of which I have no experience (I went from PHP to ASP.NET).
It looks like I need to implement the actual issuance in vbscript or JavaScript included with the...
I'm enjoying Asp.Net MVC and am looking to use it in an upcoming project. Part of the project, however, is an emphasis on being able to expose the project Views to designers for things like theming and so on. One problem I'm anticipating is that Asp.Net MVC views are rather developer-centric. I really don't want to have to educate design...
Url.Action is a great mechanism to generate URL's as you can think in terms of controllers, actions, and parameters instead of hard-coded URL's.
However it's not going to work when you use a catchall parameter in your route. What would be a recommended approach to generate URL's for a route that is using a catchall?
...
Hi guys
Just wondering if anyone has any ideas on how we can style templates... Like if I want to change the MaxLength of a textbox how do I go about doing this.
What I would like to be able to do is something like what I can do in WPF with styles and templates... In WPF you can pass through styles to the templates and then choose whe...
I have an maintenance controller in my app for editing the database. I have restricted the control with authorization attribute, but should i be doing more than this? What are the risks here? For example should I create a separate assembly for this or a new application or a remote application?
...
The following link explains editor templates: http://weblogs.asp.net/scottgu/archive/2009/07/31/asp-net-mvc-v2-preview-1-released.aspx
What I want to know is if I have a editor template for a drop down, how is the initial value set?
I have a drop down and I use the Html.EditorFor(c => c.Country, "CountryDropDown")
But it always defau...
Has request validation changed for ASP.NET MVC 2, more precisely, not validating?
I did the following:
Web.configs (in App directory and Views directory)
<pages
validateRequest="false"
Controller/Action Attribute
[ValidateInput(false)]
In @Page View Directive
ValidateRequest="false"
The page still gets validated an excepti...
I am kind of new to ASP.NET MVC, so need your help getting me through a problem:
In my application the LogOn will be done using the Role of the user. I have my custom database schema (like User, Role, UserInRole etc.) and I am using my custom MembershipProvider and RoleProvider to achieve Logon.
BTW I am using the MVC default Account ...
Hi
I have an action method that takes in two different objects.
I am posting JSON to the action using jquery, to do this I put all the properties i want to map to my two objects in the one Json object.
This works correctly and maps to the two objects in my action!
I want to be able to pass Json and map to a list of objects? is this po...
I installed what I assumed would be the latest version (link) of ASP.NET MVC last night, but I don't have the Html.SubmitButton helper available to me.
I've seen it used in some of the video tutorials on the ASP.NET website.
...
Hi,
I have a table 'Menus' containing the
names of the menus of the restaurant.
I also have a table 'Ingredients'
containing the ingredients that are
available to the menus.
I don't have any trouble getting the values out of the 'Menus' table into an IQueryable class (PropAllMenus)
Public Class PropAllMenus
Private _MenuID As Intege...
I'm currently debugging an ASP.NET MVC application that was just deployed to a different server.
All the versions between the staging server and the production server are the same, but in the production server (which is 64bit, but is running the app in 32bit mode) I'm getting a timeout in this controller action:
[AcceptVerbs(HttpVe...
I've been learning ASP.NET MVC for about a month now and I'm certainly sold on its benefits but I realize it is not applicable to all situations.
I've read in several places that ASP.NET MVC is not ideal for data-intensive applications:
Example 1: "Data Driven Application – life would be MUCH easier using WebForms if the application i...
Hello All,
Some Background to begin:
I've implemented a custom MembershipProvider that validates a user from my service layer called "WebMemberShipProvider"
Currently I have a service called "MembershipService", this service implements the interface IMembershipService on the service layer.
this MemberShipService queries the dal, and v...
I have my default website in IIS7 bound to an ASP.NET application. This application is using the ASP.NET State Server to store session data. I would like to add an additional ASP.NET MVC application to this website. Is it possible to share the session between these two applications using the state server? I've read that there are ways ...
I need to build a web application with different process flows and different UI steps depending on the locale of the logged in user.
I have developed a number of ASP.NET applications in C# and like the separation of concerns an MVC approach would give me. So I am looking at using these technologies.
The kicker is that different user...
Hi everyone,
I've searched high and low and I can't seem to find a straight answer.
If I have a custom attribute/filter will the OnActionExecuted sub always be called? Even if there is an exception thrown?
Thanks
...