增加了全球化及本地化支持。
比如CalendarExtender这个控件,以前我做过一个汉化的 (AjaxControlToolKit.Calendar)中文版
不过在这次的新版本中增加了本地化的支持,只 要在<asp:ScriptManager/>中增加
EnableScriptGlobalization="true"
EnableScriptLocalization="true"
两个属性即可
新添加的ListSearch控件提供了当用户控件获得焦点时,显示提示文本的功能
例
新加入的SlideShow控件提供了幻灯播放图片模式
<
script runat
=
"
Server
"
type
=
"
text/C#
"
>
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public
static
AjaxControlToolkit.Slide[] GetSlides()
{
return new AjaxControlToolkit.Slide[] {
new AjaxControlToolkit.Slide("images/Blue hills.jpg", "Blue Hills", "Go Blue"),
new AjaxControlToolkit.Slide("images/Sunset.jpg", "Sunset", "Setting sun"),
new AjaxControlToolkit.Slide("images/Winter.jpg", "Winter", "Wintery...")};
}
</
script
>
<
asp:Image
runat
="server"
ID
="image1"
Height
="100"
/>
<
asp:Button
runat
="Server"
ID
="prevButton1"
Text
="上一张"
/>
<
asp:Button
runat
="Server"
ID
="nextButton1"
Text
="下一张"
/>
<
ajaxToolkit:SlideShowExtender
runat
="Server"
ID
="slideShowExtender1"
TargetControlID
="image1"
NextButtonID
="nextButton1"
PreviousButtonID
="prevButton1"
SlideShowServiceMethod
="GetSlides"
Loop
="true"
/>
比如CalendarExtender这个控件,以前我做过一个汉化的 (AjaxControlToolKit.Calendar)中文版
不过在这次的新版本中增加了本地化的支持,只 要在<asp:ScriptManager/>中增加
EnableScriptGlobalization="true"
EnableScriptLocalization="true"
两个属性即可
新添加的ListSearch控件提供了当用户控件获得焦点时,显示提示文本的功能
例
<
asp:ListBox
ID
="ListBox1"
runat
="server"
Width
="120px"
>
< asp:ListItem > Compaq </ asp:ListItem >
< asp:ListItem > Digital </ asp:ListItem >
< asp:ListItem > HP </ asp:ListItem >
</ asp:ListBox >
< ajaxToolkit:listsearchextender id ="ListSearchExtender1" runat ="server"
targetcontrolid ="ListBox1"
PromptPosition ="Top"
PromptText ="请选择"
BehaviorID ="ListSearchExtender1" />
< asp:ListItem > Compaq </ asp:ListItem >
< asp:ListItem > Digital </ asp:ListItem >
< asp:ListItem > HP </ asp:ListItem >
</ asp:ListBox >
< ajaxToolkit:listsearchextender id ="ListSearchExtender1" runat ="server"
targetcontrolid ="ListBox1"
PromptPosition ="Top"
PromptText ="请选择"
BehaviorID ="ListSearchExtender1" />
新加入的SlideShow控件提供了幻灯播放图片模式
















