Quote:
quote:Originally posted by gobotsoup
I have been trying that in C# and it doesnt seem to be working.
code behind:
protected string getUrl()
{
return Session["theUrl"].ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
Session["theUrl"] = "http://reuters.com";
}
ASPX:
<iframe id="Iframe1" src="<% =getUrl(); %>"
style="width:729px;height:594px;"></iframe>
|
Sorry I left out a small item that makes a HUGE difference. its:
src="<% =getUrl(); %>"
the = tells it to send the returned value, basically
Same as
src="<% response.write(getUrl()) %>"
Either will work.
I never use the ; inline in the aspx files either, but I dont program in c much, so im assuming you know what your doing there:)
ciao!
click