Search

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

Matching Posts

  • LinkExtensions.ActionLink() broken with Virtual path

    Invalid URL generated by ActionLink() when Virtual path is not "/" 1. Create a MVC web application with the default template 2. One line is generated at Site.Master <li><%= Html.ActionLink("About", "About", "Home")%></li> 3. The generated URL is http://localhost:58261/Home/About which works 4. Go to Web project's Properties -> Web, change Virtual path from "/" to "/broken/" 5. Now the generated URL is http://localhost
    Posted to ASP.NET MVC (Forum) by canton on 1/29/2009
  • Re: DropDownList value not post back in ajax form

    Guess I should elaborate a bit. There are 3 DropDownLists in the example. 1. Showing a normal, non-ajax "post back" as a control test case 2. Showing a standard ajax form 3. Showing an ajax form with a hacked DropDownList This serves 2 purposes 1. Is it my own problem? Or many of us can repeat this problem? 2. Is there an official fix/workaround for this?
    Posted to ASP.NET MVC (Forum) by canton on 11/6/2008
  • DropDownList value not post back in ajax form

    I encountered a bug with ajax form with DropDownList. The selected value in DropDownList can't be posted to web server. This bug only appears in IE (mine is 7.0.5730.11), but not in FF / chrome. Here is the sample code // *************** CONTROLLER *************** public ActionResult Test(int? page) { return View(); } // *************** CONTROLLER *************** <!-- *************** VIEW *************** --> <html> <script src="<%= Url.Content("~/Scripts/MicrosoftAjax
    Posted to ASP.NET MVC (Forum) by canton on 11/6/2008
    Filed under: bugs
  • Parameters were reordered in BeginForm()

    In the process of migrating from MVC Preview 5 to Beta, I discovered an API change that bugs me a lot. public static IDisposable Form(this HtmlHelper helper, string controllerName, string actionName) was changed to public static MvcForm BeginForm(this HtmlHelper htmlHelper, string actionName, string controllerName) Notice that the position of controllerName and actionName got interchanged. This can't be detected by compiler, and must be fixed manually. I understand this is more consistent to
    Posted to ASP.NET MVC (Forum) by canton on 10/17/2008
Page 1 of 1 (4 items)