.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

How to replace default.aspx with an amended version?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

This should be too hard for you sharepoint buffs! ;)


I have Sharepoint MOSS 2007, and I have made a copy of one of the default.aspx files made some changes to it, and want that inplace of the origional default.aspx file. Can anyone point me in the right direction?




View Complete Post

More Related Resource Links

default ASPX Publishing page will not restore to previous version

I have inherited a MOSS farm that has a semi customized front page on it's publishing portal. One of the customizations is a bamboo web part that someone did something to to cause it to change the font on it to white and collapse if it had no information in it. I restored this whole site collection to a test area in a separate application pool so that I could work on it without disturbing any other users.  The Bamboo licensing broke in this web application even though the farm is licensed. I was just going to ignore that for now and concentrated on adding some web parts controlled by audiences. I got the web parts in and reacting to the correct audience but then I screwed around with it long enough to break it.

Now the customized Bamboo does not collapse and is stuck showing it's error message about the licensing, and I am unable to change the height of other web parts although I am able to change the width.

So (and here is the real problem) I thought that I would just restore a previous version of the page and try again after I got the licensing with Bamboo all straightened out. But I cannot get this page to restore an old version.

First when I was on the page showing all of the versions for this page and I would choose an older version it would complain that I had to check out the page before making any changes. SO I check out the page and return

Content Editor Web Part in default.aspx not copied over.


I have a CEWP with some content in the default.aspx page on one site, and I downloaded and uploaded the default.aspx page to another site collection. But when I display the default.aspx page in the browser the CEWP is not there anymore.

Is the CEWP detached from the default.aspx page and must also be copied over to the new site collection? If so, then where is the CEWP stored?

Thanks for any help. 

Redirecting default.aspx to root virtual directory

I have a simple ASP.NET 3.5 application running under IIS7 under a virtual directory. So the URL of my app is like http://site.com/app. I want to 301-redirect the request to site.com/app/default.aspx to site.com/app for better SEO. I have to do this redirect through code only, not by any IIS settings. I am unable to do so via code mentioned in this article:http://www.4guysfromrolla.com/articles/072810-1.aspxThe code:if (request.RawUrl.Equals("/default.aspx")) { newUrl = string.Format("{0}://{1}{2}", request.Url.Scheme, request.Url.Authority, request.RawUrl.Remove(request.RawUrl.LastIndexOf("/default.aspx", StringComparison.OrdinalIgnoreCase))); context.Response.Status = "301 moved permanently"; context.Response.AddHeader("Location", newUrl); } seems to go into an infinite loop when the application is under a virtual directory. the request.RawUrl property always returns "/default.aspx" even after a 301 redirect causing the infinite loop. How can I fix this issuhttp://forums.asp.net/AddPost.aspx?ForumID=27e?

Custom DynamicData Default.aspx GridView

On the Default.aspx page the GridView control is populated programmatically by setting its Datasource to a list of table objects. Is there some way I could populate this GridView manually using my own set of NavigateUrls and DisplayNames?Simon

Calling a text Box from Default.aspx??

Hi there, I was wondering if I can create a method or textbox in an .aspx page (such as 'Default.aspx') and from a different class (e.g 'MyClass.vb') insert values into the textbox?Thanks in advance

modify/override properties of default sharepoint modal dialogs (ex. editview.aspx) using javascript

Hello all, I would like to know how can I modify (override) some properties of the default sharepoint modal dialogs using Javascript. Ex. the size and location of editview.aspx. I while ago I asked a question about overriding the DialogResult in the display view dialog. I got an answer from Zach which looked like this:             sb.Append("<script type=\"text/javascript\">");             sb.Append(@"window.setTimeout(function () {");             sb.Append(@"if (window.frameElement && typeof(window.frameElement.overrideDialogResult) == 'function')");             sb.Append(@"{");             sb.Append(@"SP.SOD.executeFunc('sp.ui.dialog.js', 'SP.UI.DialogResult.OK', function () {");             sb.Append(@"window.frameElement.overrideDialogResult(SP.UI.DialogResult.OK); ");             sb.Append(@"});");             sb.Append(@"}");  

Please help Cant edit default.aspx

