Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
184 views
in Technique[技术] by (71.8m points)

asp.net mvc 4 - Switching between subdomains (to same site) at runtime

Our locally hosted self-service application is exposed by an iFrame, on a remotely hosted and administered website.

Let's call the remote site our_domain.dk and our self-service application self-service.our_domain.dk, which is exposed here: our_domain.dk/self-service. This page also contains a script, which adjusts the size of the iFrame, depending of its contents.

Now - for reasons beyond our control - the self-service application itself needs to use an iFrame, in some situations ??

The script does not work, when the iFrame contains another iFrame.

Is it's possible to "jump" between domains at runtime, and still preserve variables in ViewData, TempData etc.?

If so, then the code-behind could perhaps navigate to (itself at) self-service.our_domain.dk when needing to display an iFrame, and back to our_domain.dk/self-service, when not?

Thanks ??

question from:https://stackoverflow.com/questions/65901768/switching-between-subdomains-to-same-site-at-runtime

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...