Hiding Iframe src value |
Hiding Iframe src value |
maha_g |
Mar 22 2012, 09:28 AM
Post
#1
|
Group: Members Posts: 2 Joined: 22-March 12 Member No.: 16,766 |
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? |
maha_g |
Mar 23 2012, 06:32 AM
Post
#2
|
Group: Members Posts: 2 Joined: 22-March 12 Member No.: 16,766 |
This is ASP.net
|
pandy |
Mar 23 2012, 07:26 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,732 Joined: 9-August 06 Member No.: 6 |
The HTML source would still show everything if you use include.
|
Lo-Fi Version | Time is now: 27th April 2024 - 02:39 AM |