Opening a aspx page on IFrame in SharePoint online

Hi I m developing an app for SharePoint Online 2013. I want to open a aspx page (from my project ) on a Iframe as follows. 
Default.aspx page as follows 
<button type="button" id ="Button1" name="Button1">Click Me!</button> 
<iframe name ="frame1" id ="frame1"  width="800" height="800" runat="server" ></iframe>
App.JS File as follows 
$(document).ready(function () {
$("#Button1").click(function() {
    redirectPage();
function redirectPage() {
document.getElementById("frame1").src = "/Pages/Default1.aspx";
This is not working can someone please help me. Thanks.
d.n weerasinghe

Hi,
Thank you very much for your reply. I have managed to work it as you mentioned I had to remove the "Runat server".
But Still I cannot display a SharePoint page on a Iframe.
I m tryng to do this
<li><a OnCLICK="document.getElementById('frame1').src = 'https://xxxx-my.sharepoint.com';" >Personal Address</a></li>
Then I get the following error
"To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame"
I have added the following code to mysite.master page on the saharepoint , still now working . Any help please.
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<WebPartPages:AllowFraming  runat="server" __WebPartId="{D6E530AE-958F-4E81-B06F-AA5AC60DFF94}" />
d.n weerasinghe

Similar Messages

  • Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor

    Dear All,
    I am frequently getting following error message on aspx pages on my SharePoint 2007 environment
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer.
    If the problem persists, contact your Web server administrator.
    Upon refreshing and restarting the browser several times, this error message temporarily gone and everything becomes fine. But after some time same error message starts appearing again. Also I have noticed that this error message also appears
    while working with SharePoint Designer 2007.Any clues how to resolve this issue ? 
    Any help in this regard will be greatly appreciated.
    Muhammad Tariq khan

    Hi All,
    As I regenerated the problem (Unable to display this Web Part... ) from the faulty
    user. I experience following error message in the ULS logs...
    Error while executing web part: System.Data.SqlClient.SqlException: Invalid object name 't5_sco'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
    exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler,
    SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()     at System.Data.SqlClient.SqlDataReader.get_MetaData()    
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior,
    Boolean returnStream, Boolean async)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
    behavior)     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior)     at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean& bSucceed)    
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback(String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback,
    ISPDataCallback pSchemaCallback)     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback(String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter
    pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pSchemaCallback)     at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()    
    at Microsoft.SharePoint.WebControls.SPDataSourceView.ConvertToIEnumerableWrappers(SPBaseCollection items, Int32 firstRow, Int32 rowCount, String[] fieldList)     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteSelect(DataSourceSelectArguments
    selectArguments)     at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()    
    at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator(IDataSource datasource, Boolean originalData)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXPathNavigator(String
    viewPath)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform()
    What does this error message mean ?
    Muhammad Tariq khan

  • How to open a aspx page in a sp modal dialog for ipad?

    I have a scenario where I need to open a aspx page, inside a SP Modal Dialog.
    I have created the same and it is working perfectly in every browser except IPAD.
    Is there any different approach needs to be taken if I want to view SP Modal dialog in IPAD?
    Thanks in Advance,
    Arindam

    Hi 
    i think you need to make css change for the same as if there is some rendering issue(cropping )
    http://www.a2zmenu.com/Blogs/sharepoint/SharePoint%202010%20Model%20Dialog.aspx
    or you can use css dialog box and try.
    http://www.codeproject.com/Tips/170049/Pure-HTML-CSS-Modal-Dialog-Box-no-JavaScript
    see if this help
    http://sharepoint.stackexchange.com/questions/121147/making-sp-ui-modaldialog-scrollable-on-mobile
    http://sharepoint.stackexchange.com/questions/121147/making-sp-ui-modaldialog-scrollable-on-mobile
    Regards, Rajendra Singh If a post answers your question, please click Mark As Answer on that ost and Vote as Helpful http://sharepointundefind.wordpress.com/

  • Why won't Firefox 12.0 won't open/load .aspx pages?

    When I am on ancestry.com and researching various genealogy family members. If I right click an ancestor and do "open in new window," instead of opening in Firefox 12.0 (which is set as my default browser) it opens in IE. If I click on the properties of the item(s) I'm opening to see what they are, they say they are ASPX files. Obviously the URL can be opened in Firefox after it's been opened in IE, but not directly with a right-click from Ancestry.com. Why is that? (Note, you may need to be a ancestry.com member to see the info displayed within this URL.)

    If you use the add-on IE Tab or one of its derivatives, can you check whether there is an option that controls this?
    If you just left-click or if you Ctrl+click (open in new tab), do those work normally or do those also launch an IE window?
    The .aspx extension can be used to delivery ordinary web pages, PDFs, or any other kind of file. Firefox generally looks at the content-type sent by the server. Firefox compares the content-type with the list of application handlers to determine how to open it.
    The content-type is invisible in ordinary browsing. You can view it using an add-on, or perhaps more quickly if you use Rex Swain's HTTP viewer tool. After you a logged in to Ancestry, paste the URL into the form on [http://www.rexswain.com/httpview.html] and click the bubble for HEAD then click Submit. On the results page, if you scroll down a bit to the "Receiving Header" section, what Content-Type is listed there?
    With that information, we may be able to find a problem entry here:
    orange Firefox button ''or'' classic Tools menu > Options > Applications

  • Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.

    We unable to display web part. It shows  below error web part error:
    Error while executing web part: System.Xml.XmlException: Root element is missing.     at System.Xml.XmlTextReaderImpl.Throw(Exception e)     at System.Xml.XmlTextReaderImpl.ParseDocumentContent()     at
    Microsoft.SharePoint.WebControls.XmlUrlDataSource.FetchData(String requestUrl)     at Microsoft.SharePoint.WebControls.BaseXmlDataSource.Execute(String request)     at Microsoft.SharePoint.WebControls.BaseXmlDataSource.GetXmlDocument()
        at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXPathNavigator(String
    viewPath)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
    could any one give me solution on this.
    Regards
    Ravi kumar
    ravi sharepoint

    HI 
    I got below error in that webpart.
    5/28/2014 6:21 AM
    w3wp.exe (0x1F04)
    10176
    SharePoint Foundation
    Monitoring
    High
    Leaving Monitored Scope (EnsureListItemsData). Execution Time=38.95746526444
    5/28/2014 7:04 AM
    w3wp.exe (0x1F04)
    10452
    SharePoint Foundation
    General
    High
    The user does not exist or is not unique.
    5/28/2014 7:04 AM
    w3wp.exe (0x1F04)
    10452
    SharePoint Foundation
    Monitoring
    High
    Leaving Monitored Scope (DataBinding DataFormWebPart (MCH Projects View Web Part)). Execution Time=1696.60494560063
    I got below logs message sharepoint log investigation tool.
    Let us know any suggestions on this.
    ravi sharepoint

  • Convert aspx page to PDF

    i want to convert aspx file which is render to the client computer, I want convert that page to PDF on button click.
    Is it possible?
    If Yes, then how.  

    Hi
    Try this tool specified in the blog
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3c7f09a6-50b3-46eb-98cb-9ab45fbcfa1f/convert-aspx-page-into-pdf-in-sharepoint-2007?forum=sharepointdevelopmentlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Missing SharePoint Online Client Tenant Silverlight dll

    I'm trying to find the microsoft.online.sharepoint.client.tenant.silverlight.dll to develop a Silverlight tenant control solution but I can't find it any where. It is mentioned specifically in the documentation: http://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantadministration.tenant(v=office.15).aspx
    I've installed the SharePoint Online Client Components SDK: http://www.microsoft.com/en-us/download/details.aspx?id=42038 but I still don't have the dll.
    Any ideas?

    Hi,
    We are currently looking into this issue and will give you an update as soon as possible.
    Thanks 
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Error on modifying the SharePoint excel services viewer (xlviewer.aspx) page

    I am working on SharePoint 2013 and am following this
    article to modify the xlviewer.aspx page in order to pass into it URL parameters. After following the instruction when I reload the new webpage (MyXLViewer.aspx) I am getting the foll. error:-
    Sorry, something went wrong An error occurred during the compilation of the requested file, or one of its dependencies. 'Microsoft.Office.Excel.WebUI.ExcelWebRendererInternal' does not contain a definition for 'RowsToDisplay' and no extension method 'RowsToDisplay'
    accepting a first argument of type 'Microsoft.Office.Excel.WebUI.ExcelWebRendererInternal' could be found (are you missing a using directive or an assembly reference?) Technical Details
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: db9b709c-966c-80de-156d-15c4b2783b09
    Date and Time: 2/3/2014 5:15:03 PM
    Go back to site
    Can you please try this and replicate and let me know if you are facing the same issue..? Or whether I am doing something wrong here? Foll.
    is the procedure I have followed:-
    Create a copy of XLViewer.aspx which is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS. I named my copy MyXLViewer.aspx. you can try /14/ incase of SharePoint2010..
    Open MyXLViewer.aspx in Notepad and do the following;
    <%@ Page language="C#" Codebehind="XlViewer.aspx.cs" AutoEventWireup="false"... --> Change This To --> <%@ Page language="C#" Codebehind="XlViewer.aspx.cs" AutoEventWireup="true"...
    Placed foll code before head tag closes </head> on
    the page:
    <script runat="server">
    private void Page_Load(object sender, System.EventArgs e)
    if (Request.QueryString["RowsToDisplay"] != null)
    m_excelWebRenderer.RowsToDisplay =
    Int32.Parse(Request.QueryString["RowsToDisplay"]);
    if (Request.QueryString["ColumnsToDisplay"] != null)
    m_excelWebRenderer.ColumnsToDisplay =
    Int32.Parse(Request.QueryString["ColumnsToDisplay"]);
    if (Request.QueryString["ToolbarVisibilityStyle"] != null)
    if (Request.QueryString["ToolbarVisibilityStyle"] == "1")
    m_excelWebRenderer.ToolbarStyle =
    ToolbarVisibilityStyle.FullToolbar;
    else
    m_excelWebRenderer.ToolbarStyle =
    ToolbarVisibilityStyle.None;
    </script>

    Hi,    
    The article you referenced might be applied to SharePoint 2007, however, in SharePoint 2013, the
    RowsToDisplay property and
    ColumnsToDisplay property are no longer supported, so these properties are not guaranteed
    to work as they were in SharePoint 2007.
    If you want to customize the Excel Web Access Web Part, it is recommended to take a look at the two documentations about Excel Web Access Web Part custom properties:
    http://office.microsoft.com/en-001/sharepoint-server-help/excel-web-access-web-part-custom-properties-HA010377893.aspx
    http://office.microsoft.com/en-001/sharepoint-server-help/excel-web-access-web-part-summary-HA010105454.aspx
    Best regards
    Patrick Liang
    TechNet Community Support
    Hello Patrick,
    As I have posted in my question I am interested in customizing the Excel viewer aspx page which opens up when you open an excel book via the document library in SharePoint 2013. The solution you are talking about is to modify the properties of the excel
    web part and this does not answer my question.
    Again, can you tell me if there is any possible way to customize the XLVIEWER.ASPX page sitting in LAYOUTS folder so that I can access certain properties like AllowInteractivity, etc? Or has this been completely discontinued by Microsoft in SharePoint 2013?
    If the RowsToDisplay
    property and ColumnsToDisplay
    property are no longer supported, are there
    any other property that this tag supports?
    We have opened the xlviewer.aspx page from layouts folder and can see the foll. control:
    <Ewa:ExcelWebRendererInternal id="m_excelWebRenderer" runat="server"
    AllowInteractivity="false" AllowPivotSpecificOperations="false"/>
    However, there is no documentation available from Microsoft or any other dev sites on this control/tag. This
    link mentions that the ExcelWebRendererInternal is a totally useless instance.
    I need clarification on this.
    We also tried to edit the "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\ewa.strings.moss.js" file. But, any edits corrupts what is rendered on the right click of the pivot chart/table on xlviewer.aspx
    page.

  • How to open "Dispform.aspx" in new window or tab in SharePoint List item click.

    Hi,
    I have a SharePoint list.It has column name "Description" which is "Multiple lines of Text" and "<label for="onetidAppendOnly">Append Changes to Existing Text" is Yes.</label>
    Now the view showing the Description <label for="onetidAppendOnly"></label>column value as a "View Entries...". while click the view entries. It showing the records in same window. But
    instead of that i want to open the record in New tab / New window as Popup.
    Is it possible?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    The view itself is a Web Part called an XSLT List View Web Part (XLV for short). This Web Part is stored on an ASPX page that is by default associated with a list or library on your site.
    I suggest you can check if the view page is valid, also, you can try to create another view, then redirect to the view page to see if there is xslt in the page.
    Here are some detailed articels for your reference:
    Create a custom list view using SharePoint Designer
    Using SharePoint Designer 2010 to Work with Web Parts
    How to: Customize the Rendering of a Field on a List View
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Prompts to open or save aspx page instead of loading page

    On some ASPX pages (Particularly SharePoint) Firefox prompts me to save or open file with Visual Studio.

    Thanks for the reply. I found the answer. The problem was that I was attempting to configure session state in SharePoint according to Microsofts directions. Turns out that the directions given do not work and actually corrupt your SharePoint environment.
    Thanks again for the assist.

  • ASPX Pages in Sharepoint

    Hi,
    Is there a way from where i can host my published asp .net website in sharepoint using sharepoint designer.
    Thanks, Parth

    Plan to use Page viewer webpart
    http://office.microsoft.com/en-in/windows-sharepoint-services-help/page-viewer-web-part-HA010024045.aspx
    http://office.microsoft.com/en-in/sharepoint-foundation-help/using-the-content-editor-web-part-HA101794745.aspx
    http://stackoverflow.com/questions/2599828/add-already-developed-aspx-page-in-sharepoint-site
    Create a Web Part Page and add a Page Viewer Web Part
    Create a blank page and add a IFRAME using Sharepoint Designer
    If this helped you resolve your issue, please mark it Answered

  • SharePoint Foundation 2010 - StoreMan.aspx page not reporting proper metrics

    The configuration of my farm:
    Sharepoint 2010 Foundation - up to date on all service packs.
    SharePoint Offers an Application Page (_layouts/storman.aspx) which enables the user to view the Size usage of files throughout a Site collection. 
    Currently this page is only referred from within the Site settings. Only those with owner rights can get to the link.  We are planning to set  up the link on an "Admin Dashboard page" so all users can see and use the information to delete
    versions or uneeded documents. It's very handy for this type of reporting.
    The problem is that the numbers shown in the .aspx page do not properly reflect the values shown in the libraries. I'm sure the timer job that runs this report is looking at all versions throughout the portal (even in the recycle bin). This is where I see
    the innacuracy I'm experiencing.  Is there a way to get Storageman.aspx to only run on the files in libraries and ignore the recycle bin? Does anyone have any ideas of how to give users more accurate data on file sizes? Our storage is locally hosted and
    we adhere to a strict data usage policy, yet I'm finding it difficult to enforce without the ability to show users where the "problem children" live.

    HI Shaun,IE11 is having some know issues with the share point.Make sure the IE (Internet Explorer) Version should be 32-bit and not a 64-bit.
    http://expertsharepoint.blogspot.de/2014/08/issues-with-sharepoint-2013-and.html
    Anil Avula[MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Every time I try to access the ASPX pages, the browser doesn't display the pages. Instead, a popup box asks if I want to open or save

    every time I try to access the ASPX pages, the browser doesn't display the pages. Instead, a popup box asks if I want to open or save

    What site is doing this? 99% of the time it is a problem with the headers sent from the web server.

  • Calling External WebService to send data from SharePoint O365 Aspx page

    Hi ,
    There is a Public Website on O365 environment. which has  Apply Now Page on this User enters Name, email and Message and click Submit button., we want to pass these  All three fields data value  to External WebService , Which is
    developed in Asp.Net,
    Please suggest Best approach which will work in SharePoint O365 , to call Webservice and  pass the User entered data.
    Also Share reference code and Links.
    With Regards

    Hi Genius,
    Thanks for posting your query, Kindly browse the below mentioned URLs to get the code for posting data on extranal web Service
    http://blogs.msdn.com/b/sharepointdev/archive/2011/05/12/connecting-to-sharepoint-online-web-services.aspx
    http://blogs.msdn.com/b/cjohnson/archive/2011/05/14/part-2-headless-authentication-with-sharepoint-online-and-the-client-side-object-model.aspx
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Read sharepoint list items and display it inside a div in aspx page

    So I have this sample aspx page with this design:
    <div class="column1">Events</div>
    <div class="column2">Details</div>
    <div class="column3">Contact</div>
    Now, I want to dynamically change the words (Events, Details, COntacts) depending on the content of my "Columns" sp list.
    how can I do this?
    ----------------------- Sharepoint Newbie

    Place the label controls in the div tags  like
    <div class="column1">Eventslabel</div>
    <div class="column2">Detailslabel</div>
    <div class="column3">Contactlabel</div>
     public void ReadList() {  
      // Use using to make sure resources are released properly  
      using(SPSite oSite = new SPSite(pathToSite)) {  
        using(SPWeb oWeb = oSite.AllWebs[nameOfWeb]) {   
          // Alternately you can use oSite.RootWeb if you want to access the main site  
          SPList oList = oWeb.Lists[listName];  // The display name, ie. "Calendar"  
          foreach(SPListItem oItem in oList.Items) {  
            // Access each item in the list...  
           //Bind the values to label
            // etc....  

Maybe you are looking for

  • BT HomeHub3 compatibility issues with HP printers?

    Our HP Photosmart printer is connected to our wireless network, but despite the printer itself saying it has got a good signal and is connected to the correct home network, none of the computers in the house (2 Mac laptops on Mountain Lion and a PC r

  • Why clips copied not linked in 10.1?

    I am confused by the media handling of FCPX 10.1. Goal: On the one hand a library on disk-1 containing the project, on the other hand disk-2 containing the event with the clips. But when I procees with this, the original media are copied into the pro

  • Ethernet problems installing Solaris 10 on Ultra 5

    I am trying to install on a Sun Sparc Ultra 5 which I have inherited. The machine booted up OK with Solaris 7 with the old user's set up, but I do not have his ids or passwords. When I try to install Solaris 10, early in the boot it comes up with "at

  • My multi-touch screen is not working

    Please help me!!! My first line, which has the:Phone, Mail, Safari and iPod is not working. I tried everything on aplle's webpage, but is still not working. Please help me!!! There are also 2 small spots, one blue and one red.

  • S/PDIF stopped working (ALC269)

    Hi, I've came to my parents' house for christmass and wanted to play some HD movies from my laptop with S/PDIF. I've got a Lenovo U330 with two cards: Realtek ALC269 ATI HDMI (catalyst) Kernel is 2.6.31 and alsa-lib is 1.0.21a. Now, it DID work some