根据另一页上的链接打开手风琴的特定部分 [英] Open a specific section of an accordion based on link from another page

查看:54
本文介绍了根据另一页上的链接打开手风琴的特定部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的主页上有两个标题.这些标题链接到另一个页面(news.aspx). news.aspx上的新闻文章以手风琴样式存储.

我想要的是...在首页上单击新闻标题时,它将重定向到该news.aspx页,并且与该标题有关的手风琴部分将已经打开.

有什么办法可以解决吗?
我知道我需要创建一个function(),但我不太确定如何去做.你能帮忙吗?

非常感谢

Hi
I have a homepage that has two titles on. these titles link to another page (news.aspx). The news articles on news.aspx are stored in an accordion style.

what i want is...when the title of the news article is clicked on the homepage, it will redirect to that news.aspx page and the accordion section relating to that title will already be open.

is there any way that is can be done please?
i know i need to create a function() but im not too sure how to go about it. can you please help.

many thanks

推荐答案

在您的主页中,您应该使用超链接
In your home page, you should use hyperlink
<asp:hyperlink id=""HyperLink1"" runat=""server"" navigateurl=""News.aspx">News</asp:HyperLink><br" mode="hold" xmlns:asp="#unknown" /> <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="AboutUs.aspx">AboutUs</asp:HyperLink>


这篇关于根据另一页上的链接打开手风琴的特定部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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