Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Need to display email id in login page.

when the Login view is called from different controller

What I have tried:

C#
public ActionResult displayemailid(string email)
       {
           employeed.signininput m = new employeed.signininput();
           m.Email = email;
           return View("Login",new { email=email});

       }
Posted
Updated 21-Dec-16 21:43pm
Comments
Member 12779444 22-Dec-16 3:51am    
How to bind view viewbag value to model in view
Thomas Nielsen - getCore 22-Dec-16 5:01am    
For instance http://stackoverflow.com/questions/9832974/how-can-i-use-viewbag-in-the-view

1 solution

Put it in the viewbag before calling return view
ViewBag in ASP.NET MVC[^]
 
Share this answer
 
Comments
Member 12779444 22-Dec-16 3:52am    
How to bind viewbag value to model in view
Member 12779444 22-Dec-16 4:19am    
can you please tel me how to bind viebag vale to model property in view

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