.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 develop a Create Site Wizard

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :SharePoint

When you create a new site in a SharePoint site collection, you get the first screen where you enter the site name, description, choose a site template etc. How can I develop a similar screen where I give users ore options to enter other information such as entering the name of default documents library, default list etc.?

I have created a custom site template that contains a document library with some preloaded documents, a task list with predefined tasks etc. My manager has asked me to develop a wizard like page that allows a user to create a site by selecting this custom template and entering a document library and task list name of their choice. There are some business reasons/logics behind all this, but I am just presenting a simpler version here to get me going.

I would greatly appreciate any advice, code sample, references, etc.


View Complete Post

More Related Resource Links

Create Web Site vs Web Application


I follow the tutorial and creted a web site for my company sales system. One of my collegue mention we use the wrong templet, we should use Web application for company application.

Should i continue using web site or change to web application? We are creating application for company sales, inventory, hr ,etc where possible more than 1000++ user. And during month end, it will be high traffic and transaction. can Web Site Template with BLL and DAL handle it? or i just need a powerful server?

how to get an array of all the asp.net textbox control inside create user wizard control?



How can I get all the textboxes inside a create user wizard control using getElementsByTagName().

Below is my JQuery code:

<script type="text/javascript">
        function addLoadEvent(func) {
            var oldonload = window.onload;
            if (typeof window.onload != 'function') {
                window.onload = func;
            } else {
                window.onload = function() {

        function prepareInputsForHints() {
            var inputs = document.getElementsByTagName("asp:TextBox");
            for (var i = 0; i < inputs.length; i++) {
                inputs[i].onfocus = function() {
                    this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
                inputs[i].onblur = function() {
                    this.parentNode.getElementsByTagName("span")[0].style.display = "none";



<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

form feild hints are not displaying for textboxses inside create user wizard?



I'm using following JS code to display input hint box besides the textbox whenever that asp.net textbox receives focus. 

I'm doing this for a registration form and all of the textboxes are inside the asp.net create user wizard control.

<script type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {

function prepareInputsForHints() {
	var inputs = document.getElementsByTagName("TextBox");
	for (var i=0; i<inputs.length; i++){
		// test to see if the hint span exists first
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			// the span exists!  on focus, show the hint
			inputs[i].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			// when the cursor moves away from the field, hide the hint
			inputs[i].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";

create user wizard login error message dont show in a message box?




i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.


there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes


is it possilbe to hook all of these up so I get one message box with all errors including membership ones?




Create web site specific to mobile device, how to detect?



I have a website that is written in .Net 2.0 which uses all the nice rich functionality of the web (Ajax, javascript etc..).  However I have noticed that the site does not display very well on mobile devices. 

So therefore I would like to create a more streamlined version of my site that is better tailored to these devices.  However how do detect that the user has come to the site via a mobile device and how can i redirect them to my tailored page

Many thanks in advance

file upload in Create User Wizard Created User event with UpdatePanel Tag wont work?



In my Create User Wizard1 Created User Wizard Event, I am collecting extra information from text boxes and allowing

the user to uplad a file.



I have put the Submit button within an Update Panel Tag but since I have done this it does not work.

Is there a way round it. In this situation would you use a trigger.?


<br />

  <asp:UpdatePanel ID="UpdatePanel2" runat="server">

  <asp:Button ID="StepNextButton" runat="server"  CommandName="MoveNext"  align="middle"
                                            Text="Submit my Profile" />

Create My Site for FBA Users Error


Hi Guys,

I am trying to create mysite for FBA Users programatically (FYIP: I have done all the configurations for FBA in SSP and mysite host and I am able to create mysite from UI for FBA Users). The problem exists only when I am creating MySite programatically!!!










Could not able to create the Report Center Site in MOSS2007.

Hi All,

I am facing an issue while creating the Report Center site.Once i provide all the details in the New Sharepoint Screen of Central Admin toll and hit on Create button,after some time its throwing an error saying "File Not Found".  Activated the Office Sharepoint Server Publishing Infrastructure Feature and Office Sharepoint Server Publishing Feature but could not see any difference.

Can some one please help me out how to sort out this issue?

Thanks in Advance.

Regards, Krishna Chaitanya

How to create a single entry page for site collections in MOSS 2007



I have  7 site collections containing a few hundred team collaboration sites. Some users are internal (intranet) but most are external (extranet). Extranet users are experiencing problems with losing links to their sites and forgetting which URLs to use. So I would like to create a single entry page that all users can enter after the logon process, which shows a list of sites they have permission to access, and other user-specific information. Perhaps relevant documents, tasks, recently modified documents etc.

I know this sounds like a 'My Site' but we want to use use a general welcome page instead. We use Windows authentication.
What is the best way of doing this and is it something that can be done in SharePoing Designer or does it need to be done in Visual Studio?

Many thanks in advance.

Create User Wizard and Loginview error


 When i place the create user wizard control inside the Loginview Anonymous Template, the Create User Wizard gives an error inside the C# file. Here is a snippet

Home.aspx Web Form

 <asp:LoginView ID="LoginView2" runat="server">
        <asp:CreateUserWizard ID="CreateUserWizard1" CreateUserButtonType="Image" 
        CreateUserButtonImageUrl="~/images/signup.png" cssclass="createuser" 
        runat="server" OnCreatedUser="CreateUserWizard1_CreatedUser" 
           <TextBoxStyle CssClass="Ctextbox" />
            <LabelStyle cssclass="lbl" />
                <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" />
                <asp:CompleteWizardStep   ID="CompleteWizardStep1" runat="server" />
        news here

Here is the C# Code with the error 


Collecting extra information using Create User Wizard

 I am trying to collect extra information about a user when the user account is created using the Create User Wizard. This info will be stored in a new table in the standard ASP membership SQL database. I have read several books and loads of online tutorials on the subject and they all take different approaches and seem to make the process hard work. Is there any reason why I can't add an SQL datasource and a number of textboxes  to the wizard step, 'connect' the values from the textboxes to the Insert Parameters and then put an Insert Statement in a suitable event handler to cause the insert? If this is possible what would be the best (ie simplest) way to 'connect' the textboxes to the insert parameters?   Regards Andy

Why is there no wizard control in WPF? Is there an easy way to create one, like with the TabControl

Hello, First, NO THIRD PARTY PRODUCTS!  In my search, it seems like anyone asking for a wizard control is sent to a third party to buy it.  I have no interest in buying a third party product, so if you are one of those that would suggest it, please don't, I'm simply not interested. If my understanding of page framework is correct, that is, the page is within a separate XAML file and the events are handled via its code behind, then I am not interested in such a scenario.  Nor am I interested in any fancy plumbing to make page framework work the way I want. All I want is the simple wizard control.  I'm amazed that such an important function was left out of WPF, especially since the TabControl is so close to being a Wizard Control. I'm thinking that the TabControl should be able to be made to function like a wizard, but my search finds nothing of any value.  Is the TabControl not suitable to be made to function like a wizard? Any help (other than third party products) would be greatly appreciated. Regards, Robert

Not able to create a new site from a previous backup

Hi,   I want to create a new site from a backup. I did the restore process in Central Admin. I gave new appplication URLand new content database name in the last page of restore process. I  tried restore several times  but always the following error msg is showing in backup and restore status.   Error Status TEST 600 6/30/2008 11:22 AM Object TEST 600 (previous name: TEST PORTAL) failed in event OnRestore. For more information, see the error log located in the backup directory. SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SPWebApplication Name=TEST 600 Parent=SPWebService is being updated by WSS\Administrator, in the OWSTIMER process, on machine WSS. View the tracing log for more information about the conflict. WSS_Content_TEST_PORTAL_600 Completing restore 6/30/2008 11:29 AM Object WSS_Content_TEST_PORTAL_600 (previous name: WSS_Content_TEST_PORTAL) failed in event OnPostRestore. For more information, see the error log located in the backup directory. SPException: Cannot attach database to Web application. Use the command line tool or Central Administration pages to attach the database manually to the proper Web Application.   I am also showing the log file details below. Log File Details   [06/30/2008 11:19:44 AM]: Verbose: Using directory: \\wss\TEST\Backup\spbr0003\.[06/30/2008 11:19:44 AM]: Ve

Create user button in Create user wizard

Hey May i know how i can change postion of  Create user button in Create USer Wizard as i want to change according to requirement!!!

Create URL for SharePoint site

Hi   I am new to sharepoint and have created a site wich is accessable by http://servername:port_number.  How do now make that accessable by giving it an internet facing URL e.g. http://sharepoint.mydomain.com.   Any advice would be greatly appreciated

cannot create a site collection

hi all, When I was creating a site collection in a new created web application, after clicking 'OK', it skipped to a page with error information which is: Error The URL 'Reporting Templates/audit.xlsx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.   Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 55bd00e8-3ecd-41bc-b534-e59fbebfc2b7 Date and Time: 8/31/2010 3:20:38 PM I never met this before, what's wrong with my farm?

Unable to create columns in document library after applying custom master page to site

Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?
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