Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends
HTML
<iframe id="Iframeleft" align="right"  height="388" scrolling="auto" src="www.codeproject.com" width="100%" style="height: 524px; width: 160%;" >
 </iframe>

Can i change the src attribute after the page load
means i want to change this src attribute each time whenever i want ,after page load.
solution with Any Example or link

Thanks
Posted
Updated 19-Feb-13 20:35pm
v3

1 solution

< iframe id="frame1" runat = "server" width = "1000" height = "500" align= "middle" src= "" ></


and use on page load

C#
this.frame1.Attributes.Add("src",your value);
 
Share this answer
 
Comments
patil.nitin8358 20-Feb-13 3:14am    
after page load i want set src attribute
uspatel 20-Feb-13 3:43am    
this.frame1.Attributes.Add("src",your value);
you can add this on any event where you need.

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