asp.net mvc domain checking folder rights
i want to check the rights on the folder before uploading to that folder on the domain? ...
i want to check the rights on the folder before uploading to that folder on the domain? ...
This is my first question, and it is probably a poor one, so please be gentle. Working on my first ASP.Net MVC2 web app recently, I came across some issues when I needed to select multiple values in a list box. I worked around it with some jQuery, but went ahead and put together some very simple code to demonstrate. I'm using EF for t...
Hello there Im trying to write a test can I mock a HttpRequestBase to return post values like this? please help as its quite urgent, how can I acheive this? var collection = new NameValueCollection(); collection.Add("Id", "1"); collection.Add("UserName", ""); var mocks = new MockRepository(); using (mocks.Record()) { Exp...
Hi all, I have an ASP.NET MVC application that transmits audio files via a "Music" Controller and "Music" ActionResult. With this, I can serve files through our routing engine (i.e. www.mysite.com/music/stream/id=42) and do other nifty server-side stuff like logging. I also have a Flash music player (developed by a contractor) to rec...
I'm a newbie in Cocoa developer, beside this I know well a lot of patterns. So far until now I understand that MVC have in mind avoid dependences between model, view and control. Well, I gave a look in some examples of controller and I found a behavior that apparently do not agree with that goal. Normally, in theses examples, I found a c...
I am using asp.net mvc with ajax navigation. I use jquery address and I can change the address bar to be like "MYPage.Com/#/Url", but how can I invoke my route when the user enters that link? This has probably been asked before but I could not find it, so please point me to it if you find it. ...
I have implemented the File Upload (upon reading Scott Hanselman's excellent post) I have multiple files associated with various questions on the form though, and would like to associate each saved file with an internal ID. How can I do this? For example, if question # 3 has a file uploaded abc.pdf, how can I associated that file with...
I am new to Code Igniter and I wish to know if there is anything that works like MasterPages do on .NET. Also i was wondering where should i keep my public files, like scripts, styles and images. Greetings, and Thank you in Advance ...
With Sqllite provider,it works. But with sybase provider,it thows exception. Exception: Error thrown by a dependency of object 'SybaseAse-12' defined in 'assembly [Spring.Data, Version=1.3.0.20349, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] line 1436' : Unsatisfied dependency ...
I am returning partial view public virtual PartialViewResult Create() { return PartialView("Create"); } and loading the view in my page when clicking create button with jquery function createVendor() { jQuery.ajax({ type: 'GET', url: 'Vendor/create', success: function (result) { $("#popup"...
Generally, a get request is not meant to have any side-effects. However many sites allow you to reset your password or authenticate your email/user by clicking a link embedded in the email. Since we don't want to send HTML emails and therefore cannot use a form in which the data is POSTed, we have to use a get request. However it is cons...
Hi, In a MVC + ActiveRecord scenario, would it be possible/recommendable to validate db dependent properties as part of model binding? How would you go about implementing this - custom validation attribute? A db dependent attribute could be active records ([Property(Unique=true)]. A simple example of its usage: public class Person ...
Hi All I am getting following error while uploading file in asp.net. "Length = 'stream.Length' threw an exception of type 'System.NotSupportedException'" I have already configured httpRuntime in config as follow:- <httpRuntime maxRequestLength="2097151" executionTimeout="7200" /> This error occurred usually when i tried to upload f...
I have a non-MVC Java app that I'm working on refactoring into MVC for future maintainability. The app GUI includes an arbitrary number of rows, each represented by a JPanel containing several controls. I've refactored the logic per row into a model class, and set up a simple controller following the pattern laid out by this java dev cen...
I have an ASP.NET MVC application with an Admin area that deals with administering Companies and their child entities, such as Users and Products. The default route associated with a child entity is defined as follows: "Admin/Company/{companyID}/{controller}/{id}/{action}" I would like to ensure that, everywhere in the Admin area, whe...
I'd like to create a popup window for products instead of directing to another page. I'm looking for advice on the best way to basically make a copy of the product view template to modify for my needs without having to create separate models and blocks. I'm using version 1.3.2.2. Let me know if anything needs clarification. I realize th...
Is it possible to post a form from one MVC site so that it invokes the POST action in a controller on another site ? I can do a GET easily, but a browser redirect is always a GET as per my understanding and I am unable to invoke the target site's POST action. e.g. http:/siteA.com/test invokes http://siteB.com/result/signin ... in the Re...
I'm planning on using Bit.ly Pro and the Bit.ly API to make my own short urls in a Rails 3 project. I've got a User and a Note model. And a url structure like this: '/username/1-note-title'. Now I would like to give each note a short url. But I don't know from where I should do the API call. Right now I got this code in the Note contro...
I have an application that has an public 'end user' mode and a 'back office' mode. Both 'modes' pretty much share the same controller logic but the user interfaces for these different 'modes' are radically different. Using the out of box default routing that you get when a project is created for the first time I have something like the ...
I have an MVC app with a Partial View (below). When I add Html.EnableClientValidation(), my fields disappear upon exiting them. I don't expect anyone to figure it out from the code, but if anyone has seen such behavior and can point me in the right direction, I'd appreciate it. In the mean time, I'll start rebuilding piece by piece a...