Skip to content

{ Monthly Archives } 七月 2008

中文维基百科可以访问了

今天,中文维基百科又可以不带套地访问部分页面了。部分页面还是不能被访问地说。估计是ay的原因吧。可能也就只能访问一个月左右的时间。
访问地址:http://zh.wikipedia.org

标签:wikipedia

相关日志

无相关日志

Tagged

NetAdvantage的NET Project Upgrade Utility的Bug

当使用NetAdvantage的NET Project Upgrade Utility将原低版本Project升级到新版本时,出现一个莫名其妙的问题:如果在aspx文件中,含有中文字的话,有的会将中文变成乱码,而有的却不会变成乱码。不知是怎么回事。

标签:NET, NetAdvantage

相关日志

WebCombo过滤中文不完全解决办法 (0)
WebCombo in UltraWebGrid (0)
UltraWebGrid的一个Bug (0)
UltraWebGrid的又一Bug? (0)
UltraWebGrid多表头的实现 (0)

Tagged ,

在UltraWebGrid中增加CheckBox列

首先,先在UltraWebGrid中增加一个模板列(Templated Column),该列的Type值要设置成”CheckBox”。那么,现在在UltraWebGrid中就已有了一个CheckBox列。
现在,要在该列的Header上加上一个CheckBox,当点击这个CheckBox时,可以在客户端上进行“全选”/“全不选”操作。

编辑这列的HeaderTemplate,增加一个id、name都为cbSelectAll的Checkbox。如下所示:
<igtbl:TemplatedColumn Type=“CheckBox”>
<HeaderTemplate>
<input id=“cbSelectAll” name=“cbSelectAll” type=“checkbox” onclick=“SelectAll(0)”/>
</HeaderTemplate>
</igtbl:TemplatedColumn>

增加JavaScript函数SelectAll()和igrdInitializeLayout():
var oGrid;
var cbSelectAll;
//Selects all checkboxes in the grid
function SelectAll(colIndex)
{
var checked = cbSelectAll.checked;
for (i = 0; i < oGrid.Rows.length; i++)
{
oGrid.Rows.getRow(i).getCell(colIndex).setValue(checked);
}
}
//Intialization function which sets the grid reference
function igrdInitializeLayout(object)
{
oGrid = igtbl_getGridById(object);
//need to set it here due to Infragistic’s handling of columns.
cbSelectAll = document.getElementById(“cbSelectAll”);
}

设置UltraWebGrid的客户端事件 ClientSideEvents.InitializeLayoutHandler=”igrdInitializeLayout”

就可以试试看了。

标签:NET, NetAdvantage, UltraWebGrid

相关日志

WebCombo in UltraWebGrid (0)
UltraWebGrid的一个Bug (0)
UltraWebGrid的又一Bug? (0)
UltraWebGrid多表头的实现 (0)
在UltraWebGrid的InitializeRow事件中,操作模板列中的控件 [...]

Tagged , ,

在客户端阻止删除UltraWebGrid中的行

首先,要设置UltraWebGrid的DisplayLayout.ClientSideEvents.BeforeRowDeletedHandler = “BeforeDelete”。然后增加js函数BeforeDelete.
function BeforeDelete(gridname, rowid)
{
//获取要删除的row
var row=igtbl_getRowById(rowid);
//获取当前行的第2个单元格
var value=row.getCell(1).getValue();
//检查该单元格的值,如果为真,则不删除该row。否则就删除该row
if(value==true)
{
return true;
}
}

标签:NET, NetAdvantage, UltraWebGrid

相关日志

WebCombo in UltraWebGrid (0)
UltraWebGrid的一个Bug (0)
UltraWebGrid的又一Bug? (0)
UltraWebGrid多表头的实现 (0)
在UltraWebGrid的InitializeRow事件中,操作模板列中的控件 (0)

Tagged , ,

在客户端删除UltraWebGrid的所有行

有时需要在客户端上删除某个UltraWebGrid中所有的行,而如果按照帮助文件中例子的方法来操作的话,是无法删除行的。经询问NetAdvantage工程师,给出一个能用的例子。

