Click here to Skip to main content
15,942,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created MVC Web API .but its not working when i call my Web-API on other Project .ist working when i used in the same project or in same Domain.please give some solution or suggestion.
thanks in advanced .

1 solution

Temp data: -Helps to maintain data when you move from one controller to other controller or from one action to other action. In other words when you redirect,"tempdata" helps to maintain data between those redirects. It internally uses session variables.

View data: - Helps to maintain data when you move from controller to view.

View Bag: - It’s a dynamic wrapper around view data. When you use "Viewbag" type casting is not required. It uses the dynamic keyword internally.

Session variables: - By using session variables we can maintain data from any entity to any entity.

So as per as your requirement @Temp data is best solution.
Share this answer
vivektiwari97701 26-Jul-13 4:36am    
i am asking About web-API not about communication between Controller and view .i have created Web api project and its not working outside(other) project(domain)....

its just like i have created Web-API and i want to use that API in other website ,Android projects...can u help me on this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900