Question MVC; Displaying a view in an iframe

keziaandeden

Member
Joined
Apr 20, 2013
Messages
5
Programming Experience
3-5
Hi All

I', fairly new at mvc. Im trying to display a view in an iframe, but cant seem to find solution. My home page is called "index.aspx" view and is located in the views folder. I have hyperlinks available on left of this page together with the iframe on the right. I'm trying to display the view called "mystory.aspx" to the iframe which is also located in the views folder.I'm error "page not found ". Please help.
 
Hi jm

Thank you for your reply. I have a Controller in the "Controllers" folder. I've listed the code below.

Public Class HomeController
Inherits System.Web.Mvc.Controller
Function mystory() As ActionResult


Return View()


End Function
Function Index() As ActionResult
Return View()
End Function
end class

Index.aspx code.

<a href="mystory.aspx" target="main">My Story</a>. This is probably the error. ( i had no luck getting the code)

mystory.aspx code.
Has a basic html text
To test the website i enter the below url, it calls the home controller which turn calls the index view.
http://localhost:59574/Home/Index
 
Back
Top