Top Solutions

How to pass multiple parameters to a POST method using jQuery Ajax in asp.net MVC?

In this article we will discuss to pass multiple parameters from Ajax post call in asp.net MVC application. Before I have faced issues with jQuery ajax post call to a controller with multiple parameter due to syntax errors. Now I have found a way by passing JSON stringifyed Object to a [HttpPost] method.

[Solved] CS1003: Syntax error, '>' expected

When I run the application I got error “CS1003: Syntax error, '>' expected”. After that I realized the mistake because of semicolon (;) I put after the model class in the Index.cshtml view “@model MVC_tutorials.Models.Document;”

How to fire an event after complete page load using jquery?

I was in a situation want to load the page after the page contents are loaded I would like to call a function. This was achieved by using $(window).bind().Below example code I will show you how to implement.we should call it inside the $(document).ready() function.

How to trigger an event on pageload using buttonId in jquery?

When I have bind html text in text editor on pageload but that time design is not working fine because of nbsp; after I removed. I need to load the page without clicking the button. Finally I found solution to trigger the button event in jquery using trigger method(). Below example just I will show you how to trigger the button event.