TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
akshat goel
NA
35
7.4k
use new keyword if hiding was intended error in mvc4
Apr 13 2014 5:18 PM
I have the following code in mvc 4
public ActionResult Profile()
{
var cookie = Request.Cookies["RememberUsername"];
var uname = cookie;
ViewBag.uname = uname;
return View();
}
The compiler is showing the following error:
Warning
1
'MvcApplication16.Controllers.sellerController.Profile()' hides inherited member 'System.Web.Mvc.Controller.Profile'. Use the new keyword if hiding was intended.
c:\users\lenovo\documents\visual studio 2012\Projects\MvcApplication16\Controllers\sellerController.cs
20
29
MvcApplication16
Reply
Answers (
1
)
bind data to dropdownlist in edititemtemplate of gridview
export to excel in asp.net