how to add a new page in mvc3 with razor

Posted by Pramodthakur under Others on 4/10/2012 | Points: 10 | Views : 2664 | Status : [Member] | Replies : 2
hi i m new in mvc..

i hv created an application in mvc3 wid razor. on logon page i have just add a hyperlink @Html.ActionLink("Log On", "Welcome", "Account")
and den created a layout in shared folder and a view in account folder.
Now my question is wat should url make wen i click on href.
wen i write the following url in address bar its generating error "The resource cannot be found."
http://localhost:56462/Account/welcome

Plz help me

tnx in adv




Responses

Posted by: Mani5155 on: 4/10/2012 [Member] Starter | Points: 25

Up
0
Down
two step you want to perform
1. add account folder inside view folder (in solution explorer by right click on view->add->new folder rename as account )
2. then right click account folder add->view name as welcome select view engine as Razor

Top Forums Authors
Sun, 24-Sep-2017 Authors
All Time Authors
Jayakumars
6040
Karthikanbarasan
3455
Oswaldlily
3300

Latest members | More ...


(Statistics delayed by 5 minutes)
Advertisements