View Complete Post
I have a bunch of HTML which has been exported from a different platform.
This HTML could be located in a database or contained within an HTML file.
I am looking for some guidance on the best way to programmatically create a publishing page in SharePoint at a specific site location, then populating the RichHtmlField Publishing Web Control (PublishingPageContent) with the HTML that has
been exported from one of the sources mentioned above.
Any suggestions/advice you can offer will be much appreciated.
hi, exactly like cms , i want to create page programmatically with this options:
2: add template (master-page)
help me .thanks
I am using the asp.net membership.
On my site I have a Profile.aspx page.
In the code behind of this page, i get the logged in UserId (Guid) and pass
this to a method in my DAL. GetUserByUserId()
In my database I have a Table called Member which the method gets the data from
and displays details on the page about the user.
What I want to happen is when they have logged in and are diverted to Profile.aspx,
the page URL shows www.MyWebSite/Profile/UsersName
is this possible. In my Member table I have FirstName and LastName columns or do I get the
name from the membership table.
even better would be they go straight to www.MyWebsite/JohnSmith.aspx
thank you for any help
I have design form layouts for signup and login pages
Please provide me the step by step code for sign up and login pages using c# with validation.
waiting for urgent reply
I have created a feature that generates a page and adds a content editor web part, links web part (using elements.xml). Everything works fine but I would like to replace content editor web part with a wiki page that I am going to create.
For example, I copied an excerpt from elements.xml file that adds a content editor web part for the page.
<Module Path="Dependencies/Pages" Url="">
<File Url="default.aspx" Type="Ghostable">
<!-- Add the Rich Content Text Editor web part -->
<AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1">
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" xmlns:iwp="http://schemas.microsoft.com/WebPart/v2/ContentEditor">
<Assembly>Microsoft.SharePoint, Version=18.104.22.168, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
Can someone tell me how I can add a wiki page using manifest (elements.xml) file or some other way?
I'm programmatically creating an InfoPath form using this article: http://www.bizsupportonline.net/infopath2007/programmatically-create-infopath-form-console-app.htm.
Everything works well up to 29 fields (my:field1 ... my:field29). After that it runs without an error and posts a form to the library however the icon does not switch to an infopath icon and the filename stays blanks. I don't believe this field specific,
it seems to be happening when I use any 29 to 30 fields so I'm thinking its a memory issue with the stream reader.
Has anybody every had this issue before, is there a way to fix this?
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
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.
Has anyone found a solution that will allow me to have page numbers for paging in a data view web part. For instance, if I have 40 items/rows and I set the paging to display 10 items, I'd like the paging to show 1 2 3 4 rather than showing 1-10 and having
to click next over and over to get to a specific item.
I found this article, but it is for 2003 and doesn't seem to apply to 2007 or if it does I am not able to really figure out how.
Thanks in advance.
I know there is a field you can check when you edit the properties of a Master Page in the Master Page Gallery to set a Master Page to hidden but ... can anyone think of a way to programmatically hide specific Master Pages from the Site Master Page Settings
Maybe this should be two questions:
ErrorÃÂ ÃÂ Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.
Show Error Details Hide Error Details
[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]ÃÂ at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Guid guid) ÃÂ at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)ÃÂ Of course the current version of the Web Part is in the SafeControls list on the web.config.The Web Part was originally designed to return site activity only for the top default.aspx page and worked fine but started to fail in the manner described above once I added the following line of code to return a SPCo