Response brings back an Incorrect URL

2 posts, 0 answers
  1. Vuyiswa
    Vuyiswa avatar
    188 posts
    Member since:
    Jan 2010

    Posted 30 May 2011 Link to this post

    Good Day All
    I have an project that does the CC handling for me and if the cc comes from a certain  application it redirects to the page in a certain application.  In that Project there is a page named “Buycredit” i am hosting this in an Silverlight RadHTMLContainer.

    That contains a Page_load that has this
    if (!Page.IsPostBack)
                                //handle the response url

    And the handleresponse Method is defined like this

    private void handleResponse()
              // try
             //  {
                   //populate VCS object with values
                   DataAccess dataAccess = new DataAccess();
                   VCSResponse creditResponse = populateVCSObject();
                   //Temporary: Check if this needs to be forwarded to eCASH for processing
                   if (!string.IsNullOrEmpty(creditResponse.Misc))
                       string forwardAddy = string.Concat("", Request.QueryString.ToString());
                       //Insert response values to the DB
                       //check if the response = approved
                       if (responseApproved(creditResponse.P3_AuthReponse))
                           //update the purchase history table with successfull credit purchase
                           dataAccess.insertPurchaseRecord((User)Session["UserDetail_Connector"], creditResponse);
                           //email the user the confirmation that credits were purchased
                           Emailer.sendCreditPurchaseMail("", ((User)Session["UserDetail_Connector"]).Email, (User)Session["UserDetail_Connector"], creditResponse);
                           //Show on display the success purchase message
                           divNotify.Visible = true;
                           txtPromptMsg_Prompt.Text = "Credits were successfully purchased.";
                           //show user that purchase was not successful
                           divNotify.Visible = true;
                           txtPromptMsg_Prompt.Text = "Credits were not successfully purchased!";
            //   catch (Exception ex)
            //   {
            //       throw ex;
           //    }

    Now the page “PurchaseCredit.aspx” is the page in the Silverlight Project. On Debug mode, I can step through this project and it will finish and redirect to the “PurchaseCredit.aspx” in that IP and it will work fine, but when I publish it to IIS, the Page URL I get is different I get this URL******4242&TransactionType=Authorisation

    as you can see it is not going to the Page that has been set but  its poiting page to the “BuyCredit”

    What could be the problem here ?

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 02 Jun 2011 Link to this post

    Hello Vuyiswa Maseko,

    In the code snippets you sent I cannot see where you set the RadHtmlPlaceholder SourceUrl and this is why I am not sure why it is different in debug mode and when published. It might be related to the SourceUrl format - whether you define an absolute or relative url. It might also be related to the IIS settings.

    Can you try to reproduce this issue in a small running sample and send it to us, so that we can further investigate your case? Thank you in advance.

    All the best,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top