Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

tegegn seyfe
More...

Forums » .NET » ASP.Net MVC »

Call multiple function in one view in MVC razor


Posted Date: 19 Jun 2012      Posted By:: divya     Member Level: Gold    Member Rank: 366     Points: 5   Responses: 2



Hi friends,
I have a view page, Post.cshtml. And I have two ActionResult action methods one is list a corresponding post detail 'PostDetails()' and InsertComment() to insert the comments to the database.

On Post.cshtml page load, I want to get the details of a particular post on page load and insert a text area field to database while hitting a submit button. while I try to call the function insetComment() the function is not firing it only go through the 'PostDetails()' function. What is the best way to implement this in ASP.Net MVC using Razor? I am pretty new to MVC3 and Razor. I am guessing there must be a better way to do this? Can any one please help me to solve this issue.

Thanks
Divya




Responses

#678226    Author: Rajasekar.K      Member Level: Silver      Member Rank: 417     Date: 30/Jun/2012   Rating: 2 out of 52 out of 5     Points: 2

HI Divya,




use this link,


http://www.codeproject.com/Articles/375182/Learn-MVC-Model-view-controller-Step-by-Step-in-7d


I have attached file below , download it,


Regards
Rajasekar.K
9710638424



JQueryMVC1.zip
 
#678230    Author: Rameshwar      Member Level: Silver      Member Rank: 623     Date: 30/Jun/2012   Rating: 2 out of 52 out of 5     Points: 2

You can get the details about your query .Kindly refer below link

http://www.codeproject.com/Articles/375182/Learn-MVC-Model-view-controller-Step-by-Step-in-7d


I am sure you will definitely get solution.

Regards

Rameshwar



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : How to Create Dynamic BreadCrumb In MVC4
Previous : Infopath 2010 and MVC3 Integration
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.