we had a problem with our sharepoint 2.0 site. .net 3.5 got installed which corrupted the webparts so following microsofts kb we rolled back to .net 2.0 which seemed to work. problem is that the default.aspx seems to be an old version. now when we connect to the site using frontpage and look at the default.aspx it is the correct version but when you browse to the site it loads the old version. IIS is set to pickup default.aspx so it should work. why is it that in frontpage the default.aspx is correct but when we browse to the site it is picking up and old version. im confused.

Custom Default.aspx SharePoint 2010

I would like to replace the default.aspx with a custom default.aspx.  I have been able to accomplish this with a feature. I am finding the when deployed the new default.aspx page shows up in the following directory C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\ProjectInsightSPMaster_ProjectInsightLayoutFeature\defaultpage I also have a default.aspx located in the following directory.  This is the one that is deployed with the site definition. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\SiteTemplates\PISP    When I browse to a site in IE, it is in fact looking at the correct (new) default.aspx page which is located in the FEATURES directory.  How does SharePoint know to use this default.aspx page instead of the one located in the SiteTemplates directory.  This is confusing to me.  Can you explain?   Is this the correct way of deploying an updated default.aspx?   dave

SharePoint how does it know to use a feature default.aspx deployed instead of site definition defaul

I have created a feature which deploys a custom default.aspx page. The deployed file goes to the template\features{featureName} directory. How does SharePoint know to use this default.aspx page instead of the one that is located in SiteTemplates{Site Def name} directory?dave

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

Adding JavaScript to Default.aspx


Hi there,

I am relatively new to SharePoint Designer and want to add a piece of JavaScript code that I have used before on standard HTML websites but I am not 100% sure where to put the code on the page.

I tried already and got an error so I have removed the code and the page works as standard.

Below is the code I inserted to a webpartzone (right) replacing the &nbsp; which was already there.

<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 300, 220, 0, 7000, 1)

The main script is very long so I hadnt pasted it in but i placed it at the top of the page (when in code view). Here it is below:

What am i doing wrong?

The Commish

<script type="text/javascript"> 
* Ultimate Fade-In Slideshow (v1.5): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["images/rotate01.jpg", "", "

replace NewDocSet.aspx form


Is it possible to replace NewDocSet.aspx form for one specific documents library?

I need to create custom NewItem form for documents library, but in sharepoint designer i have found only option to create custom display, edit and upload form...

Even Form Folder for specific document library doesn't contatin form for new document.

It's look like that sharepoint use one form for creating new item in all document library..

Any solution or help?


Version History for NewForm.aspx


Hi All,

I urgently need to switch back to one of the previous versions of the customized Newform.aspx  form . I dont see any option when i right click on the form but in the properties i see the version as v2.0

any help is appreciated.


Isha kapoor My SharePoint Blog Follow me

Default Document and ASP.Net version ...



Two questions:

1. (Using IIS 6.0); Is there any way to set the default document that is served via an applictions web.config file? I know it can be done via the IIS Management console, but my site is hosted via a hosting service and we do not have access to such a utility.

2. Is there a way to specify which version of ASP.Net is used (ie: 2.0, 3.5, etc) via an applications web.config file?


Brent D.

Sharepoint doesn't redirect to default.aspx


While logged in as a User in Sharepoint 2010, if I navigate to the main page of our Sharepoint (http://sharepoint) it asks for my username and password but never actually logs on (stuck in a loop). If I navigate straight to http://sharepoint/default.aspx, it works fine.

If I'm logged in as the System Account admin, then navigating to http://sharepoint redirects me automatically to /default.aspx.

Alternative way to do a form action='default.aspx'



I am using Masterpages and User Controls (ascx) files in my project.

It is not possible to do this on my ascx or masterpage,

<form id='frmAction' action='Default.aspx'></form>

Please could somebody give me an alternate way of doing the same, I need to postback to the same page, when user clicks on 'Submit'

sorry for not being very clear with what I want. I am trying to do a postback using jquery.


Kindly help with syntax.


Sharepoint does NOT redirect to default.aspx



Hi, my sharepoint installation seems to be broken


If I navigate to http://mysite/sites/site1 it does not redirect to http://mysite/sites/site1/default.aspx


It does not work for any site.  Any ideas on how to fix it? 

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