Hello
I am using an iframe as follows
<iframe id="frame1" runat="server"/>
And am setting its src value from code behind
frame1.Attributes.Add("src", "default.aspx")
I thought by doing that the value of src wont appear in view source.But after running the page and viewing source this is what i get
<iframe id="frame1" runat="server" src="default.aspx"/>
Is there a way to hide the src value from appearing in souce code?
I tried to put src="" in .aspx hoping that after run it stays the same but it was updated to src="default.aspx"
Any suggestions?
I suppose that's ASP. Doing it client side, with JavaScript, would get rid of the src in the HTML but it would still be visible in the JavaScript source.
Never heard of the RUNAT attribute before. It seems to be used for (server-side) ASP.NET scripting. Confusing by ASP.NET to add server-side code into HTML syntax like that.
if i talk about php then in the other file you made iframe code and then include the file then it surely hide the code and shows the file and hide it
so i don't know in asp or javascript you can google it..
This is ASP.net
The HTML source would still show everything if you use include.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)