打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ASP.NET函数实用手册
目 录
      第1章 系统架构 1
      1.1 system.object根类 1
      1. object构造函数 1
      2. equals方法 1
      3. gethashcode方法 1
      4. gettype方法 2
      5. referenceequals方法 2
      6. tostring方法 2
      7. finalize方法 3
      8. memberwiseclone方法 3
      1.2 异常处理 3
      1.2.1 system.applicationexception类 3
      applicationexception构造函数 4
      1.2.2 system.exception类 4
      1. getbaseexception方法 5
      2. getobjectdata方法 5
      3. tostring方法 5
      1.2.3 system.systemexception类 6
      systemexception构造函数 6
      1.3 类型转换(system.convert类) 7
      1. changetype方法 8
      2. frombase64chararray方法 9
      3. frombase64string方法 9
      4. gettypecode方法 9
      5. isdbnull方法 9
      6. tobase64chararray方法 9
      7. tobase64string方法 10
      1.4 时间和日期处理 10
      1.4.1 system.datetime结构 10
      1. add方法 11
      2. adddays方法 11
      3. addhours方法 12
      4. addmilliseconds方法 12
      5. addminutes方法 12
      6. addmonths方法 12
      7. addseconds方法 12
      8. addticks方法 12
      9. addyears方法 13
      10. compare方法 13
      11. compareto方法 13
      12. daysinmonth方法 14
      13. equals方法 14
      14. fromfiletime方法 15
      15. fromoadate方法 15
      16. getdatetimeformats方法 15
      17. isleapyear方法 16
      18. parse方法 16
      19. parseexact方法 17
      20. subtract方法 17
      21. tofiletime方法 18
      22. tolocaltime方法 18
      23. tolongdatestring方法 18
      24. tolongtimestring方法 19
      25. tooadate方法 19
      26. toshortdatestring方法 19
      27. toshorttimestring方法 19
      28. tostring方法 19
      29. touniversaltime方法 20
      1.4.2 system.timespan结构 20
      1. add方法 21
      2. compare方法 21
      3. compareto方法 21
      4. duration方法 21
      5. equals方法 21
      6. fromdays方法 22
      7. fromhours方法 22
      8. frommilliseconds方法 22
      9. fromminutes方法 22
      10. fromseconds方法 22
      11. fromticks方法 22
      12. negate方法 22
      13. parse方法 22
      14. subtract方法 23
      15. tostring方法 23
      1.4.3 system.timezone类 23
      1. timezone构造函数 23
      2. getdaylightchanges方法 23
      3. getutcoffset方法 23
      4. isdaylightsavingtime方法 24
      5. tolocaltime方法 24
      6. touniversaltime 方法 24
      1.5 数学运算(system.math类) 24
      1. abs方法 24
      2. acos方法 25
      3. asin方法 25
      4. atan 方法 25
      5. atan2 方法 25
      6. ceiling方法 25
      7. cos方法 25
      8. cosh 方法 25
      9. exp方法 26
      10. floor方法 26
      11. ieeeremainder方法 26
      12. log方法 26
      13. log10 方法 26
      14. max方法 26
      15. min方法 27
      16. pow方法 27
      17. round方法 28
      18. sign方法 28
      19. sin方法 28
      20. sinh方法 28
      21. sqrt方法 28
      22. tan方法 29
      23. tanh方法 29
      1.6 随机数发生器(system.random类) 29
      1. random构造函数 31
      2. next方法 31
      3. nextbytes 方法 31
      4. nextdouble 方法 31
      5. sample 方法 31
      第2章 数据集合 32
      2.1 动态数组
      (system.collections.arraylist类) 32
      1. adapter方法 33
      2. add方法 33
      3. addrange方法 34
      4. binarysearch方法 34
      5. clear方法 35
      6. contains方法 36
      7. copyto方法 36
      8. fixedsize 方法 37
      9. getenumerator方法 38
      10. getrange方法 39
      11. indexof方法 39
      12. insert方法 40
      13. insertrange方法 41
      14. lastindexof方法 42
      15. readonly方法 42
      16. remove方法 42
      17. removeat方法 43
      18. removerange方法 43
      19. repeat 方法 43
      20. reverse方法 44
      21. setrange方法 45
      22. sort方法 45
      23. synchronized方法 46
      24. toarray方法 47
      25. trimtosize方法 47
      2.2 散列表(system.collections.hashtable类) 47
      1. hashtable构造函数 48
      2. add方法 50
      3. clear方法 50
      4. contains方法 51
      5. containskey方法 52
      6. containsvalue方法 52
      7. copyto方法 52
      8. getenumerator方法 53
      9. getobjectdata方法 53
      10. ondeserialization方法 53
      11. remove方法 53
      12. synchronized方法 54
      13. gethash方法 55
      14. keyequals方法 55
      2.3 栈(system.collections.stack类) 55
      1. stack构造函数 56
      2. clear方法 56
      3. contains方法 56
      4. copyto 方法 57
      5. getenumerator方法 57
      6. peek方法 58
      7. pop方法 58
      8. push方法 58
      9. synchronized方法 59
      10. toarray方法 59
      2.4 队列(system.collections.queue类) 60
      1. queue构造函数 61
      2. clear方法 61
      3. contains方法 62
      4. copyto方法 62
      5. dequeue方法 63
      6. enqueue方法 64
      7. getenumerator方法 64
      8. peek方法 64
      9. synchronized方法 64
      10. toarray方法 65
      11. trimtosize方法 65
      2.5 有序表(system.collections.sortedlist类) 65
      1. sortedlist构造函数 66
      2. add方法 67
      3. clear方法 67
      4. contains方法 68
      5. containskey方法 69
      6. containsvalue方法 69
      7. copyto方法 69
      8. getbyindex方法 70
      9. getenumerator方法 71
      10. getkey方法 71
      11. getkeylist方法 71
      12. getvaluelist方法 71
      13. indexofkey方法 72
      14. indexofvalue 72
      15. remove方法 72
      16. removeat方法 73
      17. setbyindex方法 73
      18. synchronized方法 74
      19. trimtosize方法 75
      第3章 web应用程序 76
      3.1 asp.net中的application对象 76
      3.1.1 system.web.httpapplication类 76
      1. httpappliation构造函数 77
      2. addonacquirerequeststateasync方法 77
      3. addonauthenticaterequestasync方法 77
      4. addonauthorizerequestasync方法 78
      5. addonbeginrequestasync方法 78
      6. addonendrequestasync方法 78
      7. addonpostrequesthandler
      executeasync方法 78
      8. addonprerequesthandler
      executeasync方法 78
      9. addonreleaserequest
      stateasync方法 78
      10. addonresolverequest
      cacheasync方法 78
      11. addonupdaterequestcacheasync方法 78
      12. completerequest方法 78
      13. dispose方法 79
      14. getvarybycustomstring方法 79
      15. init方法 79
      3.1.2 system.web.httpapplicationstate类 79
      1. add方法 80
      2. baseadd方法 80
      3. baseclear方法 80
      4. baseget方法 80
      5. basegetallkeys方法 81
      6. basegetallvalues方法 81
      7. basegetkey 方法 81
      8. basehaskeys方法 81
      9. baseremove方法 81
      10. baseremoveat方法 81
      11. baseset方法 81
      12. clear方法 81
      13. get方法 81
      14. getenumerator方法 82
      15. getkey方法 82
      16. lock方法 82
      17. remove方法 82
      18. removeall方法 83
      19. removeat方法 83
      20. set方法 83
      21. unlock方法 83
      3.2 asp.net中的server对象 83
      1. clearerror方法 84
      2. createobject方法 84
      3. createobjectfromclsid方法 84
      4. execute方法 84
      5. getlasterror方法 85
      6. htmldecode方法 85
      7. htmlencode方法 85
      8. mappath方法 86
      9. transfer方法 86
      10. urldecode方法 86
      11. urlencode方法 86
      12. urlpathencode方法 87
      3.3 asp.net中的c/s交互 87
      3.3.1 system.browsercapabilities类 87
      3.3.2 system.web.httppostedfile类 88
      saveas方法 89
      3.3.3 system.web.httprequest类 89
      1. binaryread方法 90
      2. mapimagecoordinates方法 90
      3. mappath方法 90
      4. saveas方法 91
      3.3.4 system.web.response类 91
      1. httpresponse构造函数 92
      2. addcacheitemdependencies方法 92
      3. addcacheitemdependency方法 92
      4. addfiledependencies方法 92
      5. addfiledependency方法 92
      6. addheader方法 92
      7. appendheader方法 93
      8. appendtolog方法 93
      9. applyapppathmodifier方法 93
      10. binarywrite方法 93
      11. clear方法 93
      12. clearcontent方法 93
      13. clearheaders方法 93
      14. close方法 94
      15. end方法 94
      16. flush方法 94
      17. pics方法 94
      18. redirect方法 94
      19. removeoutputcacheitem方法 94
      20. write方法 94
      21. writefile方法 95
      3.4 asp.net中的cookie和session 95
      3.4.1 system.web.httpcookie类 95
      httpcookie构造函数 96
      3.4.2 system.web.http
      cookiecollection类 96
      1. httpcookiecollection构造函数 97
      2. add方法 97
      3. baseadd方法 98
      4. baseclear方法 98
      5. baseget 方法 98
      6. basegetallkeys方法 98
      7. basegetallvalues方法 98
      8. basegetkey方法 98
      9. basehaskeys方法 98
      10. baseremove方法 98
      11. baseremoveat方法 98
      12. baseset方法 99
      13. clear方法 99
      14. copyto方法 99
      15. getkey方法 99
      16. remove方法 99
      17. set方法 100
      3.4.3 system.web.sessionstate.http
      sessionstate类 100
      1. abandon方法 100
      2. add方法 100
      3. clear方法 101
      4. copyto方法 101
      5. getenumerator方法 101
      6. remove方法 101
      7. removeall方法 101
      8. removeat方法 101
      3.4.4 system.web.sessionstate.session
      statemodule类 101
      第4章 web用户界面—— web form 102
      4.1 asp.net页面及控件 102
      4.1.1 system.web.ui.page类 102
      1. page构造函数 105
      2. databind方法 105
      3. addparsedsubobject方法 105
      4. clearchildviewstate方法 106
      5. construct方法 106
      6. createchildcontrols方法 106
      7. createcontrolcollection方法 107
      8. createhtmltextwriter方法 107
      9. determinepostbackmode方法 107
      10. ensurechildcontrols方法 108
      11. findcontrol方法 108
      12. getpostbackclientevent方法 108
      13. getpostbackclienthyperlink方法 108
      14. getpostbackeventreference方法 108
      15. hascontrols方法 109
      16. isclientscriptblockregistered方法 109
      17. isliteralcontent方法 109
      18. isstartupscriptregistered方法 110
      19. loadcontrol方法 110
      20. loadpagestatefrompersistence
      medium方法 111
      21. loadtemplate方法 111
      22. loadviewstate方法 111
      23. mappath方法 111
      24. mappathsecure方法 112
      25. onaborttransaction方法 112
      26. onbubbleevent方法 112
      27. oncommittransaction方法 113
      28. ondatabinding方法 113
      29. onerror方法 114
      30. oninit方法 114
      31. onload方法 114
      32. onprerender方法 115
      33. onunload方法 115
      34. parsecontrol方法 115
      35. raisebubbleevent方法 116
      36. raisepostbackevent方法 116
      37. render方法 117
      38. rendercontrol方法 117
      39. resolveurl方法 117
      40. saveviewstate方法 118
      41. trackviewstate方法 118
      42. validate方法 119
      4.1.2 system.web.ui.control类 119
      1. control构造函数 120
      2. addparsedsubobject方法 121
      3. clearchildviewstate方法 121
      4. createchildcontrols方法 122
      5. createcontrolcollection方法 122
      6. databind方法 122
      7. dispose方法 122
      8. ensurechildcontrols方法 123
      9. findcontrol方法 123
      10. hascontrols方法 123
      11. isliteralcontent方法 123
      12. loadviewstate方法 124
      13. mappathsecure方法 124
      14. onbubbleevent方法 124
      15. ondatabinding方法 125
      16. oninit方法 125
      17. onload方法 125
      18. onprerender方法 126
      19. onunload方法 126
      20. raisebubbleevent方法 126
      21. render方法 127
      22. renderchildren方法 127
      23. rendercontrol方法 128
      24. resolveurl方法 128
      25. saveviewstate方法 128
      26. trackviewstate方法 129
      4.1.3 system.web.ui.webcontrols.web
      control类 129
      1. webcontrol构造函数 131
      2. addattributestorender方法 132
      3. applystyle方法 132
      4. createcontrolstyle方法 133
      5. copybaseattributes方法 133
      6. mergestyle方法 133
      7. renderbegintag方法 135
      8. rendercontents方法 135
      9. renderendtag方法 135
      4.2 数据绑定 135
      4.2.1 system.web.ui.databinder类 135
      eval方法 135
      4.2.2 system.web.ui.databinding类 136
      databinding 构造函数 136
      4.2.3 system.web.ui.databinding
      collection类 137
      1. databindingcollection构造函数 137
      2. add方法 137
      3. clear方法 137
      4. copyto方法 137
      5. remove方法 138
      4.3 html服务器端控件 138
      4.3.1 system.web.ui.httpcontrols.html
      anchor类 138
      1. htmlanchor构造函数 142
      2. onprerender方法 142
      3. onserverclick方法 142
      4.3.2 system.web.ui.httpcontrols.html
      button类 142
      1. htmlbutton构造函数 144
      2. onprerender方法 144
      3. onserverclick方法 144
      4.3.3 system.web.ui.httpcontrols.html
      containercontrol类 144
      htmlcontainercontrol构造函数 146
      4.3.4 system.web.ui.httpcontrols.html
      control类 146
      htmlcontrol构造函数 148
      4.3.5 system.web.ui.httpcontrols.html
      form类 148
      htmlform构造函数 151
      4.3.6 system.web.ui.httpcontrols.html
      genericcontrol类 151
      htmlcontainercontrol构造函数 153
      4.3 7 system.web.ui.httpcontrols.html
      image类 153
      htmlimage构造函数 155
      4.3.8 system.web.ui.httpcontrols.html
      inputbutton类 155
      htmlimage构造函数 158
      4.3.9 system.web.ui.httpcontrols.html
      inputcheckbox类 158
      1. htmlcheckbox构造函数 160
      2. onserverchange方法 160
      4.3.10 system.web.ui.httpcontrols.html
      inputcontrol类 161
      htmlcheckbox构造函数 163
      4.3.11 system.web.ui.httpcontrols.html
      inputfile类 163
      htmlcheckbox构造函数 165
      4.3.12 system.web.ui.httpcontrols.html
      inputhidden类 165
      1. htmlinputhidden构造函数 168
      2. onserverchange方法 168
      4.3.13 system.web.ui.httpcontrols.html
      inputimage类 168
      1. htmlinputimage构造函数 170
      2. onserverclick方法 170
      4.3.14 system.web.ui.httpcontrols.html
      inputradiobutton类 170
      1. htmlinputradiobutton构造函数 172
      2. onserverchange方法 172
      4.3.15 system.web.ui.httpcontrols.html
      inputtext类 173
      1. htmlinputtext构造函数 175
      2. onserverchange方法 175
      4.3.16 system.web.ui.httpcontrols.html
      select类 175
      htmlselect构造函数 179
      4.3.17 system.web.ui.httpcontrols.html
      table类 179
      htmltable构造函数 184
      4.3.18 system.web.ui.httpcontrols.html
      tablecell类 184
      htmltablecell构造函数 186
      4.3.19 system.web.ui.httpcontrols.html
      tablecellcollection类 186
      1. add方法 188
      2. insert方法 188
      3. remove方法 188
      4. removeat方法 189
      4.3.20 system.web.ui.httpcontrols.html
      tablerow类 189
      htmltablerow构造函数 191
      4.3.21 system.web.ui.httpcontrols.html
      tablerowcollection类 191
      1. add方法 192
      2. insert方法 192
      3. remove方法 192
      4. removeat方法 193
      4.3.22 system.web.ui.httpcontrols.html
      textarea类 193
      1. tmltextarea构造函数 195
      2. onserverchange方法 195
      4.4 web服务器端控件 196
      4.4.1 system.web.ui.webcontrols.adrotator
      类 196
      1. htmltextarea构造函数 199
      2. onadcreated方法 199
      4.4.2 system.web.ui.webcontrols.button类 200
      button构造函数 202
      4.4.3 system.web.ui.webcontrols.calendar
      类 202
      1. calendar构造函数 205
      2. ondayrender方法 206
      3. onselectionchanged方法 207
      4. onvisiblemonthchanged方法 208
      4.4.4 system.web.ui.webcontrols.checkbox
      类 208
      1. checkbox构造函数 211
      2. oncheckedchanged方法 211
      4.4.5 system.web.ui.webcontrols.
      checkboxlist类 211
      1. checkboxlist构造函数 214
      2. onselectedindexchanged方法 214
      4.4.6 system.web.ui.webcontrols.compare
      validator类 215
      1. checkcontrolvalidationproperty方法 218
      2. determinerenderuplevel方法 218
      3. evaluateisvalid方法 218
      4. getcontrolrenderid方法 218
      5. getcontrolvalidationvalue方法 218
      6. registervalidatorcommonscript 方法 218
      7. validate方法 219
      4.4.7 system.web.ui.webcontrols.custom
      validator类 219
      1. checkcontrolvalidationproperty方法 223
      2. determinerenderuplevel方法 223
      3. evaluateisvalid方法 223
      4. getcontrolrenderid方法 223
      5. getcontrolvalidationvalue方法 223
      6. onservervalidate方法 223
      7. registervalidatorcommonscript方法 224
      8. validate方法 224
      4.4.8 system.web.ui.webcontrols.datagrid
      类 225
      1. datagrid构造函数 232
      2. databind方法 232
      3. oncancelcommand方法 232
      4. ondeletecommand方法 232
      5. oneditcommand方法 232
      6. onitemcommand方法 232
      7. onitemdatabound方法 233
      8. onpageindexchanged方法 233
      9. onselectedindexchanged方法 233
      10. onsortcommand方法 233
      11. onupdatecommand方法 234
      4.4.9 system.web.ui.webcontrols.datalist
      类 234
      1. datalist构造函数 240
      2. databind方法 240
      3. oncancelcommand方法 240
      4. ondatabinding方法 240
      5. ondeletecommand方法 241
      6. oneditcommand方法 241
      7. onitemcommand方法 241
      8. onitemcreated方法 241
      9. onitemdatabound方法 242
      10. onselectedindexchanged方法 242
      11. onupdatecommand方法 243
      4.4.10 system.web.ui.webcontrols.xml类 243
      1. databind方法 245
      2. ondatabinding方法 245
      3. onload方法 245
      第5章 数据访问 247
      5.1 连接和使用sql server数据库 247
      5.1.1 system.data.sqlclient.sqlcommand
      类 247
      1. sqlcommand构造函数 248
      2. cancel方法 249
      3. createparameter方法 249
      4. executenonquery方法 250
      5. executereader方法 250
      6. executescalar方法 251
      7. executexmlreader方法 251
      8. getlifetimeservice方法 251
      9. getservice方法 252
      10. initializelifetimeservice方法 252
      11. prepare方法 252
      12. resetcommandtimeout方法 252
      5.1.2 system.data.sqlclient.sqlconnection
      类 252
      1. sqlconnection构造函数 253
      2. begintransaction方法 254
      3. changedatabase方法 254
      4. close方法 255
      5. createcommand方法 255
      6. open方法 255
      5.1.3 system.data.sqlclient.sqldataadapter
      类 255
      1. sqldataapdater构造函数 257
      2. cloneinternals方法 257
      3. fill方法 257
      4. fillschema方法 259
      5. update方法 260
      5.1.4 system.data.sqlclient.sqldatareader
      类 261
      5.2 连接和使用其他数据库 262
      5.2.1 system.data.oledb.oledbcommand
      类 262
      1. oledbcommand构造函数 263
      2. cancel方法 264
      3. executenonquery方法 264
      4. executereader方法 265
      5. executescalar 方法 265
      6. prepare方法 265
      5.2.2 system.data.oledb.oledbconnection
      类 266
      1. sqlconnection构造函数 267
      2. begintransaction方法 267
      3. changedatabase方法 268
      4. close方法 268
      5. open方法 268
      6. releaseobjectpool方法 268
      5.2.3 system.data.oledb.oledbdataadapter
      类 269
      1. oledbdataadapter构造函数 270
      2. cloneinternals方法 271
      3. fill方法 271
      4. fillschema方法 273
      5. update方法 274
      5.2.4 system.data.oledb.oledb
      datareader类 275
      第6章 多线程 277
      6.1 多线程的基本操作 277
      1. thread构造函数 278
      2. abort方法 279
      3. allocatedataslot方法 279
      4. allocatenameddataslot方法 279
      5. freenameddataslot方法 279
      6. getdata方法 279
      7. getnameddataslot方法 279
      8. interrupt方法 279
      9. join方法 280
      10. resetabort方法 280
      11. setdata方法 280
      12. sleep方法 280
      13. spinwait方法 280
      14. start方法 280
      15. suspend方法 281
      6.2 线程的同步和互斥 281
      6.2.1 system.threading.monitor类 281
      1. enter方法 285
      2. exit方法 285
      3. pulse方法 285
      4. pulseall方法 285
      5. tryenter方法 286
      6. wait方法 286
      6.2.2 system.threading.mutex类 287
      1. mutex构造函数 288
      2. close方法 289
      3. releasemutex方法 289
      4. waitone方法 289
      第7章 文本处理 290
      7.1 system.string类 290
      1. string构造函数 291
      2. clone方法 292
      3. compare方法 292
      4. compareordinal方法 293
      5. concat方法 293
      6. copy 方法 293
      7. copyto方法 293
      8. endswith方法 294
      9. format方法 294
      10. indexof方法 294
      11. indexofany 方法 295
      12. insert方法 295
      13. intern方法 295
      14. isinterned方法 296
      15. join方法 296
      16. lastindexof方法 296
      17. lastindexofany方法 296
      18. padleft方法 297
      19. padright方法 297
      20. remove方法 297
      21. replace方法 297
      22. split方法 297
      23. startswith方法 298
      24. substring方法 298
      25. tochararray方法 298
      26. tolower方法 298
      27. toupper方法 298
      28. trim方法 298
      29. trimend方法 299
      30. trimstart方法 299
      7.2 system.text.stringbuilder类 299
      1. stringbuilder构造函数 299
      2. append方法 300
      3. appendformat方法 301
      4. ensurecapacity方法 302
      5. insert方法 302
      6. remove方法 303
      7. replace方法 303
      附录 305
      a.1 c#编译选项 305
      a.2 类索引 306
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
重写ToString和equals方法
知道这个插件,能让你的项目里少写1000行代码 (文末有福利)
面向对象编程(中)
别人经验--关于Object类理解(好)
Effective Java 笔记(三)
Java总结篇系列:java.lang.Object
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服