I am working with sharepoint sandbox solution in which I have added visual webpart(sandboxed). My requirement is to add a normal .aspx page to the project and deploy to sharepoint. I have followed the table below.
Add Module to project and given path of site style library
rename sample.txt to sample.aspx
and in source page of aspx page I have written general html code like below
<%@ Page Language="C#" AutoEventWireup="true" Inherits="sample" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> </div> </form> </body> </html>
In the code above sample is the class name. I have added a class file with the name of sample.cs.
I deploy the solution to sharepoint. But accessing the file sample.aspx from the url by navigating to style library will give error.
Can anyone suggest me how can I deploy .aspx pages to sharepoint using sandboxed solution?