iFrame单点登录 [英] iFrame with single sign on

查看:769
本文介绍了iFrame单点登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个生成GUID的app上的sigle符号被传递给另一个apllication上的符号的iframe。我的iframe是:

I am coding a sigle sign on app where a GUID is generated is passed to the iframe for the sign on the other apllication. My iframe is:

<iframe id=iframe1  runat="server" src="https://somewhere.com/rmt/ucMast?theGUID={0} >
</iframe>



如何将guid发布到查询字符串?谢谢。



已添加代码块[/ Edit]


How do you post the guid to the querystring? Thanks.

Code block added[/Edit]

推荐答案

如果您的guid值包含像hfGuidVal这样的变量,那么您可以将值与服务器端链接



frameDoc.Attributes [src] =https://somewhere.com/rmt/ucMast?theGUID=+ hfGuidVal.Value.ToString();



谢谢
if your guid value contain a variable like hfGuidVal then you can link the value with server side

frameDoc.Attributes["src"] = "https://somewhere.com/rmt/ucMast?theGUID=" + hfGuidVal.Value.ToString();

thanks


如果你在会话[guidValue]中存储guid值,那么你就像代码一样使用:



iframe1.Attributes [src] =yourLinkName?guidValue =+ Session [guidValue]。ToString();
if you store guid value in session["guidValue"] then you use like the code:

iframe1.Attributes["src"] = "yourLinkName?guidValue="+Session["guidValue"].ToString();


这篇关于iFrame单点登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