Iframe or similar
-
-
Hi, How can I programmatically change the Src property of an HTML IFrame?? If it's impossible, have you got any other hint for doing something similar (ie. display a web page inside another with the possiblity of manipulating its source)? Thanks a lot!
You can use a Web User Control which is an ascx file. This is the replacement for frames. You create your various web user controls and then say you use a table on the main page. You just create an extra column or whatever to hold this and just drag it over to that column. This can also be changed Im sure at runtime. You can also change what is displayed whether it be dynamically created or just loaded from a text file on the user control itself through something like session variables. There are various ways of communicating b/t the web user control and the actual page and if you search you will find many ways of accessing things through the pages just like frames. Cleako
-
You can use a Web User Control which is an ascx file. This is the replacement for frames. You create your various web user controls and then say you use a table on the main page. You just create an extra column or whatever to hold this and just drag it over to that column. This can also be changed Im sure at runtime. You can also change what is displayed whether it be dynamically created or just loaded from a text file on the user control itself through something like session variables. There are various ways of communicating b/t the web user control and the actual page and if you search you will find many ways of accessing things through the pages just like frames. Cleako
-
Thanks, The question is : will a user control give the opportunity to display another whole web page in it, and without another iframe in it??? If so, I would like to know how? Thanks.
From what I understand - the web user control allows you to put whatever you want in it. You can put a simple link list to the left of the page or you could have a header or an entire page if that is what you want. Just add the web user control to the project and do what you would to any other page to it and then just move it over to the page you want the frame on. This may not do what you are looking for, I dont know for sure but it is a good way to utilize common elements even if they change page to page. Cleako