Re: Any way to programatically create a web part page?
From: Ram Yadav (ram_yadav(removethis)_at_hotmail.com)
Date: 03/30/04
- Next message: Benoit Beausejour: "Sharepoint 2003: SPFileCollection mass delete and performance ?"
- Previous message: vetri: "Sharepoint and Outlook 2003"
- In reply to: Donal: "Re: Any way to programatically create a web part page?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Benoit Beausejour: "Sharepoint 2003: SPFileCollection mass delete and performance ?"
- Previous message: vetri: "Sharepoint and Outlook 2003"
- In reply to: Donal: "Re: Any way to programatically create a web part page?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|