使用 VS 2010 创建 ASP.NET 复合自定义服务器控件并使用 JQuery (CDN) 作为嵌入资源?
第一次提问,如有错误请见谅。
在我把头撞到墙上之后,没有头发可以垫着,我终于开始寻求方向了。大多数关于我正在尝试做的事情的书籍、帖子和文章都至少有 2 年历史,并且不涉及 VS 2010。
有人可以给我指出一个网站/书籍/任何可以提供我在标题中所要求内容的有意义示例的网站/书籍/其他内容吗? ?
我正在尝试使用 VS 2010 和 ASP.NET 并使用嵌入式 rousource 创建一个 ASP.NET 自定义 Web 控件,该 rousource 是一个带有简单 jquery 例程的 javascript 文件,该例程将单击事件附加到复选框上。
我整个周末都在自己尝试,成功地让 Web 用户控件在没有嵌入脚本的情况下工作,但在使用自定义服务器控件时似乎无法使引用正常工作。
我可以列出简单的代码,但不想用他们多年来看到的代码淹没帖子。
感谢您的耐心等待,我希望能够在某些层面上做出更多贡献。
谢谢,
FSBarker
First time asking a question so sorry if incorrect.
After beating my head against the wall, and with no hair to pad it I am finally asking for direction. Most books, posts and articles on what I am trying to do are at least 2 years old and don't cover VS 2010.
Can someone point me to a site/book/whatever that gives meaningful examples of what I have asked in the title?
I am trying to create an ASP.NET custom web control, using VS 2010 and ASP.NET, and using an embedded rousource that is a javascript file with a simple jquery routine that attaches a click event onto a checkbox.
Trying it on my own all weekend I have successfullly gotten a web user control to work without having the script be embedded, but can't seem to get the references to work correctly when using a custom server control.
I can list the simple code but don't want to overwelm the post with code that they have seen over the years.
Thanks for your patience, and I hope to be able to contribute more on some levels.
Thanks,
FSBarker
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这会对您的问题有很大帮助 http://weblogs.asp.net/dwahlin/archive/2007/04/29/creating-custom-asp-net-server-controls-with-embedded-javascript.aspx
I think this will help a lot with your problem http://weblogs.asp.net/dwahlin/archive/2007/04/29/creating-custom-asp-net-server-controls-with-embedded-javascript.aspx