Help,Please

by Sally 11. September 2009 17:22

     VS2008里的一个项目,编译通过,却突遇这个错:Unable to cast object of type 'ASP.module_ajax_ajaxcontrol_aspx' to type 'BasePage'(如附图)。

    真是叫人哭笑不得啊。两个类名完全一样,何谓“无法转换” 。

   上网查了老久,遭遇此难题的人也多,都说的是由VS2005的编译缓存造成的,我也不知道他们说的是对还是错,只需把该目录下的文件清空则行,C:\Documents   and   Settings\Administrator\Local   Settings\Application   Data\Microsoft\VisualStudio\8.0\ProjectAssemblies。

    我电脑上没有这个文件夹,又把ProjectAssemblies作为搜索条件地毯式搜索了一遍也没有,懵了,难道我的vs没有缓存?

    也有的说重启电脑可以清楚VS编译缓存,小妹经验甚少,不太清楚这些东东。向各位同事请教,先谢过了。

Tags:

问题征答

求一正则表达式

by jkeen 23. July 2009 11:56

要求:

找C#代码,非注释代码中执行了GetLabel()函数的地方,GetLabel函数有一个以上参数,只需要找出第一个参数用了变量而不是直接用字符串的代码。

匹配条件(举例):

case 1)  --符合

string resourceid = "UserName";

string userName = this.GetLabel(resourceid);

case 2) --不符合

string username = this.GetLabel("UserName");    -- 不符合

case 3) --不符合

// string userName = this.GetLabel(MESSAGE_UserName);

case 4) --不符合

/*

string userName = this.GetLabel(MESSAGE_UserName);

*/

case 5) --符合

string resourceid = "UserName";

string UserName = this.GetLabel(resourceid + "_ID");

case 6) --符合

string resourceid = "UserName";

string UserName = this.GetLabel(resourceid,this.LangCode);

可能还有其他Case,但要求就是所有调用GetLabel函数的第一个参数为非字符串的代码文件。

 

感兴趣的同事,请帮忙写一下这个正则表达式。谢谢!

Tags:

问题征答

Report layout的问题

by Daniel 14. July 2009 15:22

有下面三个问题解决经验或方法的同事麻烦回帖或单独找我, 必谢!

1. 有报表需要Excel和PDF格式, 在PDF格式里面, 页码计算是正确的, 但是Excel里面的,打印的页码不正确, 总是显示1/1。

2. Excel 报表一个单元格内容没有完全展开, 见下图

3. 报表Risk Description 列对应到三个列, 不可以用来排序。见下图:

Tags:

问题征答

Copyright © 2009 APJ Software

最新评论

Comment RSS

公告

欢迎使用APJ Blog!

日历

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar