asp.net-mvc

ASP.NET MVC How to call a secured page from a windows app?

Hi, I have a MVC app that has forms authentication enabled. The app allows printing of invoices. I have an external app that converts html to pdf. How can I call the secured page from this pdf converter app so that some security remains? The PDF converter app just requires a URL. One thought was to create a HttpHandler for an exten...

ASP.NET MVC Beginner's question

Just I am learning MVC,(ofcourse i get enough information from MS Website).I want to quickly clarify some details. 1) What is the use of PartialView in MVC,Is it similar to partial update of Ajax? I am does the partialView modify the HTML DOM structure? 2)Can i use Response.Redirect() in MVC? ...

CSS not being applied with jQuery UI dialog

Hi, I have an MVC view with a Ajax.ActionLink. this.Ajax.ActionLink( "Create Offender", "Create", "ReportOffender", null, new AjaxOptions() { HttpMethod = "GET", UpdateTargetId = "dialog", OnBegin = "function() { $('#dialog').dialog('open'); }" }, new Dictionar...

I am not able to run Asp.Net MVC 2 Application

Hi I am trying an sample application in Asp.Net MVC 2 Application given in http://www.codeproject.com/KB/aspnet/aspnet_mvc_tutorial.aspx But i am getting the error as below Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) coul...

jQuery upload file using jQuery's ajax method (without plugins)

Hello, At moment I want to implement picture upload without using any plug-ins. My upload form looks like this <form action="/Member/UploadPicture" enctype="multipart/form-data" id="uploadform" method="post"> <span> <div class="upload" id="imgUpl"> <h3>Upload profile picture</h3> ...

Running ASP.NET MVC application behind a proxy with different root relative path

I'm having trouble with paths in a ASP.NET MVC application that's running behind a proxy. Our IIS Application root path is for example http://server/MyApp/ meaning that all urls using the application root ("~/",Url.Action("MyAction","MyController")) are resolved to "/MyApp" Now we're running behind a proxy server that forwards all req...

ASP.NET MVC Routes

The following MVC route Page/View/Id would go to the View Method in the Page Controller I would like the following route: /{page-title} So could use a route like this: http://www.mysite.com/This-Is-a-Page How do I configure this, considering This-Is-a-Page might be a controller also? ...

How to load ASP function via jQuery hosted in an ASP.NET MVC project?

I'm upgrading a classic ASP application. This app has a few old unmanaged DLL calls and some complicated logic inside the asp page/function. Is it possible for me to put the .asp file into the ASP.NET MVC app and then load the result using $.get? I try putting the .asp file straight into the Scripts or Models folder but I couldn't load...

Neither IE or Firefox respects the control values that are output

I'm writing a survey designer asp.net mvc. It has buttons to move questions up and down. The buttons post the whole form back and the affected questions are swapped on the server. When the form returns the only thing that is changed are the values for each survey question. Both firefox and IE seem to ignore this change. Nothing is...

Insert dependencies dynamically in View (Javascript and CSS Files)

Friends, I am willing to follow the rules of the W3C where it is recommended that javascript and CSS files should be in individual files and not within the page. Good, following this rule, and not wanting to overload the master page, I would like to embed the dependencies dynamically. So how could I insert the libraries dynamically? I t...

REST for ASP.NET MVC included in MVC 2?

Are the REST for ASP.NET MVC bits automatically included with MVC 2, or do you need to download/install/use the REST for ASP.NET MVC bits separately? Specifically, I'm referring to the REST for ASP.NET MVC download here: http://aspnet.codeplex.com/releases/view/24471#DownloadId=79561 I want to use REST for ASP.NET MVC for the automatic...

What is your prefered way to return XML from an ActionMethod in Asp.net MVC?

I am displaying charts that load the data asynchronously because the searches are the work to fetch the data is quite heavy. The data has to be return as XML to make the chart library happy. My ActionMethods return a ContentResult with the type set as text/xml. I build my Xml using Linq to XML and call ToString. This works fine but it's ...

How can I send a GET request containing a colon, to an ASP.NET MVC2 controller?

This works fine: GET /mvc/Movies/TitleIncludes/Lara%20Croft When I submit a request that contains a colon, like this: GET /mvc/Movies/TitleIncludes/Lara%20Croft:%20Tomb ...it generates a 400 error. The error says ASP.NET detected invalid characters in the URL. If I try url-escaping, the request looks like this: GET /mvc/Movies...

Question and Answers form & controller problem

Hi, I have a Question table and an Answers table linked by questionID (1 to many). I'd like to be able to update both table from the one form. I can easily add a question but to have it also add the answers (into their own recordsets) is causing a headache. how do I set my form up to allow for the answers to be created and also what d...

Asp.Net MVC options for business reporting

I have a need to add business reporting for an application I am working on. I have found very little in the way of support for MVC natively. I would like to get a feedback on tools that people have used, how they used it (native or hybrid) and if possible links to examples demonstrating integration. I'd like to get feedback on use of ...

How do I validate a RadioButton on MVC?

I am using a client side validation and it is starting to get messy, considering I am making a form. With all the textbox and radio button validations, the controller will be overwhelmed. How do I validate and display the error Message for Radio Buttons and multiple textboxes in MVC on the MODEL side? A simplified version of what I ...

Pass data to Master Page with ASP.NET MVC

I have a hybrid ASP.NET WebForms/MVC project. In my Master Page, I have a "menu" User Control and a "footer" User Control. Anyways. I need to pass some data (2 strings) to my "menu" User Control on my Master Page (to select the current tab in my menu navigation, etc.) My views are strongly-typed to my data model. How can I push data...

Strongly typed Html.ActionLink<T>() helper extension from MVC Futures doesn't do well with areas

Hi, I noticed some odd behaviour when using the strongly typed HtmlHelper.ActionLink() extension method from ASP.NET MVC 2 Futures. When I use it to link to a controller in an area I have to use the following attribute on this controller [ActionLinkArea("SomeArea")] It links properly to the actions of the controller located in SomeAr...

can you have both asp.net mvc 1 and 2 installed side by side?

i need to have one project on asp.net mvc 1 but i want to upgrade for another project. is this possible? ...

Routing problem, handling differently online versus local - MVC.net 1.0

I have there lines in my RegisterToutes : routes.MapRoute("Pages3", "{url1}/{url2}/{url3}", MVC.Page.RedirectTo(), new { url1 = "", url2 = "", url3 = "" }); routes.MapRoute("Pages2", "{url1}/{url2}", MVC.Page.RedirectTo(), new { url1 = "", url2 = "", url3 = "" }); routes.MapRoute("Pages1", "{url1}", MVC.Page.RedirectTo(), new { url1 = "...