Ok Here is the exact scenario:
I have a view named Index I have a partial view (user control) named SayHi I have an AdminController which has an Action named SayHi which doesn't do anything else
ViewData["Message"] = "Hi There!";
I am using ajax to load partial views from the Index.aspx so when I have the followinf url > http://localhost/Index#Sayhi sayhi partial view is called.
So all I need now is how in the controller to return this address I can't use View("Index#Sayhi") And also if I use the RedirectUrl("index#sayhi") I lose the ViewData.
Please any help is appreciated Thanks in advance.