Quantcast
Channel: Andrey Shchekin's Blog - Latest Comments
Browsing all 50 articles
Browse latest View live
↧

Re: Multiple submit buttons with ASP.NET MVC: final solution

Make sure you are setting the type to type="button" otherwise it will submit the form.

View Article


Re: Custom mapping for NHibernate.Search

perfect ! for me i had to modify the code a little bit: private FieldMapping MapField<t,r>(Expression<func<t, r="">> propertyReference) { var property =...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

@David - consider using PRG pattern.

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Hi im a new user  for MVC4.How I will add Cancel button in JSON register form.Once i will click the Cancel  button it will goes to Homepage.AnyOne help me for this...My code...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

You can expose a property instead of hardcode a default action name like "Action". Using as  [HttpParamAction(Name="Action")]public ActionResult ...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

Very useful.  Thanks for sharing!

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

 I have resharper installed and when I use "BeginForm("Action" ...", I also get an error but it's an error that don't prevent the compiler to build the application. For this reason, I put a dummy...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Your using HTML.Begin Form statement does not work. You aren't specifying a controller name nor are you specifying a valid action, so how does it work?What am I missing?My controller name is:...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

Interesting. If you return View(), yes, it might assume the View name is Action.Try to specify the view name explicitly (or do a redirect).

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

What do you mean by specify the view name explicitly? Specify Action as a view?Yes, I am returning a view. Any chance you would put together a sample project with this functionality working?I don't...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

If you do not want to do a redirect, try returning View("YourViewName") while making sure view YourViewName exists.If you just call View() without specifying view name it may assume your want a view...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

+1

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

One of the best and most inspirational articles I have read in a long time! Saved me hours of work and presents a beautiful solution! Suggest adding alternative constructors to HttpParamActionAttribute...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

Really good, although I added a data-action for the standard action as well, as I'm using Ajax.BeginForm

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

It worked for mehttp://www.mixedresponse.com/B...

View Article


Re: Evaluating Javascript in WatiN

The WatiN API has changed and the above code does not work without some changes. I made some small modifications and enhancements here:https://gist.github.com/pagebr...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Thank you Andrey,This solved my problem perfectly.

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

Hi,I am getting below error"An item with the same key has already been added" when i was calling that controller after an event

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Great solution! Thanks so much!

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

It's not working in mvc 3. With the razor framework The action name should the view page name right

View Article
Browsing all 50 articles
Browse latest View live