Welcome Guest Search | Active Topics | Log In | Register

YAF.Classes.UrlBuilder.ScriptName Options · View
nj609eagle
#1 Posted : Thursday, September 25, 2008 12:49:57 AM

Rank: YAF Forumling


Joined: 9/11/2008
Posts: 8
Location: NJ
I'm using YafBuildLink.GetLink from my Master page, which resides outside of the forums folder.
When the Master page is used, the real page is called "page.aspx"
Eventually the code runs through to YAF.Classes.UrlBuilder with a call to ScriptName.
I had to modify this to always return defaul.aspx. If none of the links would work.

Can anyone tell me what problems I may face going forward?

Code:

        static public string ScriptName
        {
            get
            {
                return "/default.aspx";
                //string scriptName = HttpContext.Current.Request.ServerVariables ["SCRIPT_NAME"].ToLower();
                //return scriptName.Substring( scriptName.LastIndexOf( '/' ) );
            }
        }
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.041 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET