.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Cannot access pages using /_layouts//.aspx

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint


I have a development server on which we have implemented a number of application pages. We can access these using the url format:

Cannot access pages using http:/<site>/_layouts/<folder>/<page>.aspx

This also works for subsites:

Cannot access pages using http:/<site>/<subsite>/_layouts/<folder>/<page>.aspx


Now I am trying to implement these pages on our production server and I am getting file does not exist errors. Any thoughts on why this might be?

Andrew Wiles - www.it-workplace.com - MDX made simple

View Complete Post

More Related Resource Links

Access Classes in an aspx page that is in folder in asp.net


I have classes in App_Code:
Connection.cs, ClientData.cs ....

I have a folder Authenticated within it have an aspx page Client.aspx

How do I access the page through Client.aspx ClientData.cs the class, because there is a mistake for me to define the class as I do, please help me!

master pages - how to access content page from master page?

Hello,I have a master page setup that is used throughout my site that is basically a header with a menu. I recently added a textbox and a button to this master page which is to be a quick search box that is available anywhere in the site. When a user enters text into the search box and hits the button, I need to load the actual content page which is used to search and show search results (which also uses this same master page), and have the text entered available so the search can be triggered automatically. Again, this search text box and button is now in my master page so it could be  triggered from anywhere in the app... it serves as a convenient way to do a basic search from anywhere in my app, without having to first navigate to the actual 'search page' that already exists.  You can also navigate to the actual search page, which uses the same master page, where there is many more search options.I'm thrown off by the master page arrangement, which I have not used until this project. What do I do?

How to Access Parent Page (.aspx) control (IDs) from its child User Control (.ascx)

I have a parent .aspx page that has a asp:panel control in it, and this parent .aspx is also referencing a user control that I registered in that .aspx. Lets just call it usercontrolA.ascx for this post.The user control has a radiobuttonlist itself.Based on a selection from the radiotbuttonlist in the user control, I want to be able to hide the asp:panel in my .aspx (parent) but unfortunately I cant' get it to work:parentPanel.visible = true;  <<< I trried this in usercontrolA.ascx.csBut the user control doesn't know about the panel in the parent .aspxSo do I need to expose that somehow from the parent so that I can access it from the code behind of the child .ascx?  How?

Error: Access Denied on default.aspx and other pages of existing and new sites

Hi, since today we can't access the project portals of all our projects (Visual Studio TFS 2008/sharepoint admin 3.0 running on esx 4.0). I already checked every possible security settings, they're all OK. I also tried creating a new site but I can't access the site. I can however access all the settings. For example when I try to access: http://server/Sites/Profel I get the "Error: Access Denied" message and the browser is redirected to http://server/Sites/Profel/_layouts/AccessDenied.aspx?Source=http%3A%2F%2Fserver%2FSites%2FProfel%2Fdefault%2Easpx I have no problem navigating to: http://server/sites/Profel/_layouts/settings.aspx and I can go to al lot of pages, but when I want to create something like a calendar I can specify the parameters but when I click the create button I get the same error. http://server/Sites/Profel/_layouts/AccessDenied.aspx?Source=http%3A%2F%2Fserver%2FSites%2FProfel%2FLists%2Ftest%2Fcalendar%2Easpx&Type=list&name=%7B46CB3B46%2DD0F6%2D47F5%2DBA1A%2D3C9654A24A8E%7D I already tried this: http://support.microsoft.com/kb/926642  http://support.microsoft.com/kb/896861/en-us but no success Any help is welcome, Greetz, Peter

How to associate custom masterpage from 12 hive folder to an ASPX page

scenario: I have a custom masterpage available within 12 hive folder.  I want one of the ASPX pages (say allitems.aspx) to use this masterpage. I see that when I open the ASPX page using SPD, it has default.master but upon changing it to mydefault.master it gives error indicating that file is not found. So question is how to reference custom masterpage in aspx pages? I prefer to do it through visual studio but SPD is also fine.   thanks.

Unable to access default.aspx page


When I was testing the use of some of the web parts available to some user's web page, I created a web part to list the content of some document librabry we have.

When I was editing the web part's <Actual View>, on the "Folders" category I chose the "Show this view" as "Folder of the content type", "Sent Letters" (example).

As soon as I pressed OK I was redirected to the home page of that content type list.

I tried to return to site's the Home Page by pressing the Home Page button and event typing the URL http://servername/default.aspx but I keep being redirected to the document list I chose for the web part.

This only happens to the user wich created the troublelling web part.

How can I reset the home page of that user?

Please help

How to access child(.ascx) page control from parent page(.aspx) javascript


I have functionality to select All check boxes on grid rows.

Child User control is having grid with checkbox to select all rows of grid. I want to select individual cell html from each row when I select all rows when checkbox 'select all' is clicked and place it into textbox which is in Parent page.

This textbox can only be in parent page.

So i need to call child(.ascx) page control from parent page(.aspx) using javascript as follows.

function CheckUncheckChildren(event)
        var childChkBoxes = document.getElementById('<%=gvUserDetails.ClientID %>').getElementsByTagName("input");
        var childChkBoxCount = childChkBoxes.length;
        var evtelem = (isIE())?event.srcElement:event.currentTarget;
        if(evtelem.checked == true)
            for(var i = 0; i<childChkBoxCount; i++)

How to access SQL-Server with in aspx page



this is probably a dummy question, but I didn't find a tutorial working for me after searching for some time now.


I'm playing with a small web project and can successfully use a connectionstring from a website.config in eg. a GridView.

Now I have the need to access this connection string from some custom VB code.

What I found so far is, that I need somthing like this (at least I guess so):


Dim connstring as string
  connstring = ConfigurationSettings.AppSettings("myconnectionstring1")




Now how do I execute any kind of SQL-code against this connection?

In this current case I need to run something like "delete from schedules where startdate<getDate() -10"

But basically could also be a query like "select * from schedules" and then checking the values or whatsoever...


Please someone help me or even a link to a easy understandable guide would help.


error.aspx page reports that Page.MasterPageFile = ~/masterurl/default.master not ~/_layouts/simple.


This one is driving me nuts.

I'm intercepting Pages using HTTPModules so that I can change the Master Page before the page loads. This works as expected on everything except error.aspx in the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS folder. Despite the fact that error.aspx specifies MasterPageFile="~/_layouts/simple.master" I keep getting Page.MasterPageFile = ~/masterurl/default.master instead!

Anybody know why this is the case?

Restricting access to List Views and View pages? Renaming Allitems.aspx?


Ideally, what I want is column level security on a custom list, but that appears to be way more work than it's worth.

Any easy way to restrict access to Views or View pages to select SharePoint groups? Maybe some client level code we have in a Content editor webpart on the View page?

Users in the Group have read access to a particular list.  The Quick launch menu is hidden (I understand that's not real security) .. and the top level tabs are set to particular audiences, and  I understand they can still call the pages if they know the URL.  I've warned the users about this.

I have not tried it, but can I have folders under the list folder and then somehow secure them?

We currently have custom pages for adding and editing list items, but will terrible things come from renaming the Allitems.aspx page or editing it and taking out the View, like for example, say we do have to use newform.aspx for some admin reason and it redirects to it..

Any way to disable users from being able to open the list exel or export it?

Anything else we can do. The goal is to provide some visitor type users read access to some 10 columns in a list, but not let them see the remaining 5.

Thanks for any help or information.

Allow a person to edit a single page in the pages folder.


Is it possible to set edit permissions on one page in the Pages folder for a single person.  We are able to set contributor on the page, but the user is still not able to edit the page properly.  If we set contributor on the Pages folder, the user can edit any page in the folder.  We want to have the user only edit a single page in the folder.


We are using MOSS 2007 with Publishing feature turned on (of course).




Tom C.

Launch CMD File From ASPX Page


My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.


We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.


Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?

The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.

Visual Studio closes itself by opening aspx-Page designer after Windows Update


Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.



Integrating aspx page in classic asp web application



I have a classic asp web  application. I am trying to add an aspx(C#) page to the existing asp application.

The existing asp pages have include pages for header and footer. How to add the classic asp include files in aspx page.

Also, How to deploy the aspx page in the existing classic asp web application.

Thank you

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

Button click in master page use in other pages I have to click twice. Why?


In my masterpage I have a menu with buttons. I want the buttons to do something after click. It works but I have to click twice on the button, why? What do I have to do to just to click once?

Flash player doesn't send cookies while requesting an aspx page



 I'm developing a web-site, that uses SWFUpload for multiple files upload to the server. Page, that uploades files, is accessable only to registered user. Authentication is done via web-forms (authentication mode="Forms" in Web.config). Flash uploades files to special web page - upload.aspx. In IE everything works great, but Flash player in non-IE browser (in Firefox, for example) does not send any cookies to upload.aspx. Because of it no sesion and no authentication information is available in this page.

 I can pass all the information, necessary for uploading, in GET-parameters, which upload.aspx recieve. But this is a serious security hole and I don't want to expose session information. I can pass session identifier in GET-request. But the question is the following: how can I restore session information from the session identifier? How can I make HttpContext.Current.User point to currently logged in user in this case?

Any help will be appreciated.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend