C# .NET Library on Custom Entity

I'm having an issue with the redirection from the URL("343") action. The PrevCustomURL variable is not working correctly.


The ASP code I've found is as such:

var strURL=new String( Request.ServerVariables("URL")() + "?" + Request.QueryString );
myBlock.prevURL=strURL;


I'm trying to use something similar except parsing the URL through a button:

Url("343") + "&Key-1=" + StatementId + "&PrevCustomURL=" + Url("340")

I've tried building the URL as well using:

myURL = UrlDotNet(ThisDotNetDll, "myFunctionName") + "&Stad_StatementId=" + StatementId;

AddUrlButton("Upload Statement", "Upload.gif", Url("343") + "&Key-1=" + StatementId + "&PrevCustomURL=" + myURL);

Any assistance on this would really be appreciated.

Many thanks,

Kev

  • 0

    Kevin

    I am not sure what you are trying to do. But I hope that the following my help.

    In an ASP page the .prevURL property is set where a list contains references to any of the system entities

    var strURL=new String( Request.ServerVariables("URL")() + "?" + Request.QueryString );

    //Use the myBlock.prevURL property if any of the columns in List block have links to Company, Person, Opportunity, Case, Lead, Solution.

    myBlock.prevURL=strURL;

    This become relevant where the custom entity list meta data definition contains hyperlinks defined as simple links to the system entity.

    e.g.

    "Hyperlink to: Company"

    A typical URL that is built using this looks like

    localhost/.../Do

    This is largely useful when building 'continue' buttons.

    In an .NET project built using the specialised classes this type of link is not created

    A simple 'Hyperlink to:' definition will result in a simpler URL

    localhost/.../Do

    But if you want to build a link back to a previous URL then you have access through the Dispatch class.

    Dispatch.ServerVariable("HTTP_REFERER");