image handler on mvc
i want to create an image handler that will resize and serve images to my application, how do i call the handler on mvc? ...
i want to create an image handler that will resize and serve images to my application, how do i call the handler on mvc? ...
Hey guys, i have a crazy problem. I have been running my webapp on firefox and it works fine. However, my client will be using internet explorer. I dont think it will work me just saying in order to use this, you have to use firefox so i am trying to correct this damn bug. I have 3 dropdownlists, a parent, a parent/child and a child. And...
In my ASP.NET MVC application I allow users to log in. Each user is associated with a company. Company ID and company data is not part of the Users table in the database. User and Company are connected through a related table (one to many relationship). Company ID is not part of the Users table as a foreign key because the design of the ...
This is what I'm trying to do. I have a route defined like below. <route name="productresultscatchall" url="ProductResults/{*querystring}" controller="ProductResults" action="Display"/> My urls get constructed by a non-MVC page that has no idea about my routes. It passes in everything as a BIG querystring. e.g. www.abc.com/Prod...
I understand that in mvc to implement role based security at the controller or action level for my site I could paint the class or method with something like the following: [Authorize(Roles = "DOMAIN\GROUPNAME")] (I use windows authentication) Previously in asp.net I might have done this with a location section in the config. The pr...
I'm trying to implement a "remember me" feature using ASP.NET MVC. It uses a customized authentication process as defined below. Web.config: <authentication mode="Forms"> <forms loginUrl="/Account/Login" defaultUrl="/Home/MyAccount" timeout="43200"/> </authentication> Code to persist cookie: public void SignIn(strin...
Hello, I just downloaded the Microsoft.Web.Helpers package from nupack and added linkshare to my site using @Linkshare.GetHtml() syntax. It works extremely well - except the icons for social sites are tiny. Does anyone know of any way to increase these to a larger size? Looking at the API I don't see anything but perhaps there is someth...
I am looking to create an editor template for Object.cshtml to change the behavior of the Html.EditorForModel() method. I can't find any example of this using Razor. I have seen this example using MVC2 and WebForm view engine but don't know enough about razor to convert it. Even a simple example would be very helpful. ...
There are many solutions/products that PayPal provides for websites to integrate with PayPal payment. I would like to know what's the simplest or easiest solution to integrate PayPal into ASP.NET MVC web applications. Which solution I should use? It would be helpful if someone who had the done this before can share his or her experience....
Lets say I have the following entities that map to database tables (every matching property name can be considered a PK/FK relationship): public class Person { public int PersonID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } public class Employee { public int EmployeeID { get; set; ...
Hello Friends, I am showing Custom Error in my page.. if somehting happend wrong. but if the same error occured in my subview master page I am not able to show the Custom error page on Entire page its showing me that Error page under subview master page. Please I am attching the Screen shot. Can any body help me out how to show the Err...
Hello, We'd been getting "A required anti-forgery token was not supplied or was invalid." errors, and on some further investigation, I've managed to recreate the problem in its simplest form - i'm either doing something completely wrong, or this is a limitation of the anti-forgery token system. Either way, I'd appreciate some advice! ...
I am trying to create a razor web helper something like this @helper DisplayForm() { @Html.EditorForModel(); } But this gives the error "CS0103: The name 'Html' does not exist in the current context". Is there any way to reference html helpers within web helpers? ...
Hi all, I have a jQueryGrid in which a dropdown list needs to be implemented. The code that I have written below just displays the data and that too only the first result: new JQGridColumn{ DataField = "DepartmentRoleName", HeaderText = "Deptt Role/s", Sortable = ...
Basically I have a custom built "Date" class "EndDate" in my MVC output model. FYI: The "Date" class builds of DateTime but hides the time functionality. I've created a display template for this Date type that formats the date nicely but in once instance (shown below) if the object is null (in this case for EndDate) I would like the te...
Hi all, I have a website where the user can upload an excel spreadsheet to load data in a table. There can be a few 100k rows in the excel spreadsheet. When he uploads the file the website needs to insert an equal amount of rows in a database table. What strategy should i take to do this? I was thinking of displaying a "Please wait pa...
So I've just been experimenting with ASP.NET MVC and I'm really starting to like the way everything has one single purpose (as far as the separation of purpose between the models, views and controllers) but I'm still having some trouble applying my basic knowledge to a somewhat practical purpose. So, I was thinking of trying to create a...
Hi, I am working on a web application where images has to be scaled dynamically and served to the client as fast as possible (with low overhead). I need to create something that scales and compresses high-quality PNGs to medium quality JPEGs. Now, there are multiple ways of doing this and I am slightly confused which method provides th...
I am having jQuery tab control and first tab has a edit form and other tab is where users can upload images.Problem is that when I am on second tab and try to upload image it always validates the first form also. First tab Edit Form: <% using (Html.BeginForm()) {%> Second tab Form: <% using (Html.BeginForm("UploadImage", "Images", F...
I have a Telerik MVC2 Grid which has a column like: columns.Bound(c => c.CustomerID) .Format(Html.ActionLink("Close", "CloseCustomer", new { Id = "{0}"}).ToString()) .Encoded(false) .Title(String.Empty) .Width(80); the objects being used also include a closed flag, and I'd like to be able to get it to make ...