asp.net mvc - Why does MVC look for .aspx and .ascx for both full and partial views? -
I am just facing a problem where I have a view (FindUser.aspx) that provides a partial view Trying (FindUser.ascx). The default search path for views looks for files in the name of different folders. Surprisingly, for ideas, this file appears with the extension of .aspx or .ascx and partial views use the same list.
Because the two files have got the same name, the visual resolution often gets the page first and falls into the endless loop.
> I know that I either change partial views for .aspx and .comx for partial views either by calling different names in visual and partial views or by changing their search locations. I can fix it.
My question is why does MVC miss out on both expansions? It is more understandable that one scene == one page == .aspx and partial view == one control == .ascx why is the water so filthy?
Partial or not, a scene is still similar to two regular views with the same name as FindUser.aspx and FindUser.ascx. .
Comments
Post a Comment