在html中
<IFRAME id="contentFrame" name="tml_main" src="<asp:Literal id='Literal1' runat='server'></asp:Literal>">
</IFRAME>
在后台:
Protected Literal1 As System.Web.UI.WebControls.Literal
Literal1.Text = "main.htm"
要在iframe显示不同的页面,只要传递给Literal1.Text 就可以了
<IFRAME id="contentFrame" name="tml_main" src="<asp:Literal id='Literal1' runat='server'></asp:Literal>">
</IFRAME>
在后台:
Protected Literal1 As System.Web.UI.WebControls.Literal
Literal1.Text = "main.htm"
要在iframe显示不同的页面,只要传递给Literal1.Text 就可以了
<asp:HyperLinkColumn Text="123" DataNavigateUrlField="usercode" DataNavigateUrlFormatString="relogin.aspx?id={0}"></asp:HyperLinkColumn>