?View Code JAVASCRIPT//帮助中的例子,不可用
function DeleteRow() {
// Row deletion needs to be allowed
igtbl_getGridById("UltraWebGrid1").AllowDelete=1;
// Get the first row in the grid
var row=igtbl_getRowById("UltraWebGrid1r_0");
// Delete the first row in the grid
igtbl_deleteRow("UltraWebGrid1","UltraWebGrid1r_0");
// Create a counter for the row id
var cnt=0;
// Create a loop, if the row has a next sibling then we need to delete it
while(row.NextSibling!=null) //在这步,row.NextSibling总是为Undefined类型。以致不能删除行
{
// Increment the counter for [...]

Tagged , ,

Avira AntiVir误报TM2008中TSEngine.DAT文件为蠕虫病毒

最近发现,小红伞(Avira AntiVir)将TM2008中查找木马的引擎文件(TSEngine.dat)文件报为WORM/Injector.A.92480.B蠕虫病毒。
小红伞的Search engine为V8.01.01.12,2008-7-23。Virus definition为V7.00.05.165,2008-7-24

标签:腾讯

相关日志

TM2008的一个Bug (0)

Tagged

WebCombo in UltraWebGrid

在将NetAdvantage升级到2008 vol2后,发现在2008 vol1版本中能正常使用的UltraWebGrid绑定WebCombo功能,如果WebCombo的Editable属性设为true话,那么在2008 vol2版本中将会抛出异常:WebCombo has the Editable property set to True; therefore it must have equal DataTextField and DataValueField to be used as an editor in an UltraWebGrid.
经与NetAdvantage开发人员联系,已确定在2008 vol2版本中,如果WebCombo的DataValueField不与DataTextField相同的话,那么在UltraWebGrid中的WebCombo不支持Editable=true。解决办法是用2008 vol1这个版本。
NetAdvantage开发人员回信如下:
The webcombo does not support editable=true, when the DataValueField is different from the DataTextField.  This is done because the user only has the ability to type [...]

Tagged , , ,

UltraWebGrid的一个Bug

在使用NetAdvantage for .NET 2008 Vol.2 CLR3.5中的UltraWebGrid时,发现一个Bug.
如果按照Samples中Grid下的Row Updating例子写代码,那么当点击“Sumbit Change”时,会显示异常信息:System.NullReferenceException: 未将对象引用设置到对象的实例。
跟踪进去,在UpdateRowBatch事件中,并没报错,而却还没进”Sumbit Change”按钮的OnClick事件时,就已抛出异常了。
看了下代码,将databind()屏蔽,就不再抛同异常。

标签:NET, NetAdvantage, UltraWebGrid

相关日志

WebCombo in UltraWebGrid (0)
UltraWebGrid的又一Bug? (0)
UltraWebGrid多表头的实现 (0)
在UltraWebGrid的InitializeRow事件中,操作模板列中的控件 (0)
在UltraWebGrid中增加CheckBox列 (15)

Tagged , ,

NetAdvantage for .NET 2008 Vol.2 CLR3.5 下载

NetAdvantage for .NET 2008 Vol. 2 Bundle [CLR 3.5] 下载:
HTTP下载
eMule下载
SN:9307-1200212-2268136

标签:NET, NetAdvantage

相关日志

WebCombo过滤中文不完全解决办法 (0)
WebCombo in UltraWebGrid (0)
UltraWebGrid的一个Bug (0)
UltraWebGrid的又一Bug? (0)
UltraWebGrid多表头的实现 (0)

Tagged ,

HM VNISEdit的一个BUG

在使用NSIS的脚本编辑器vnisedit时,发现该软件有一个严重的BUG。
当以“脚本向导”方式开始一个新脚本,在指定应用程序文件中,添加“DirTree”时,如果没有选择“单独添加每个文件”选项,那么生成的脚本会以*.*方式将该目录下所有的文件增加到目的目录中。但在生成的脚本中删除脚本这里,却会以delete *.*方式删除目的目录下所有的文件。
在这种情况下,如果目的目录是安装目录的话,则该方式没有问题。但如果目的目录为非安装目录的话,该方式会将目的目录中不能删除的文件都删除掉。特别是目的目录是$win、$sys之类系统目录的话,一但卸载应用程序,必将会导致系统不能使用!在使用vnisedit时一定要注意这点,本人就是吃过这亏的,搞得还得重装系统!

标签:NSIS

相关日志

无相关日志

Tagged