function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
alexsummersalexsummers 

Redirecting back to Salesforce

Hi guys!

In developing .NET apps do you have suggestions on how to redirect back to the Salesforce site?

I have this app that does something in an Accounts object. It is accessed via a weblink. I have configured this weblink to open in Salesforce.com window without the sidebar.

In my code:

String sforceUrl = "https://na1.salesforce.com/";

String accountId = Request.QueryString["AccountId"];

sforceUrl = sforceUrl + accountId;

Response.Redirect(sforceUrl);

This does not generate errors, the problem is that I have another Salesforce window within a Salesforce window.

I would really appreciate some help. Thanks in advance!!!

 

benjasikbenjasik
I think you can use the javascript parent.redirect for this. Or parent.location

<script>
window.parent.location.href = https://na1.salesforce.com/001.....
<script/>

Message Edited by benjasik on 03-03-2005 07:26 AM

alexsummersalexsummers
hey thanks that did the trick