Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

GetWebContext(this.Context) from Forms/_layouts

  Asked By: Demarco    Date: Oct 04    Category: Sharepoint    Views: 1112

There is no Web named "/Document
Library/Forms/_layouts/CustomMenu/EmailDoc.aspx".

So I created a custom asp web app and have it my layouts folder. Made
some jscript and placed it in my context menu that navigates to
_layouts/'web app name' with some query strings. Nothing special. So
when the user clicks on the menu item it decides to send me to
Forms/_layouts (which suprisingly does exsist) but getWebContext seems
not to like it. I'm guessing its due to the SP layout with the common
forms folder and all. Any idea how to create a dynamic SPWeb from here?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Gopal Jamakhandi     Answered On: Oct 04

Using ctx.HttpRoot gave me the correct url instead of the relative
one I was giving it.

 
Didn't find what you were looking for? Find more on GetWebContext(this.Context) from Forms/_layouts Or get search suggestion and latest updates.