Lets say I have an ASP.Net MVC App and this app (UI) references a Business Logic Layer (BLL) and the BLL references my Data Access Layer (DAL).
I am utilizing a Custom Membership and Role provider for Authorization.
I am trying to determine what layers need to reference my Membership provider.
In MVC you can perform Authorization ch...
Question
How can I dynamically resize an image in ASP.NET MVC?
Background
I'm trying to automatically create thumbnails from images that are already on the server. In ASP.NET Webforms, I created a HTTPHandler to do this and added verbs in the web.config for all image extensions to pass through the handler. The handler was nice in tha...
Hi,
Can anyone please make a comparison of "asp.net mvc" vs "spring mvc (java)".
Which technology is better in performance, productivity, maintenance, features,...
Regards,
sirmak
...
I'm using Client Side templates in my JavaScript.
$create(Sys.UI.DataView, { data: data }, null, null, $get("id"));
Where i have JSON result in "data", which has 100 record.
So ths template binding all the 100 record.
How can i efficiently pass required amount of data. ex: 10 record.
...
How could I create a dynamic forum signature generator using ASP.NET MVC. I currently have a Stats fetcher that retrieves the user info to be used in the Forum Signature.
I'm trying to create a forum signature generator where a user can enter their user name and generate an image that they can put in their forum signature that will show...
In Brad Wilson's post
http://webanonymizer.info/browse.php?b=5&u=Oi8vYnJhZHdpbHNvbi50eXBlcGFkLmNvbS9ibG9nLzIwMDgvMDgvcGFydGlhbC1yZW5kZXJpLmh0bWw%3D
he listed all the overloaded method for Html.RenderPartial(), but none takes the controller name as parameter.
For my application, I would like to specify the controller name when cal...
I'm developing a web application for a company which I work for. My team started working on the app few months ago and the decision was to build it with ASP.NET WebForms. Now we've quite a lot of the code developed and we're wondering if ASP.NET WebForms was a good choice. Maybe we should migrate. Ok, but what's the first step? We don't ...
I'm finding that the code that I write in my controllers is largely repetitive , and more importantly that the tests I write for my controllers are also very repetitive. The general pattern for a save method is as follows...
Take an entity, and a number of primitive parameters. Write the values from the primitive parameters onto the sam...
I am curious as to how companies such as Google App Engine, Weebly, ThinkTank allow clients to host their domains such as stackquestion.com to their application website such as stackquestion.stackapplication.com?
An Example with Weebly which uses A Records:
http://www.weebly.com/support/index.php?pg=kb.page&id=4
Google App Engine ...
Hi,
I'd like to embed an instance of object A inside object B. I have already an action and an editing view which renders a form for object B. I made it a strongly typed partial view accepting B.
I am dealing with the Create action now, so I do b = new B(); b.A = new A();
Now I'd render the form for B, and then call the partial view fo...
Hi, I'm going to build a web app. I need some CMS that can be integrated with ASP.NET MVC.
The possible solution list is:
1) Oxite
2) MVC CMS
3) AtomSite
4) N2.
Sorry for obvious question, but can the DotNetNuke be used with ASP.NET MVC? TIA
...
I have a POCO class that is being sent to the browser as a JSON string in .NET 3.5 sp1. I am just using the default JSON serialization and I have some fields that I want to ignore. I want to put an attribute similar to [System.Xml.Serialization.XmlIgnore] on them so that they are not serialized.
...
I am still learning ASP.NET MVC. With webforms, I would create a new folder let's call it admin. In there I might have many pages for create_product, edit_product, etc. So the URL might look like http://somesite.com/admin/create%5Fproduct.aspx.
But with MVC it is a little different. I am trying to see what would be the best way to d...
In an asp.net mvc web app I want to display a custom message for invalid model values. The issue I'm running into is with numeric properties. A user can put a string into a textbox that is bound to a decimal property and click submit. Since the asp.net mvc model binder cannot bind the string value to the decimal property on my object,...
I'm trying to write a test for an ASP.NET MVC controller method. I've got RhinoMocks (since it seems to be the most popular and best supported), and MvcMockHelpers (since it seems like I need that).
My test method looks like:
var controller = new MyController();
MvcMockHelpers.SetFakeControllerContext(mocks, controller);
mocks.ReplayA...
How do I implement Https on asp.net mvc login page?
...
I have the following code that i am trying to change from a regular page to an ajax page so when i submit the form, i only refresh the LInkList div. I change the using line to use Ajax.BeginForm
Here is the View Code:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="LinkList">
<% Html.RenderPa...
Hey Y'all..
Trying to get started with MS's implementation of MVC and I'm already in a jam..
I have a have a route like so:
routes.MapRoute( "Custom", // Route name
"RightHere/{entryDate}", // URL with parameters
new { controller = "RightHere", action = "GetDate" } // Parameter defaults
);
And the...
Hi folks,
i'm trying to make my own IAuthorizationFilter attribute class. Basically, each api call has a query string parameter called 'key'. I was going to then decorate any actions that require this, with the simple authorisation attribute.
I was hoping my OnAuthorization(..) method will then just extract the value of the query param...
I have an asp.net-mvc site and I use the below javascript library for a photos page to put borders around all of my photos
http://www.netzgesta.de/instant/
i just changed my site to load my photos via ajax instead of reloading the whole page and although when i debug it the correct html is built up, i dont see any of the images:
<div...