.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Findcontrol iframe without giving runat server

Posted By: gopal     Posted Date: January 30, 2012    Points:5   Category :ASP.Net
hi..

i want to give src value to a iframe through c#.
<iframe id="fraDisabled" width="528" height="473"></iframe>

here i dont want to use runat =server in my iframe but i have give src value programmatically.
how to do this..

need ur suggestions..
regards
gopal.s

Responses
Author: Deco             
Posted Date: January 31, 2012     Points: 20   

if you do not have the attribute runat=server then the element cannot be accessible from the code behind

You have to play with it in the client itself

if you want to assign src attribute programmatically then you can assign the value through javascript

Regards,
Deco


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend