在线PDF转换网站集合

Jquery CDN ,

网站加载速度在线监测工具

此实现不是 Windows 平台 FIPS 验证的加密算法的一部分。

07
2015
09

让火狐 FireFox支持js中innerText赋值的方法

 用Javascript重新定义了innerText方法 ,使得在Firefox中也可以使用innerText方法 ,并且此方法解决了firefox中空白字符的问题。



加入下面的代码即可


        function isIE(){ //ie?
            if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1)
                return true;
            else
                return false;
        }
        if(!isIE()){ //firefox innerText define
            HTMLElement.prototype.__defineGetter__( "innerText",
            function(){
                var anyString = "";
                var childS = this.childNodes;
                for(var i=0; i<childS.length; i++) {
                    if(childS[i].nodeType==1)
                        anyString += childS[i].tagName=="BR" ? '\n' : childS[i].textContent;
                    else if(childS[i].nodeType==3)
                        anyString += childS[i].nodeValue;
                }
                return anyString;
            }
            );
            HTMLElement.prototype.__defineSetter__("innerText",
            function(sText){
                this.textContent=sText;
            }
            );
        }

06
2015
09

C#通过API获取电脑第一块硬盘序列号编号

 方法一:

            string strHardDiskID = "";
            try
            {
                ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia");
                foreach (ManagementObject mo in searcher.Get())
                {
                    strHardDiskID = mo["SerialNumber"].ToString().Trim().Replace(" ", "");
                    break; // TODO: might not be correct. Was : Exit For
                }
            }
            catch (Exception ex)
            {
            }

06
2015
09

C#代码多张图片合并的例子

 



public void Main()
{

 List<Image> img = new List<Image>();

 img.Add(Image.FromFile("D:\\Old\\_old\\D\\5265847638_525279bf46[1].jpg"));
 img.Add(Image.FromFile("D:\\Old\\_old\\D\\5265847638_525279bf46[1].jpg"));
 img.Add(Image.FromFile("D:\\Old\\_old\\D\\5265847638_525279bf46[1].jpg"));

01
2015
09

如何更改Telerik控件ChartView的坐标轴浮动标注的位置

            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartCrosshairBehavior PositionChanged="ChartCrosshairBehavior_PositionChanged" />
            </telerik:RadCartesianChart.Behaviors>

01
2015
09

XAML中的Format用法


在 XAML中这样使用


                <telerik:ChartCrosshairBehavior >
                    <telerik:ChartCrosshairBehavior.VerticalLineLabelDefinition >
                        <telerik:ChartAnnotationLabelDefinition VerticalAlignment="Top" Format="{}{0:yyyy-MM-dd HH:mm:ss}"/>
                    </telerik:ChartCrosshairBehavior.VerticalLineLabelDefinition>
                </telerik:ChartCrosshairBehavior>

25
2015
08

SSRS报表打印按钮出现“Unable to load client print control”错误

 

在ASP.net 中调用RDLC 报表,点击报表工具条的打印按钮出现如下错误:

Unable to load client print control


25
2015
08

RDLC 报表中出现 ASP.NET session has expired or could not be found. 错误

 

在ASP.net 中调用ReportViewer,偶尔会出现ASP.NET session has expired or could not be found. 错误,解决方法如下:

第一种方法: 

Request is validated using Application_PreRequestHandlerExecute method of the global.asax file.

25
2015
08

Silverlight动态给Grid添加TextBlock控件

 方法1 :


  protected void Dtable()
        {
            int numrows = 3;
            int numcells = 3;
            for (int j = 0; j < numrows; j++)
            {
                RowDefinition rd = new RowDefinition();
                LayoutRoot.RowDefinitions.Add(rd);

24
2015
08

Silverlight内存释放的问题

 

一、 脚本释放内存的方法



<script type="text/javascript">
    function intervalFlushMemory() {
        setInterval(FlushMemory, 60000);
    }

19
2015
08

Telerik控件ChartView 给图片添加注解并添加时间

 


 1) show a tooltip on annotations?
 2) add a click event (mousedown / mouseup should be fine too) on annotations to do something in response of a click?
 3) update the way an annotation looks based on the mouse being over the annotation