TextView 支持<a> <b> <br> <i> <p>标签<a href = "xxx/aaa.aspx">hyperlink</a>
可以跳转到其他页面<a href = "#Form2">hyperlink</a>
却无法跳转到当前页面的指定Form(LINK控件支持If the value of the link starts with a number symbol (#), it is rendered as a postback event)目的:根据参数自动生成多个连接用做导航,但有些连接需要跳转到连接所在页面上的某一Form
如下:
首页/一级菜单/二级菜单……请问如何实现?动态添加LINK?
谢谢!
可以跳转到其他页面<a href = "#Form2">hyperlink</a>
却无法跳转到当前页面的指定Form(LINK控件支持If the value of the link starts with a number symbol (#), it is rendered as a postback event)目的:根据参数自动生成多个连接用做导航,但有些连接需要跳转到连接所在页面上的某一Form
如下:
首页/一级菜单/二级菜单……请问如何实现?动态添加LINK?
谢谢!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Request.QueryString("formname") = "form2" Then ActiveForm = Form2
ElseIf Request.QueryString("formname") = "form3" Then
ActiveForm = Form3 End If
End Sub
<mobile:Form runat="server" id="Form1">
<FONT face="宋体">
<mobile:TextView id="TextView1" runat="server">
<a href="index.aspx?formname=form2">form2</a>
</mobile:TextView>
<mobile:TextView id="TextView2" runat="server">
<a href="index.aspx?formname=form3">form3</a>
</mobile:TextView>
</FONT>
</mobile:Form>
<FONT face="宋体">
<mobile:Form id="Form2" runat="server">form2</mobile:Form>
<mobile:Form id="Form3" runat="server">form3</mobile:Form></FONT>
new your form for the click event then show it