AjaxToolkit 3.5不工作工作、AjaxToolkit

2023-09-10 20:12:49 作者:帅到掰弯你。

我想用从这里的颜色拾取下载ajaxtool套件。

当我尝试使用这种方法在任何我的网页,它显示了我的错误

 此页面丢失这是必需的CSS一HtmlHead控制
 stylesheetlink将被加入。请添加<头=服务器/取代。
 

什么是真正的原因。 我使用ToolScriptManager而不是脚本管理器的文件中说。 我使用Asp.net 3.5,并使用颜色拾取控制下的内容页,并在同一个地方加入ToolScript经理。

正如所说由rafel

 < HEAD>
<冠军> L< /标题>
    <链接HREF =<%= RESOLVEURL(〜/ CSS / style.css文件)%>中相对=样式类型=文本/ CSS/>
    <链接相对=样式类型=文/ CSS的href =<%= RESOLVEURL(〜/ CSS / chromestyle.css)%>/>
    <脚本SRC =<%= RESOLVEURL(〜/ JS / JScript.js)%>中类型=文/ JavaScript的>< / SCRIPT>
    <脚本类型=文/ JavaScript的SRC =htt​​p://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js>< / SCRIPT>
    <脚本类型=文/ JavaScript的SRC =<%= RESOLVEURL(〜/ JS / chrome.js)%>>< / SCRIPT>


    < ASP:的ContentPlaceHolder ID =头=服务器>
    < / ASP:的ContentPlaceHolder>
< /头>
 
探索 Eclipse 的 Ajax Toolkit Framework

如果我增加了RUNAT在脑子里,我开始收到此错误

  Controls集合不能修改,因为控制
包含code块(即<%......%>)。
 

解决方案

我收到了山塔努越来越相同的事件序列。它告诉我到RUNAT =服务器添加到头,当我添加了AJAX控件工具包组合框。所以,我做到了,然后开始说

Controls集合不能修改,因为控制 包含code块(即<%...%>)。又宛若山塔努的情况下

如果我正确地读这篇文章,是不是说我不能使用AJAX控件工具包的组合框,如果我有很多行内code这个aspx文件(包括在Java /直列VB以及HTML /内嵌VB) ?我的意思是,嘿,我知道我们的aspx页面是丑陋的,勉强挂在,但严重?

I am trying to use ajaxtool kit downloaded from here for colorpicker.

When i tries to use this on any of my page, it shows me an error

        This page is missing a HtmlHead control which is required for the CSS
 stylesheetlink that is being added. Please add <head runat="server" />. 

What can be the reason. I am using ToolScriptManager rather than Script Manager as said in the documentation. I am using Asp.net 3.5 and using colorPicker control under a content page and adding ToolScript Manager in the same place.

As said by rafel

<head>
<title>l</title>
    <link href="<%= ResolveUrl("~/css/style.css") %>" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="<%= ResolveUrl("~/css/chromestyle.css") %>"/>
    <script src="<%= ResolveUrl("~/js/JScript.js") %>" type="text/javascript"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~/js/chrome.js") %>"></script>


    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>

If I adds runat in head i starts getting this error

    The Controls collection cannot be modified because the control 
contains code blocks (i.e. <% ... %>). 

解决方案

I am getting the same sequence of events that Shantanu was getting. It tells me to add the runat=server to the HEAD when I add the AJAX Control Toolkit ComboBox. So I did that and then it started saying

"The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)." again just like in Shantanu's case.

If I am reading this correctly, is it saying I cannot use the AJAX Control Toolkit's ComboBox if I have lots of inline code in this aspx file (both in java/inline vb as well as HTML/inline vb)? I mean hey I know our aspx pages are ugly and barely hanging on, but seriously?