I'm in a situation where I'm being given a dataset to output to an MVC view. I'm really struggling to figure out how to get the modelbinder to pick it up on the way back in after a submit. I have something like this...
public ActionResult TestData()
{
DataSet data = new DataSet("DS");
DataTable table = new DataTable("DT");
...
Hi,
I have an existing RDL report that I want to convert to an RDLC report for use in an MVC application.
According the the MSDN Site the way to convert it is to rename the .rdl file to .rdlc, include it in the project and then use a ReportViewer control to select the datasource.
Being MVC I don't have a ReportViewer control on my pa...
I have controller action which returns JsonResult and is consumed by jquery ajax get request. All works well on my well my dev machine but when copied on production hosting I get below exception on last line controller action:
[AcceptVerbs(HttpVerbs.Get)]
public JsonResult Single(int UNIQUE_NO) {
...
return Json(data, JsonRequestBeh...
I cannot get the current build of T4MVC (2.6.02) to work with an ASP.NET MVC 2 project compiled against .NET 4 in VS2010 Beta 2.
There is one error:
The C# 2.0 and C# 3.5 compilers are no longer supported. Templates will always be compiled with the version 4 compiler instead of 'v3.5' as specified.
Which is easily fixed by changing
...
This sounds like a contradiction in terms, or flamebait, but I'm hoping its not actually.
Background:
I need to maintain a few preferences across the entirety of a user's log in. These preferences mostly affect how something is viewed, although they may be passed to the controller layer to accomplish this. At no time should any of t...
I have a custom Membership and Role Provider that I am setting up within an application. In ASP .Net Webforms I utilize the same providers and when the app is compiled and run the providers are initialized because of the references in the web.config.
When I move this to MVC and put break points in my "Initialize" methods for these cl...
I'm more or less aiming for the below, using the tutorial at http://roshanbh.com.np/2008/07/top-floating-message-box-using-jquery.html, however, I'd like to take it one step further.
My bar will more or less work like SO's does when you have responses to a question. The idea is that mine will display something along the lines of "The ...
Hi, I'm trying to clear an ajax form after an item has been added to the database however the OnComplete and OnSuccess AjaxOptions get called before the form is submitted. How can I get it so the form is submitted first and the the OnComplete is called.
<% using (Ajax.BeginForm("AddTable", new AjaxOptions
...
I have a single view that handles a lot of Models of type VoyagesViewModel, in that view the user can create a new voyage or edit all the active voyages, so i have different instances of the same object type in that view.
each form contains something like:
<% = Html.Hidden("Voyages["+ i +"].VoyageDetails[" + i2 + "].Id", location.Id)%>
...
I apologize if this has been asked before, but I haven't quite found the specific question I have in my head.
For the website I am building (using ASP.NET MVC) - performance is an important feature. Also, there is a chance that the site could be hosted in an environment where the Application Pool gets recycled every 20 minutes (or soone...
Has anyone tried using ASP.NET MVC's WebForms view engine to do code generaiton? I know it's a vague question, but I was thinking it would be nifty if I could do something like this from the command line:
asp-net-mvc-codegen.exe entity?tablename=customer >> Customer.cs
Which would in turn start up Cassini, GET the URL in question and...
FileHelpers.dll (2.0) are referenced within 2 class libraryies (Dto and Services) in my solution
My webapp (asp.net mvc) is on IIS7 (Full Trust) Windows 7 PRO 64 and I sometimes get this exception when starting my app from VS2008:
(to get rid of it I delete the FileHelpers.dll from bin, run, close browser, rebuild the solution and run ag...
I'm working on an ASP.NET MVC site and part of my requirements are that users are able to message eachother.
On the surface this isn't that hard of a task. Messaging in its most simplified form is simply a "Messages" table with things like, "SenderID, ReceiversID(FK), Subject, Message", etc.
However, how would you handle "attachments"...
In my asp.net mvc site, I'm loading flash files using swfobject. These files work fine, locally, using Visual Studio 2008 server (F5). But, when deployed to the Test server, they don't load at all. My routing table looks like this:
routes.MapRoute(
"Default",
"{controller}.aspx/{action}/{id}/{title}",
new {controller = "Ho...
I'd like to give users the ability to search through a large list of businesses, but still find near matches.
Does anyone have any recommendations on how best to go about this when you're not targeting simple dictionary words, but instead complex names like ABC Business Name?
Regards.
...
I'm running into an issue when posting a form back from different views... I'm using the same form and it will work in one view, but not the other. When it errors in the post, the parameter will pass as null. This is my form:
<% using (Html.BeginForm()) { %>
<table>
<tr>
<td colspan="4" style="line-height:20px;...
I was told that I can create ActionResult in any Controller and return PartialView with User.Identity.Name. I can then RenderPartialView in my MasterPage in order to display the user's name. I was trying to implement it, but kept getting an error that the system is not seeing my PartialView. Can someone please please explain in detail ho...
running asp.net mvc on iis6, do I need to install anything on the server?
or can I just drop the .dll's in the /bin (system.web.mvc/routing/etc)
...
Hello
Is there anyway to customize only the client side code validation generated by the EnableClientValidation?
I have some forms Ajax Submited with Jquery being client side validated with jquery validation and in the submitHandler i post the form.
I want to create a helper to write my own client side validation, but i have no idea o...
Hi,
I have a new app that I am starting tomorrow based on SubSonic3 (ActiveRecord) and ASP.NET MVC. In thinking through how to organize the models layer, I know I'd like to extend most if not all of the models and add functionality (like virtual attributes, etc.) in a similar way that I do now with Rails.
I've used SS2 in the past but ...