Wednesday, March 21, 2012

parameter in html codes!

Hi, everyone,

I have a .aspx page, and a iframe in the middle. I also have two other sub-pages that i want to be shown in the iframe. According to the action of web control in .aspx page, one of the sub-pages will be activated. But I don't know how to express in the html codes.

<TD>
<IFRAME src="http://pics.10026.com/?src=?"></FRAME>
</TD
or do I have to set up a string to hold the parameters? such as strsomething="<iframe src="http://pics.10026.com/?src=?"></iframe>"

Thank you for any help in advance.

dluzhuYou may try like this:


<TD>
<IFRAME src="http://pics.10026.com/?src=<%#myPath%>"></FRAME>
</TD>

In server side

Public myPath As string = ""

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
myPath = "The path of the page you want to display"
End Sub.


Thank you,Jimmym.

Have a nice weekend!

dluzhu

0 comments:

Post a Comment