母版页旁边的datepicker问题 [英] datepicker problem in side the master page

查看:69
本文介绍了母版页旁边的datepicker问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.net和jquery专家。我需要一个帮助

先生我正在使用三层架构。和一个母版页。

来到内容页面。

我的项目正在运行,但我的问题是,一旦我在母版页上创建了datepicker,它就无法运行了。

如果我创建一个简单的页面作为三层体系结构的一部分并在源代码上编写相同的代码,那么它可以工作,但它不适用于三层体系结构。

为什么会发生这种情况请回复

解决方案

99%的母版问题归结为三件事情1)你不理解javascript在*客户端上运行* ,它是你的服务器代码渲染的html的工作原理,所以你需要查看页面的来源以解决为什么事情不起作用,你的aspx标记文件中的内容是无关紧要的2)母版页在上下文中执行* child *页面,而不是它在解决方案树中的位置,因此市场营销中的任何相对路径都不起作用3).net控制元素的ID,使它们不是您认为的那样(参见第1点) )。

hello .net and jquery experts . i need one help
Sir i am using three tier architecture. and one master page .
and come contents pages .
my project is working but my problem is that once i create datepicker on the master page so it is not working .
if i create a simple page a part of three tier architecture and write the same codes on the source code so it works but it does not work on three tier architecture.
why is it happening please reply

解决方案

99% of problems with master pages are down to three things 1) you don't appreciate that javascript runs on the *client*, it works of the html your server code renders so you need to view the source of the page to work out why things aren't working, what is in your aspx markup files is irrelevant 2) the master page executes in the context of the *child* page, not its location in the solution tree so any relative paths in the markeup won't work 3) .net controls the IDs of your elements so they aren't what you think they are going to be (see point 1).


这篇关于母版页旁边的datepicker问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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