Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
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
Tweet
Responses
#678226 Author:
Rajasekar.K
Member Level:
Silver
Member Rank:
417
Date: 30/Jun/2012 Rating:
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:
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
.
Tweet
Next :
How to Create Dynamic BreadCrumb In MVC4
Previous :
Infopath 2010 and MVC3 Integration
Return to Discussion Forum
Post New Message
Category:
Related Messages
ASP.NET MVC Framework
How to merge an ASP.NET website with MVC web application
Public site using Asp.net MVC
Calling asp.net mvc action method using jquery post method expires the session
What is relation or difference between MVC and N-Tier Architecture
Active Members
Today
Anil Kumar ...
(34)
Padma
(33)
Asheej T K
(19)
Last 7 Days
baskar
(326)
Asheej T K
(170)
Ultimaterengan
(169)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds