I have an iframe and the source is a controller action method. This action method needs to return an HTML page (which has css, js files as external resources).
I am doing this because the url of the HTML file should never be known to outside world.
Is this possible? Is there anything we can do in routing level.
Would returning a ContentResult be what you are looking for? Then all you need to do is put the contents of the HTML file as the
Content, set theContentTypeandContentEncodingas appropriate and return that.