Saturday, January 01, 2011

ASP.NET MVC 2 common problems while develope a View

ASP.NET MVC 2 common problems and solutions
While working with MVC2 with ASP.Net, I faced couples of problem while developing the View form, some of those are below
1)      Multiple submit button on the same page
2)      How to make Default Button
3)      How to add Image on the Submit Button
4)      Validation Control on ASP.Net MVC 2
5)      How to add Image with the validation message
After spending couple of hours I got good links where you get all these solution
How to put multiple submit button on the same page
When you have one web page having couples of action then you need multiple buttons on the same page and each button has different ResultAction, Find solution here
How to make Default Button in ASP.Net MVC View
When you have multiple button and out of that you want to make one button as default, Find solution here
How Image button works like page Submit button in ASP.Net MVC View
When you have a requirement to put Image on the page submit button and have multiple submit button on same page. The main problem is Image button will not work like Submit button then how to put image on the submit button. I tied following solution and it works for me , Find solution here
Validation Control on ASP.Net MVC 2
When you have to implements validation control in your ASP.Net MVC 2 web form then I found very good article about this, How to use validation control in ASP.Net MVC 2, Find Solution here
Add image with validation message
You have validation message and with the validation message your requirement to add Image (like: alert, explanation image etc.), then you can find the solution from here

No comments: