Click here to Skip to main content
15,907,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
HTML
<iframe id=iframe1  runat="server" src="https://somewhere.com/rmt/ucMast?theGUID={0} >
</iframe>

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

[Edit]Code block added[/Edit]
Posted
Updated 12-Dec-12 4:41am
v2

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
 
Share this answer
 
Comments
Member 8771757 12-Dec-12 11:39am    
The GUID is generated in codebehind. Di I get rid of the src reference in the iframe?

iframe1.Attributes["src"] = "https://somewhere.com/rmt/ucMast/theGUID.ToString() + sessionGUID.ToString();
if you store guid value in session["guidValue"] then you use like the code:

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900