Monday, April 30, 2012

[sharepointdiscussions] Digest Number 4433

Messages In This Digest (1 Message)

Message

1.

Getting subsite url from aspx page in page-viewer webpart

Posted by: "brother.gabriel" brgabriel@sspx.org   brother.gabriel

Sat Apr 28, 2012 8:50 pm (PDT)



Salvete! Hopefully, someone might be able to help me out here. I posted in sharepoint stackexchange, but haven't come up with the right answer yet.

http://sharepoint.stackexchange.com/questions/33617/how-to-get-the-url-name-of-a-subsite-from-a-webpart

I have a custom aspx page (with code-behind) inside a page-viewer web part. I need the aspx page to get the url of the subsite. It works after page load, but when I interact with the aspx controls, it does its own postback and then can only get the subsite of the aspx's page and not the sharepoint page. I have explained it in detail on the link above.

Right now I have found a workaround using cookies, but it doesn't seem too stable, and is a bit of a hack.

Thanks for y'all's help.

Recent Activity
Visit Your Group
Yahoo! Groups

Small Business Group

Improve your business

by community exchange

Y! Messenger

All together now

Host a free online

conference on IM.

New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Create New Topic | Visit Your Group on the Web

No comments: