Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Web part targeting main frame

  Asked By: Samir    Date: Oct 27    Category: Sharepoint    Views: 1371

I have designed a web part in ASP .Net which lists vacancies in a
tree view (links to another .aspx page). What I'd like to do is open
the vacancy page into the main part of the window, so that the
dashboard menu is still visible at the top (Home, Search, Categories
etc), and my page displays in the remaining body of the page.

Targeting in the HREF doesn't seem to do me any good :-

_self - Just opens in the small web part frame
_parent - Opens right out, removing the dashboard menu at the top.

I've tried targeting "main" and "content" but cannot seem to find the
correct frame.

Does anybody know if the dashboard and main body are two separate
frames? Or is the dashboard at the top merely an include?. The manner
in which is it constructed looks rather complicated and I'm not sure
how (or even if) I can include the main menu at the top into my
own .aspx page.



2 Answers Found

Answer #1    Answered By: Erika Price     Answered On: Oct 27

If I understand well, you will need to use DDSC events to have 2 web  parts
communicate. You can find  some sample on how to this at www.sharepointcode.com

Answer #2    Answered By: Otis Blackwell     Answered On: Oct 27

It is my understanding that you can only use the DDSC events with internal
sharepoint code (code that you have pasted in the content  box). Since you
are building a .net page, it must be an external code source (your .aspx
page) which will not allow you to use the DDSC events.

The good  news is that your external web  part is being load in an iframe (as
long as you are using internet explorer). You can reference iframe name
which will be something like 'WebPartWPQ1'. You can find  the names for the
web part  by viewing the source of the entire page  and looking for the iframe

Didn't find what you were looking for? Find more on Web part targeting main frame Or get search suggestion and latest updates.