(#19) Conventional Routing in MVC 5 | mvc tutorial for beginners in .net c#

preview_player
Показать описание
Follow us on:👇
Рекомендации по теме
Комментарии
Автор

Excellent tutorial, you elaborated every point thank you Sir!!

jayamalaraut
Автор

excellent ..everything is clear..no doubts

sanchi
Автор

Super like for this video. To the point explanation along with good example.

vj
Автор

God bless u man, it's really helpful

shikhatiwari
Автор

constraint is not told ...it is giving same error even after put regular expression to id so explain that part or give reply to my doubt please ....

raghavendraponde
Автор

InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.Func`1[System.Collections.Generic.List`1[TraditionalRouting.Models.Student]]', but this ViewDataDictionary instance requires a model item of type
Sir ye Error aa rahi h

JaiSingh-cl
Автор

"The model item passed into the dictionary is of type 'TraditionalRouting.Models.Student', but this dictionary requires a model item of type can you tell me why this error is showing while i am running this code..

bibhasmondal
Автор

Sir could you please give us StudentsController.cs folder code ..I don't know why I'm following exactly your pattern but still in Controller Students it will throw error after providing the package name using but itt will not access the address..

saubhagyasrivastav
Автор

Those who are getting error in GetStudentAddress. Change your model class in View from Student to Address. Then it will work.

buntyrajput
Автор

good explanation sir..i got clear about it..Thank u sir..

rimamahapatra
Автор

hello sir, I am grateful to you. sir aap postman se API controllers kaise test krneka wo bhi video bana do

pratikshakharpude
Автор

in private method we make student list and in every list we add student address also, then why address it show in student details..???
kindly help me out in this confusion

arsalankhan
Автор

bus ik baat ka afsoos hai nae linq tutorials english mai banaye ap urdu mai banaty tou buht acha rehta....

AliKhan-uiin
Автор

Sir 19th part me jo aapne views add kiye usme red line error show ho rahi hai

TejasBadgujar
Автор

Database k sath best huta agar use krte tu

MuhammadAdnan-gxrd
Автор

routes.MapRoute(
name: "AllStudents",
url: "students",
defaults: new { controller = "Student", action = "GetAllStudent" }
);

name: "AllStudents", ka kya faida hai ????)

AliKhan-uiin
Автор

Namaste sir ... Pls help me .. I using route [Route("{I'd}/signup")] .. this route using razor view.. pls guide me

rohin
Автор

Question: What if we have same route for multiple action method?
Ans: it will work, and show the same url but dont know for which action method

routes.Maproute(
name: "Student",
url: "Students",
default: new {controller : "Student", action = "GetAllStudents", id = UrlParameter.Optional}
);


routes.Maproute(
name: "Student",
url: "Students",
default: new {controller : "Student", action = "GetStudent", id = UrlParameter.Optional}
);


Question: What if we have different route for same action method?
Ans: runtime error, System.ArgumentException: 'A route named 'student' is already in the route collection. Route names must be unique.
Parameter name: name'

routes.Maproute(
name: "Student",
url: "Students",
default: new {controller : "Student", action = "GetStudent", id = UrlParameter.Optional}
);

routes.Maproute(
name: "Student",
url: "Students/{id}",
default: new {controller : "Student", action = "GetStudent", id = UrlParameter.Optional}
);

buntyrajput
Автор

How to hide query string while moving to other pages

sasidharan
Автор

constraints: new { id = @"\d+" } not working

syedabidaliabdi
visit shbcf.ru