Search

You searched for the word(s): userid:653652

Matching Posts

  • EmptyResult, Cassini and status code 12030

    Greetings, Using MVC 1.0 I just ran into this, not sure what's going on, but figured I'd post in case someone else has a similar problem. I'm using Ajax.BeginForm() to call a controller method that returns an EmptyResult. Using Cassini, am recieving either status 12030 or 12031 - seems to be random. Strangely, if I put a breakpoint on return new EmptyResult(), things work fine. Using IIS, the issue goes away. The problem with Cassini persists after reboot (when in doubt...). Regards,
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 12/1/2009
  • Re: EmptyResult, Cassini and status code 12030

    Thanks for the reply, Eilon. Good call. Works as one would expect with Firefox 3.5 (sorry didn't mention the issue is with IE 7). Also works fine with an empty ContentResult - that'll work for me. As for the intent, I just don't need to return anything. My requirement is to launch some other long running process (a third party .exe). Anyway, empty ContentResult works - thanks! Regards, Mike
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 12/1/2009
  • Re: EmptyResult, Cassini and status code 12030

    Well, I take that back. empty ContentResult did work - and then it didn't - again only with IE 7 and Cassini. No doubt there's some evil juju going on here. Same bizarreness where if I put a breakpoint on return Content(string.empty) it works fine. And works fine under IIS. I don't get how the XMLHttpRequest comes into play there. Anyway, the one thing that does work consistently is to return a ViewResult - I'm not doing anything with it, but whatever.
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 12/1/2009
  • Re: Change Connectionstring of Linq to SQL classes by Code

    I'm going to guess your "dbase" session item isn't initialized, try debugging that. Your other error seems like a bad connection string - can you post what you're using? Note also that you can set the connection string in the constructor of the DataContext. Regards, Mike
  • Re: Ajax.Actionlink problem - jQuery not executed

    Check out the other AjaxOptions members - http://msdn.microsoft.com/en-us/library/system.web.mvc.ajax.ajaxoptions_members.aspx Try calling some javaScript on OnSuccess to do your jQuery stuff. It's how I've done it anyway.
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 9/18/2009
  • Re: Selected Value from Html.DropdownList

    Hi Nizam, When I say model binding, I mean MVC's model binding. Google for "mvc model binding" for explanations - it works in a few ways. For an example, in one app my GET controller method has a line like this: ViewData["Q1RiskCode"] = new SelectList(_repository.GetRisks(), "RiskPK", "RiskCode", forecasts[0].RiskCodeFK); In my view, the drop down list is: <%= Html.DropDownList("Q1RiskCode")%> Then my POST controller method looks like: public
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 9/17/2009
  • Re: Selected Value from Html.DropdownList

    If your controller method accepts a string with the same name of your Html.DropDownList, it will be populated with the value (model binding). You can also pull it out of the form collection.
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 9/16/2009
  • Re: [MVC2 P1] This exception should never occur.

    Search this forum for " This exception should never occur" - apparently it's fixed in preview 2.
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 9/15/2009
  • Re: AJAX Common Popup Data Provider (should be a simple question)

    If I'm reading you right, I'm doing something similar, so I just thought I'd throw out what that is. I have a dialog that I use for comments, the comment is tied to the master record. The controller returns a PartialView. In the app, the user clicks a link, which is created by Ajax.ActionLink. The action link's AjaxOptions specifies the html div to put the results. It also specifies the JavaScript function to call via OnSuccess, which uses jQuery to fade in the div.
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 9/14/2009
  • Re: OT? Image from action in ReportViewer

    Thanks for the reply. That's a good article for MVS with IIS 6. FWIW, this is not the problem I'm experiencing, as on another box with IIS 6, things run fine. So it's something on that one box, just haven't tracked it down yet. Failures audits in the event log are a clue. Also, the IIS 6 box that works has Windows Server 2003 SP2 applied, the one that doesn't has 2003 SP1. Working with my company to get SP2 on that machine - I'll post back if that's a fix. Regards, Mike
    Posted to ASP.NET MVC (Forum) by Mike Hildner on 9/14/2009
Page 1 of 5 (43 items) 1 2 3 4 5 Next >