如何打开页面正文中的链接 [英] How to open the link in the body of the page

查看:72
本文介绍了如何打开页面正文中的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要打开页面正文的外部链接,而不需要去新标签

我尝试了用于打开新标签的目标(blank.self,parent)。然而。当从菜单中单击链接时,我需要指定标记这样的div或任何显示页面的东西。





请帮助

谢谢



我尝试过:



这个链接

外部链接



  • Blackboard




  • e:愿景


  • I need to open the external link on the body of the page without going to new tab
    I tried target (blank.self, parent) which are for opening a new tab. however. I need to specify tag such div or any thing to display the page when the link is clicked from the menu.


    please help
    thank you

    What I have tried:

    this the link
    External Links


    • Blackboard


    • e:Vision



    • <! - 完成的行动DONUTS CHART - >


      <!--COMPLETED ACTIONS DONUTS CHART-->








      关于讲座的最新评论



      <! - First行动 - >

      < asp:DataList ID =dlIdeaDataSourceID =SqlDataSource2runat =server

      Width =100%Horizo​​ntalAlign =LeftCellPadding = 2\" >



      < itemtemplate>


      Recent Comments on lectures


      <!-- First Action -->
      <asp:DataList ID="dlIdea" DataSourceID="SqlDataSource2" runat="server"
      Width="100%" HorizontalAlign="Left" CellPadding="2">

      <itemtemplate>














      < muted><%#Eval(IssueDate)%>

      <muted><%#Eval("IssueDate") %>


      < asp:Label ID =Label5runat =serverWidth =200pxForeColor =BlackFont-Bold =trueText ='<%#Eval(MName)%> ;'>

      < asp:Label ID =Label8runat =serverForeColor =BlackFont-Bold =trueText ='<%#Eval(VideoName )%>'>





      < asp:Label ID =Label6runat =serverFont-Italic =trueForeColor =BlackText ='<%#Eval(comment)%>'>

      <asp:Label ID="Label5" runat="server" Width="200px" ForeColor="Black" Font-Bold="true" Text='<%#Eval("MName") %>'>
      <asp:Label ID="Label8" runat="server" ForeColor="Black" Font-Bold="true" Text='<%#Eval("VideoName") %>'>



      <asp:Label ID="Label6" runat="server" Font-Italic="true" ForeColor="Black" Text='<%#Eval("comment") %>'>













      < asp:SqlDataSource ID =SqlDataSource2runat =serverConnectionString =<%$ ConnectionStrings:ConnectionString%>

      SelectCommand =SELECT TOP(5)t1.IssueDate,t1.comment,t2。*,t3.MName,t4。*,t5。* FROM [Comments] AS t1 INNER JOIN [Material] AS t2 ON t2.MaId = t1.MaID INNER JOIN [模块] AS t3

      ON t3.MId = t2.MID INNER JOIN [ModuleRelation] AS t4 ON t4.MId = t3.MId INNER JOIN [用户] AS t5 ON t5.UniID = t4.UId WHERE(t5。[UniID] = @UId)ORDER BY t1。[IssueDate] DESC>

      < SelectParameters>

      < asp:SessionParameter SessionField =UniIDName =UIdType =String>

      < / SelectParameters>






      <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
      SelectCommand="SELECT TOP(5) t1.IssueDate, t1.comment, t2.*, t3.MName,t4.*,t5.* FROM [Comments] AS t1 INNER JOIN [Material] AS t2 ON t2.MaId=t1.MaID INNER JOIN [Modules] AS t3
      ON t3.MId=t2.MID INNER JOIN [ModuleRelation] AS t4 ON t4.MId=t3.MId INNER JOIN [Users] AS t5 ON t5.UniID=t4.UId WHERE (t5.[UniID] = @UId) ORDER BY t1.[IssueDate] DESC">
      <SelectParameters>
      <asp:SessionParameter SessionField="UniID" Name="UId" Type="String">
      </SelectParameters>










      推荐答案

      ConnectionStrings:ConnectionString%>

      SelectCommand =SELECT TOP(5)t1.IssueDate,t1.comment,t2。*,t3.MName,t4。*,t5。* FROM [Comments] AS t1 INNER JOIN [Material] AS t2 ON t2 .MaId = t1.MaID INNER JOIN [模块] AS t3

      ON t3.MId = t2.MID INNER JOIN [ModuleRelation] AS t4 ON t4.MId = t3.MId INNER JOIN [Users] AS t5 ON t5.UniID = t4.UId WHERE(t5。[UniID] = @UId)ORDER BY t1。[IssueDate] DESC>

      < SelectParameters>

      < asp:SessionParameter SessionField =UniIDName =UIdType =String>

      < / SelectParameters>



      ConnectionStrings:ConnectionString %>"
      SelectCommand="SELECT TOP(5) t1.IssueDate, t1.comment, t2.*, t3.MName,t4.*,t5.* FROM [Comments] AS t1 INNER JOIN [Material] AS t2 ON t2.MaId=t1.MaID INNER JOIN [Modules] AS t3
      ON t3.MId=t2.MID INNER JOIN [ModuleRelation] AS t4 ON t4.MId=t3.MId INNER JOIN [Users] AS t5 ON t5.UniID=t4.UId WHERE (t5.[UniID] = @UId) ORDER BY t1.[IssueDate] DESC">
      <SelectParameters>
      <asp:SessionParameter SessionField="UniID" Name="UId" Type="String">
      </SelectParameters>











      在同一个标​​签中打开链接是_self



      HTML DOM Anchor target Property [ ^ ]



      或者只是完全忽略目标,它将默认为_self。如果你问如何在div中打开链接,那么你就不能。如果目标位于您自己的站点上,您可以使用类似jQuery的ajax.load



      .load()| jQuery API文档 [ ^ ]



      这只有在html适合嵌入另一个页面时才有效,即不是一个带有html和body的整页,并且支持css需要等等。 />


      您的另一种选择是使用iframe并加载您的目标页面。
      It's "_self" to open the link in the same tab

      HTML DOM Anchor target Property[^]

      or just leave out the "target" altogether and it'll default to _self. If you're asking how you can open the link in a div, then you can't. If the target is on your own site you could use something like jQuery's ajax.load

      .load() | jQuery API Documentation[^]

      That will only work if the html is suitable for embedding in another page, ie that is not a whole page with html and body, and that the css is needs is supported etc etc.

      Your other alternative is to use an iframe and load your target page in that.


      这篇关于如何打开页面正文中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