findcontrol iframe with out giving runat server in c#

Posted by Gopal_nivas under ASP.NET on 1/30/2012 | Points: 10 | Views : 4508 | Status : [Member] | Replies : 3
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

Posted by: Blessyjees on: 1/30/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

If you don't use runat="server", you can't set src value using c#, For setting src you can try javascript code.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 1/30/2012 [Member] Silver | Points: 25

Up
0
Down
i will try to give a code

Thanks,
Sanjay

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 1/30/2012 [Member] Silver | Points: 25

Up
0
Down
Blessy is right, you can not use runat="server"

Follow this links to get some examples
http://geekswithblogs.net/ranganh/archive/2005/04/25/37635.aspx
http://rajeshprajapati.blogspot.com/2009/05/how-to-generate-iframe-at-runtime-using.html


Thanks,
Sanjay

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response