Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

click a button to create a new site

  Asked By: Mercedes Nash         Date: Feb 15, 2010      Category: Sharepoint      Views: 348
 

The portal i am developing should hav a button which when
clicked allows a user to create a new site of their own..my site should
act as a template for the new site..can anyone please help me with it?
please..will i hav to use WSS object model..?

Tagged:            

 

2 Answers Found

 
Answer #1       Answered By: Vidisha Pathak          Answered On: Feb 15, 2010       

Apply a button  to the homepage of your portal  and direct to the below link while
clicking on it.


http://xxxxx.com/_layouts/1033/scsignup.aspx?

ReturnUrl=http%3a%2f%2fxxxx.com%2fSiteDirectory%2fLists%2fSites%2fNewForm.aspx&D\
ata=Sites&PortalName=xxx+xxx+xxx&PortalUrl=%2f

 
Answer #2       Answered By: Malcolm Maxwell          Answered On: Feb 15, 2010       

but wat i hav to do is fetch the title a
user provides and create  a site  accordingly.hence will hav to fetch
data from textbox and then probably use the whole set of
SPWeb,SPWebCollection etc,do u think wat i jus wrote is the correct
approach???with this approach when i click  on submit button  it gives
up an error..can u help  me??

the error is
request for the permission of type
Microsoft.Sharepoint.Sharepointpermission,MS.SP.Security,Version="....
....." culture="neutral",publickeytoken="........." failed.

 
Didn't find what you were looking for? Find more on click a button to create a new site Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].