|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
源代码保护方面其实现在考虑得没那么多了..NET也可以反编译.ASP写得复杂的话别人能看得懂的话.他也有能力自己写了.这方面担心的倒不太多.纵观现在网上可以下载的那些所谓BBS还有什么网站等等的源代码chart<!--HerewearecallingtheLPKfile.ThisLPKfile
wascreatedusingthesamemethodexplainedinthearticle-->
<objectCLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<paramNAME="LPKPath"VALUE="mschart5.lpk">
</object>
<--Hereiswhereweareactually"instantiating"the
ActiveXcontrol.Idownloadedthefilemschart5.cabfrom
Microsoftswebsite.Ithasbeendigitallysigned.-->
<OBJECTID="MSChart1"WIDTH=100%HEIGHT=95%
CLASSID="CLSID:31291E80-728C-11CF-93D5-0020AF99504A"
codebase="mschart5.cab">
</OBJECT>
<scriptLANGUAGE="Vbscript">
Now,letssetthechartproperties...!!!
Thissetsthecharttoalinegraph...
MSChart1.ChartType=3
Setthecolorandwidthoftheline
Thissetsthepencolortoblack(0,0,0)
andwidthto50pixels.
MSChart1.Plot.SeriesCollection(1).Pen.VtColor.Set0,0,0
MSChart1.Plot.SeriesCollection(1).Pen.Width=50
Thissetsthechartslabelstovariousformats,
fonts,andsizes.
Fori=1ToMSChart1.Plot.Axis(1).Labels.Count
FormattheChartlabelstoCurrency
MSChart1.Plot.Axis(1).Labels(i).Format="$0,###"
SetthefonttoTahoma
MSChart1.Plot.Axis(1).Labels(i).VtFont.Name="Tahoma"
Setthefontsizeto10pt
MSChart1.Plot.Axis(1).Labels(i).VtFont.Size=10
Next
Thissetsthe#ofrowsinthechart
MSChart1.RowCount=5;
Thissetsthenumberofcolumnsperrow.
MSChart1.ColumnCount=2
Thisindicatestoshowthelabel
MSChart1.ShowLegend=True
forx=1to5Thenumberofrowswehave
Thissetswhatcurrentrowweareediting
MSChart1.Row=x
Thissetstherowslabel
MSChart1.RowLabel="Row"&x
Thisplotsthepointsforbothcolumns(1and2)
forthecurrentrow(x).Thevaluebeing
plottedisx*5andx*10
callMSChart1.DataGrid.SetData(x,1,x*5,nullFlag)
callMSChart1.DataGrid.SetData(x,2,x*10,nullFlag)
next
</script>
</p>ASP由于使用了COM组件所以它会变的十分强大,但是这样的强大由于WindowsNT系统最初的设计问题而会引发大量的安全问题。只要在这样的组件或是操作中一不注意,哪么外部攻击就可以取得相当高的权限而导致网站瘫痪或者数据丢失; |
|