中国站长下载-为中国站长提供最好最全的建站资源! 首 页发布资源有事留言繁體中文
设为首页
加入收藏
联系我们
 
您当前的位置:中国站长下载 -> 文章中心 -> 网页编程 -> .NET编程 -> 文章内容  虚拟主机 域名注册 退出登录 用户管理
栏目导航
· ASP编程 · .NET编程
· PHP编程 · JSP编程
· CGI 专区
热门文章
· sndvol32 - sndvol3...
· [组图] FLASH:《大话李白》...
· 个人网站到底能赚多...
· [图文] Rundll.exe是病毒吗...
· [组图] Flash:制作MV
· 价值12万元的网站SE...
· 网站创业者,你需要...
· 一个成功的网站设计...
· [图文] FLASH:韩国导航条解...
· 中国网站的赚钱模式...
相关文章
· 让ASP.NET简便使用S...
· 让ASP.NET简便使用S...
· 让ASP.NET简便使用S...
· 让ASP应用系统成为跨...
· 让ASP应用系统成为跨...
· 让ASP应用系统成为跨...
· awhost32 - awhost3...
· cagent32 - cagent3...
让ASP.NET简便使用SCRIPT(3)
作者:不详  来源:不详  发布时间:2006-8-14 8:27:54  发布人:chinazhan

 减小字体 增大字体

     --------------------------------------------------------------------------------
  
  
  00259 }
  
  00260 }
  
  00261 private ElementType mElement = ElementType . None ;
  
  00262 /// <summary>
  
  00263 /// 获取或设置参数值是否参数名称
  
  00264 /// </summary>
  
  00265 public ElementType Element
  
  00266 {
  
  00267 get
  
  00268 {
  
  00269 return mElement ;
  
  00270 }
  
  00271 set
  
  00272 {
  
  00273 mElement = value ;
  
  00274 }
  
  00275 }
  
  00276 }
  
  00277 public class ParameterCollection : System . Collections . CollectionBase
  
  00278 {
  
  00279 public Parameter this [ int index ]
  
  00280 {
  
  00281 get
  
  00282 {
  
  00283 return ( ( Parameter ) List [ index ] );
  
  00284 }
  
  00285 set
  
  00286 {
  
  00287 List [ index ] = value ;
  
  00288 }
  
  00289 }
  
  00290
  
  00291 public int Add ( Parameter value )
  
  00292 {
  
  00293 return ( List . Add ( value ) );
  
  00294 }
  
  00295
  
  00296 public int IndexOf ( Parameter value )
  
  00297 {
  
  00298 return ( List . IndexOf ( value ) );
  
  00299 }
  
  00300
  
  00301 public void Insert ( int index , Parameter value )
  
  00302 {
  
  00303 List . Insert ( index , value );
  
  00304 }
  
  00305
  
  00306 public void Remove ( Parameter value )
  
  00307 {
  
  00308
  
  00309 List . Remove ( value );
  
  00310 }
  
  00311
  
  00312 public bool Contains ( Parameter value )
  
  00313 {
  
  00314 // If value is not of type Int16, this will return false.
  
  00315 return ( List . Contains ( value ) );
  
  00316 }
  
  00317
  
  00318 }
  
  00319 /// <summary>
  
  
  --------------------------------------------------------------------------------
  
  
  
  
  00320 /// 返回值接收元素描述类
  
  00321 /// </summary>
  
  00322 public class ReturnElement
  
  00323 {
  
  00324 /// <summary>
  
  00325 /// 构造对象
  
  00326 /// </summary>
  
  00327 /// <param name="id">接收值的元素ID</param>
  
  00328 /// <param name="key">对应值的键值</param>
  
  00329 public ReturnElement ( string id , string key )
  
  00330 {
  
  00331 ID = id ;
  
  00332 Key = key ;
  
  00333 }
  
  00334 private string mID ;
  
  00335 /// <summary>
  
  00336 /// 获取或设置元素ID
  
  00337 /// </summary>
  
  00338 public string ID
  
  00339 {
  
  00340 get
  
  00341 {
  
  00342 return mID ;
  
  00343 }
  
  00344 set
  
  00345 {
  
  00346 mID = value ;
  
  00347 }
  
  00348 }
  
  00349 private string mKey ;
  
  00350 /// <summary>
  
  00351 /// 获取或设置对应值的键值
  
  00352 /// </summary>
  
  00353 public string Key
  
  00354 {
  
  00355 get
  
  00356 {
  
  00357 return mKey ;
  
  00358 }
  
  00359 set
  
  00360 {
  
  00361 mKey = value ;
  
  00362 }
  
  00363 }
  
  00364 /// <summary>
  
  00365 /// 获取操作脚本
  
  00366 /// </summary>
  
  00367 /// <returns>string</returns>
  
  00368 public string GetScript ( string parent )
  
  00369 {
  
  00370 return parent +"document.all(' "+ID +" ').value=" + parent +"__AnalyseString(' "+Key +"
  
   ',getvalue);" ;
  
  00371 }
  
  00372 }
  
  00373 public class ReturnElementCollections : System . Collections . CollectionBase
  
  00374 {
  
  00375 public ReturnElement this [ int index ]
  
  00376 {
  
  00377 get
  
  00378 {
  
  00379 return ( ( ReturnElement ) List [ index ] );
  
  00380 }
  
  
  
  --------------------------------------------------------------------------------
  
  
  00381 set
  
  00382 {
  
  00383 List [ index ] = value ;
  
  00384 }
  
  00385 }
  
  00386
  
  00387 public int Add ( ReturnElement value )
  
  00388 {
  
  00389 return ( List . Add ( value ) );
  
  00390 }
  
  00391
  
  00392 public int IndexOf ( ReturnElement value )
  
  00393 {
  
  00394 return ( List . IndexOf ( value ) );
  
  00395 }
  
  00396
  
  00397 public void Insert ( int index , ReturnElement value )
  
  00398 {
  
  00399 List . Insert ( index , value );
  
  00400 }
  
  00401
  
  00402 public void Remove ( ReturnElement value )
  
  00403 {
  
  00404
  
  00405 List . Remove ( value );
  
  00406 }
  
  00407
  
  00408 public bool Contains ( ReturnElement value )
  
  00409 {
  
  00410 // If value is not of type Int16, this will return false.
  
  00411 return ( List . Contains ( value ) );
  
  00412 }
  
  00413 }
  
  00414 #endregion
  
  00415 }
  
    做人要厚道,请注明转自chinazhan中国站长(www.ChinaZhan.com)。

 
[] [返回上一页] [打 印] [收 藏]
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
中国站长下载
中国站长下载

本页只接受PR>=4 IT类站点连接,申请连接,谢谢您们的支持!希望我们的下载站能够真正帮到中国的站长们!
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图
Copyright © 2005-2006 ChinaZhan.Net. All Rights Reserved .