简体   繁体   English

如何从Internet的default.aspx重新获得Intranet的default.aspx

[英]how to get back on intranet's default.aspx from internet's default.aspx

First let clear my scenario: I have a website on public ip IIS residing in a city (say city A) and another IIS running locally residing in a City B. 首先,让我弄清楚我的情况:我有一个位于城市(例如,城市A)的公用ip IIS的网站,而另一个本地运行于城市B的IIS。

Now, my website is running on City B's IIS and fetching data from local server is working fine. 现在,我的网站正在城市B的IIS上运行,并且从本地服务器获取数据的工作正常。 On the other hand the City A's IIS website is working and fetching the data from their local database server. 另一方面,城市A的IIS网站正在运行,并正在从其本地数据库服务器中获取数据。

on City B server I have created a default.aspx page which have two linkbutton which say click this to see city B data and click this to see city A data. 在City B服务器上,我创建了一个default.aspx页面,该页面具有两个linkbutton,分别单击该按钮以查看城市B数据,然后单击此按钮以查看城市A数据。

so, when user click on city B linkbutton then the webpages run on their local, but when user click on city A linkbutton then via internet the city B peoples can view the data of City A. 因此,当用户单击城市B链接按钮时,网页将在其本地运行,但是当用户单击城市A链接按钮然后通过互联网时,城市B的人们可以查看城市A的数据。

So far so good, but on web pages their is button named as go to Main, so as city B accessing the web pages of City A and click on Main button then it showing the city A's default.aspx page. 到目前为止,一切都很好,但是在网页上,它们的按钮名为转到主站点,因此城市B访问城市A的网页并单击主按钮,然后显示城市A的default.aspx页面。

So, my question is that, is there a way that my site can rectify that from where the page have been redirected and when main button click on either side it must see and show their own default.aspx pages. 因此,我的问题是,我的网站是否有办法纠正从页面重定向到的地方,并且在主按钮单击任一侧时都必须看到并显示其自己的default.aspx页面。

I hope I am able to express my scenario. 我希望我能表达自己的观点。 if not then please you may see the diagram, which may clear you what I am asking for. 如果没有,请您看一下该图,该图可以使您清楚我的要求。

http://202.61.43.37/html/Doc1.html

looking forward to your early and kind response 期待您早日和善的回应

Regards 问候

MABamboat 游艇

If user is on City B site and clicks on link button to go to City A site, than pass a parameter in query string to tell Site A that it is coming from Site B. 如果用户位于城市B站点上,然后单击链接按钮转到城市A站点,则在查询字符串中传递一个参数以告知站点A它来自站点B。

If site A is a single page site than you can check the query string and if value exists, than on clicking Main send user to site B Main other wise site A Main. 如果站点A是单页站点,则可以检查查询字符串,如果值存在,则单击“主用户”将用户发送到站点B“主”,否则单击“站点A主”。

If there are more than one pages than keep it in session that user has come from other site and you have to send him back to that site, I hope you understood what I am trying to say. 如果有多个页面而不是保持会话状态,则该用户来自其他站点,并且您必须将其发送回该站点,希望您理解我想说的话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM