母版页正确使用 [英] Master Page Proper Use
问题描述
大家好,
我正在使用prj网站(asp.net,C#语言)使用主页面.我有一个具有扩展和折叠效果的常见问题页面,该页面在运行时即附加在问题上(例如,当我单击问题时)问题是,当我在母版页上使用常见问题解答jQuery效果时,它将在运行时向调用整个效果的div标签添加一个母版页ID,即"ContentPlaceHolder1",因为此jquery效果不起作用.
hi all,
i am working on a website prj (asp.net, C# language)in which i am using Master page.i have a FAQ page with Expand and Collapse effect that is attached on the questions at run time ie(when i click on question it expands showing the answer to the Question) .The issue is that when i use Faq jquery effect with Master page it adds a Master page ID ie "ContentPlaceHolder1" at run time to the div tag in which the whole effect is called,becuase this jquery effect does not work.
<br />
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
谁能帮我Plzzz ..
谢谢.
:)
can anybody help me Plzzz..
thankyou.
:)
推荐答案
您必须使用一些额外的代码,例如
Hi,
you''ve to use some extra code for that like
(#
("#<%=divtag.ClientID%>').html("ghgf");
或只是另一种方式,您必须将每个标签都提到为
or only another way is you''ve to mention every tag as
(#MainContent_contdiv").html("dfgdfgdfg");
最好的
("#MainContent_contdiv").html("dfgdfgdfg");
All the Best
这篇关于母版页正确使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!