I’m touching an old WebForms project but I’m long gone from it and I’m now to used to MVC. I’m trying to refractor the project and come up with a simple issue that is making me crazy…
What would be the best way to include an .aspx file within another?
I don’t want to end up having a lot of Master Files just for this, all I’m after is something like @Html.RenderPartial("MyFileName") kind’a thingy or
it’s that hard to include a file in some existing files?
Use
UserControlTutorial on UserControl. They are files with.ascxextension and you can include them in your pagesInclude it in your
.aspxpage