Re: Url Redirection
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Thu, 07 Aug 2008 06:47:44 GMT
Thanks for your reply Nick,
For this case, since the server-side has forms authentication to protect
the page. How about this;
1 for your add-in shell code, you can always first establish a initial http
get request to check whether you're redirected or not(or can directly
access the target page).
2. if you're not login yet and redirected, you should programmtically login
first.
3. After make sure you're login, you can just send http post with the
correct querystring(need to add the cookie data also).
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Nick" <a@xxxxx>
Subject: Re: Url Redirection
Date: Wed, 6 Aug 2008 14:27:07 +0100
be
Hi Steven,
Indeed, it's part of an unmanaged addin for another application and
invoking via the shell is the most efficient way of achieving the desired
result as the browser will need to be opened if it isn't already.
I don't seem to have any control over this as it's all handled
internally and controlled via the web.config file afaik. So here is my
current thoughts...
1. The URL is created and escaped correctly.
2. The URL works on the site if logged in already
3. If not logged in ASP.NET screws with the URL and makes it invalid
then kicks you back to the login page.
So using my advanced powers of deduction. asp.net is screwing with my
query string and making it unusable? Therefore I can't see how this can
worked around unless I can modify the query string during this process butOr
unfortunately none of my code is hit in page load for me to be able to.
am I able to perform the bounce manually somehow?
Thanks for your time again!
Nick.
"St
.
- References:
- Re: Url Redirection
- From: Steven Cheng [MSFT]
- Re: Url Redirection
- From: Nick
- Re: Url Redirection
- Prev by Date: Re: Image In User Control
- Next by Date: Re: Image In User Control
- Previous by thread: Re: Url Redirection
- Next by thread: RE: custom container control - wrapping child controls
- Index(es):
Relevant Pages
|