.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

customize newsbweb.aspx

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :SharePoint
i need to customize the newsbweb.aspx(create new  site  page in sharepoint) to hide the tabs  collaboration, publishing, meeting .Only the custom tabs needs to shown to the site admin. The way i have set the users in  the farm is super admin for the site collection local admins with rights for thier sites only. I know i can hide the custom tabs by remove the project template ids in the webtemp . But this removes all the tabs for all the site users. I want the site admins to only have access to the custom tabs. I want to give the super administrator access to all the site creation tabs  like collaboration,meeting,publishing and custom. i added the inline code on  the newsweb.aspx page  and a created custom newsbweb1.aspx <script type ="text/C#" runat="server" > string strName = HttpContext.Current.User.Identity.Name.ToString(); protected override void OnLoad(EventArgs e) { if (strName !="Administrator") { Response.Redirect("/newsbweb1.aspx"); } } </script>

View Complete Post

More Related Resource Links

How to customize the wording of "Add new Item" in AllItems.aspx ?

Team, Can we customize the wordings of "Add New Item" to something else like "Add new account"  in AllItems.aspx ? If yes how do we do it. Is it through designer? Thanks in advance. Bhadram.  

How to customize or call the _Layouts/upload.aspx in Sharepoint Foundation on TopNavigationMenuV4

Hii All, Am having a req to upload the files or documents whatever the default Sharepoint upload.aspx is doing but which i need to call it from TopNavigationMenuV4 ,not from the default Upload menu, it will be there in TopNavigationMenuV4 which i did the customization according to the requirement . Kindly help me how to proceed !!!!!   Thanks in Advance Praveen      

SharePoint Designer 2007 - Customize List View - Error when saving view ASPX page


We have a custom list definition that includes custom site columns.  When we try to open one of the list view aspx pages in SharePoint to update the view query we get an error when trying to save the page in SharePoint Designer 2007.  We receive a warning that the operation will customize the page from the site definition, which is fine.  And then get a general "Server error: ServiceRequestorID" alert.  ServiceRequestorID is a custom site column used by the list definition.

ServiceRequestorID field definition:

<Field ID="{FA39D24D-AB40-4b1d-BD80-94ABE34A7578}" Name="ServiceRequestorID" DisplayName="Service Requestor ID" StaticName="

How to Customize SharePoint List form: newform.aspx to add functionality similar to a repeating tabl




I want to customize SharePoint List form: newform.aspx to add functionality similar to a repeating table in InfoPath?

I’d like to achieve similar functionality using in SharePoint Designer and Javascript/JQuery.


Any suggestions / links / examples are sincerely appreciated.



Abhijit Sil

In Moss 2007 i have to remove the Site Template tab which is available on "newsbweb.aspx"



I have to remove the site template tab, which we can see while creting the new site or subsite.

Can anyone help me to solve this issue


Pankaj Pawar


How do I customize the item forms (NewForm.aspx, etc) in VS2010?

I have a SharePoint 2010 solution in Visual Studio 2010.  I have custom list definitions, instances, etc.  I want to customize the New, Edit, and Display forms for my custom list.  I not only want to customize the look, but I want to write my own code behind as well.  I have searched all over and have yet to find a good guide on how to do this.  Can someone please help?

Need to customize Sharepoint 2010 EditProfile.aspx Show to drop down


Hi All,

I have to create a custom EditProfile.aspx. Where in I have to modify "Show to" drop down.Can any one help me out ,for the way I should proceed? I have to add this dropdown for some other property on page.



Customize List Dispform.aspx with Tabbed UI



I have custom list which have more than 40 columns,so customer feels to have a customised UI for 'View' Option with 'TAB Feature.

Using DVWP and some additional Javascripts and CSS we were able to bring the tab but we were not able to achieve features like 'New form','Edit Form' 'DeleteItem', Versions and 'Alert'.

Can any one pls help in this regard, Would really appreciate..




Sivabalan K

Where do I put a newsbweb.aspx clone is VseWSS solution?



I know I need to create a copy of newsbweb.aspx and make changes to handle some requirements for semi-automated site creation. What I have a problem is where do I put the new page customnewsbweb.aspx in my VseWSS 1.3 based solution?

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

Code works on aspx but not ascx


Not sure which category to put this question in, so I will put it in here.

Just to give you an idea of the layout of my solution, I have the main project, along with 2 class libraries, BLL and DAL.  (Business Logic Layer and Data Access Layer)

The BLL refers to the DAL and the main project refers to the BLL.

I had a test website and the code worked fine, but the same code will not work on the real project. The only difference is that in the test project, the code was on an aspx code behind, whereas in the real project, it is an ascx code behind (Web User Control )

The code is:

Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString
        Dim recordEntry As New UserRecord(connectionString)
        recordEntry.UserName = "TestName"
        recordEntry.BMI = bMI
        recordEntry.BMR = bMR
        recordEntry.FTM = fTM
        recordEntry.TDEE = tDEE
        recordEntry.TodayDate = dateForToday

Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString

Create an API (aspx vs mvc)


Hi everybody!

I'm not sure if this is the right place to ask this, so, sorry if it's not. I have to create a web application. I can handle that. But, it has a requirement I've never done before. I need to create an API for that application, so other apps can get or set information from/to my webapp.

I've been searching a lot and still don't have a starting point. Seems that MVC is really good to do that, but I'm not familiar with MVC, so I would need a starting point. I was thinking to do it in aspx (Framework 4), but do not know how to do that with aspx either.

Can anyone help me to get started with this?

Thanks in advance

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.

Custom views on .aspx webpage


Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.

It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.

I am using C# programming language if that helps at all. I Heard that using javascript would work but i dont know javascript yet so is there any alternative?

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.



Composite Control which contains arbitrary content defined in .aspx of parent and thier ViewState


I want to write own control which can contain other. And I want to define content of the control in the .aspx file where the control is defined. I have written such control. But now I have issue with ViewState of inner controls of my control. The following samle illustrates the issue: I defined two asp:DropDownList ID="ddl1" and ID="ddl2" One of them is inside of my control and other is outside. When posback is occurred asp:DropDownList ID="ddl1 loses state and becomes empty. How to say ASP.net to store state of inner controls defined by this way?


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyControl.ascx.cs" Inherits="DynamicControls.Controls.MyControl" %>

<div class="box">
    <div class="Header-Left">
        <div class="Header-Right">
            My Control
    <div class="Content">
        <asp:PlaceHolder ID="contentPlace" runat="Server" />

Customize the Micrsoft Dyanamic CRM using ASP.net


I need to Customize the Micrsoft Dyanamic CRM using ASP.net

How to change or integrate the Micrsoft Dynamic CRM using ASP.net ?

Please provide any project or plugin or code that have integrate or change Microsfot Dyanmic CRM using asp.net ?



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