asp.net-mvc

Migrating technologies: PHP+MySQL -> ASP.NET MVC+MS SQL 2008

I have a completed web app in PHP 5 + MySQL. I have not yet started its conversion, but it will migrate to ASP.NET MVC + MS SQL 2008. I'm not sure how to progress for the easiest transition: Edit the PHP DAL for SQL Server. Migrate to the new db immediately Leave the live code alone. Create ASP.NET MVC with a MySQL DAL to use for now. ...

Is This Unexpected Behavior for the CheckBox HtmlHelper?

My view page contains a search-by-example form with the following checkbox code: <td> <label for="HasProcessErrors">Has Errors:</label> <%= Html.CheckBox("HasProcessErrors", crit.HasProcessErrors) %> </td> The crit object HasProcessErrors property is a boolean whose initial value is false. When I view the source of my rendered page, ...

ASP.NET MVC Ajax.BeginForm eats params of submit button clicked. Looks like bug.

If you are using Ajax.BeginForm() with multiple submit buttons similar to this: // View.aspx <% using (Ajax.BeginForm("Action", "Controller", new AjaxOptions { UpdateTargetId = "MyControl", })) { %> <span id="MyControl"> <% Html.RenderPartial("MyControl"); %> </span> <% } %> //MyControl.ascx <%@ Control Lang...

ASP.NET MVC: How to render a partial view on all but one view?

I have a partial view/user control called LogOnUserControl which I display in a side bar on my site (defined in Site.Master). I also have a separate LogOn view, which also renders the LogOnUserControl. I don't want two instances of the LogOnUserControl in the LogOn view, because it's just plain confusing, so my current thinking is to...

asp.net MVC - reset the value of textarea after form submition

I want to send a message to userID=3 by going to /MyController/Message/3 This executes Message() [get] action, I enter some text in the text area and click on Save to post the form Message() [post] action saves the changes, resets the value of SomeText to empty string and returns to the view. At this point I expect the text area to be...

Can an asp.net mvc application also have a web service?

I have an asp.net mvc application and now I need to add a web service to go along with it. What is the best solution for this? Just create a new web service project and add it to my solution then deploy it to the same web server using a different url? I would like it to be a part of the mvc application only because I have all my datab...

Firebug debugging issues

Hi, I am trying to debug a MVC app that uses JQuery. Firstly I have version 1.3.3 of Firebug and I have set the Break on All Errors option and have added a deliberate error but it is not breaking on the error. Secondly after I have activated something that has a javascript function and put breakpoint in and then let it continue, it th...

asp.net mvc as a restful service and an application?

Hi all, Currently I am working on small application in asp.net mvc. It is a some kind of localization tool. Our clients login on our application and they can translate terms that shows up in our applications that they use. It is happens like this: login to localization site find and translate certain terms for example title for button...

Extending a member profile with two further layers - asp.net mvc

Hi, both a newbie to stackoverflow and also a newbie to the world of C# and ASP.NET MVC (lots of learning at the moment!) but an experienced web developer. So I have a modelling question related to profiles. Firstly, I have looked into using the SQLTableProvider and using the in built profiling system but didn't feel they were suitab...

FCKEditor in asp.net-mvc

How to add FCKEditor in MVC application? How to show database value comes in model, in FCKEditor? ...

How to localize ASP.NET MVC + Spark application?

I'm using the Spark view engine, and want to localize the website. The methods described for 'conventional' MVC view engine do not work. Has anyone done this already? Any help would be appreciated. ...

How to put Mask in textbox?

Application is asp.net MVC. I want to put a textbox for date using mask. Please refer This ajax controls for getting exact idea. ...

HTML.Encode localization with ASP.NET MVC

How can I escape localized string encoding: <%= Html.Encode("ÆØÅ") %> from rendering &#198;&#216;&#197; is there another way to encode localized strings? ...

ASP.NET - MVC Routing - Different link in development than in hosting environment.

In my website which is hosted by GoDaddy, I'm seeing slightly different behavior in how my URLs are being generated. In my development environment, the page loads just fine, but on the GoDaddy servers, a page cannot be found message is appearing. Rather than http://www.rsolberg.com/PhotoAlbums/ I am getting http://www.rsolberg.com/rsol...

ASP.NET MVC dropdownlist

Can someone point me to an article that shows the dropdownlist being populated from linq to sql (text and value being set). Thanks Danny ...

Render View (or Partial) In another project?

Hello, i have a solution with the following two projects - MyNamespace.Services and MyNamespace.Web. Web contains a MVC web application. In the Service project i have a EmailService class that takes care of sending out emails to the user. I want to use either a partial or a view (ascx or aspx) for email templates. I have found severa...

ASP.NET MVC and jQuery with TempData

I have a link in one of my views that users can click that calls an ActionResult. The link is like so: <a class="do_something" href="#">lorem ipsum</a> I then have some javascript that posts to the ActionResult (there is no data passed to the ActionResult) like so: $("a.do_something").click(function() { var urltopost = "/foo"; ...

Accessing the list of Controllers/Actions in an ASP.NET MVC application

We know that behind the scenes, the ASP.NET MVC framework will use reflection to determine what controllers/actions are available to be executed, based on which classes derive from System.Web.Mvc.Controller and, of those classes, which methods return an ActionResult object. To my question - is it possible to access this list of control...

ASP.NET, MVC and Dynamic Data

Will ASP.NET MVC ever support Dynamic Data or some other means of scaffolding? I know MVC web apps support scaffolding CRUD pages from linq contexts (and entities too I think). ...

Convert website from webforms to asp.net mvc

I have a webforms website and i would like to convert it to asp.net mvc. Mostly as a learning exercise. What is the best way to start here? ...