Re: Any way to programatically create a web part page?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ram Yadav (ram_yadav(removethis)_at_hotmail.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 09:25:16 -0600

Hi Donal

Thru SPS Gui:
It requires a Doc Lib to store the page. One reason, it does that is, so
that you can access that page thru GUI.(for modification)
behind the scene it is stored in the DOC table in the database.

IF you use frontpage and move it to root, It is still stored in the same DOC
table in the database, only thing that is different is, now you can't access
it thru the GUI, and only thru frontpage.
just like it does the other pages at the root (e.g. default.aspx)

- Ram Yadav
ram_yadav(removethis)@hotmail.com
This posting is provided "AS IS" with no warranties, and confers no rights.

"Donal" <donalconlon@hotmail.com> wrote in message
news:38dde0e.0403291403.7bbec4a6@posting.google.com...
> To clarify...
>
> When you create a web part page through the UI, you must specify a doc
> library to store them in. But if you open the site in FrontPage, you
> can mode these pages to the root. Where are they stored when at the
> root level?
>
>
> donalconlon@hotmail.com (Donal) wrote in message
news:<38dde0e.0403290617.7ccb0b51@posting.google.com>...
> > Hi ram
> >
> > Thanks for your response. Where are the web part pages stored by
> > default, when you create a page through the "Create" link? What doc
> > library is used?
> >
> > "Ram Yadav" <ram_yadav(removethis)@hotmail.com> wrote in message
news:<eTb1$v3EEHA.2576@TK2MSFTNGP11.phx.gbl>...
> > > Hi Donal
> > >
> > > Thru Code:
> > > Get a string builder class (basically string) and write everything
manually
> > > (code of the aspx page) and then ask the user to give the name of the
web
> > > part.
> > > Now you have name of web part page and contents of the web part page
in the
> > > string.
> > > Since Web part pages are stored in doc library.
> > > get the list collection (of Doc Lib) where you want to store this web
part
> > > page and add a record. Give it the name
> > > (if you can't directly add the string, as file)
> > > Do , Create a temp file on the file server, and then use the
Attachment
> > > property to upload the file.
> > > Look into SPAttachmentCollection of the Listitem.
> > >
> > > Hope this helps.
> > > -Ram
> > >
> > > "Donal" <donalconlon@hotmail.com> wrote in message
> > > news:38dde0e.0403260820.44d331ff@posting.google.com...
> > > > I can't see any methods to do this. What I want to do is create a
web
> > > > part, where the user enters the name of a new web part page to
create,
> > > > and it gets created.
> > > >
> > > > Any ideas, other than using spcf.aspx (i want to do more than just
> > > > create the page)?
> > > >
> > > > cheers



Relevant Pages

  • Re: Programmatically installing Client Root Certificates
    ... You install root certificates into the "root" store. ... the certificate to the root store. ...
    (microsoft.public.platformsdk.security)
  • Re: Virtual path for stylesheet doesnt work
    ... tells FrontPage that the css folder is in the root and default.css lives inside css. ... > appears that FrontPage cannot work with virtual urls for stylesheets, ...
    (microsoft.public.frontpage.client)
  • Re: ADAM wirh SSL
    ... The cert is in both the local machine personal store and trust roots store, ... Unfortunately, I have 174 files in my machinekeys directory, so I'm not ... I'd like to be able to find the root cause instead of giving ...
    (microsoft.public.windows.server.active_directory)
  • Re: "Error occurred accessing your Windows Sharepoint Services site files"
    ... Which version of Windows are you running? ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... Nor do I see any option to create a New root web on the ... >> You need to create the new root web via IIS MMC, All Tasks, New, Web Site ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • Re: Write permissions for folders in Frontpage. How?
    ... as that is the only folder FP will set the permissions on. ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... If I say no then it's saved in the root I ...
    (microsoft.public.frontpage.client)