[英]Where to place master page in asp .net web project?
I have this folder structure in my project. 我的项目中有这个文件夹结构。
Web,WebControls
along with other folders. Web,WebControls
以及其他文件夹。 My .aspx pages are in Web
folder and master page is in WebControls
folder. 我的.aspx页位于
Web
文件夹中,而母版页位于WebControls
文件夹中。 This has caused some problems. 这引起了一些问题。
All I want to know is what is the best practice to place Master page in the project? 我只想知道在项目中放置母版页的最佳实践是什么? If I can go ahead with the present structure, how can I overcome above problems?
如果我可以按照目前的结构继续前进,该如何克服以上问题?
Thank you very much in advance. 提前非常感谢您。
As you're happy with the solution posted in the comments, I'm reproducing it here: 当您对评论中发布的解决方案感到满意时,我在这里复制它:
Where to leave the MasterPages: 离开母版页的位置:
How to get rid of the problems posted: 如何摆脱张贴的问题:
href="javascript:void()" onclick="myJavascriptFunction()"
. href="javascript:void()" onclick="myJavascriptFunction()"
。 Why my Javascript function is returning undefined: 为什么我的Javascript函数返回未定义:
document ready
is used to attach event handlers, not to define functions. document ready
的document ready
用于附加事件处理程序,而不用于定义函数。 These should stay off this block.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.