﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-桂圆的编程世界</title><link>http://www.cnblogs.com/zbqy/</link><description>桂圆烟雨任平生
</description><language>zh-cn</language><lastBuildDate>Mon, 13 Oct 2008 04:42:15 GMT</lastBuildDate><pubDate>Mon, 13 Oct 2008 04:42:15 GMT</pubDate><ttl>60</ttl><item><title>经典语句（人生经典语句 爱情经典语句）</title><link>http://www.cnblogs.com/zbqy/archive/2007/08/13/854199.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Mon, 13 Aug 2007 11:45:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/08/13/854199.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/854199.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/08/13/854199.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/854199.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/854199.html</trackback:ping><description><![CDATA[<p>* 人生经典语句<br>《决心》.人的一生有许多难以取舍，困惑不已的锁事所纠缠着，这时所需的就是断然的舍弃与明智的抉择，唯一会限制我们的，是我们自己的决心。 <br>《理由》.逃避不一定躲的过，面对不一定最难过，孤单不一定不快乐，得到不一定能长久，失去不一定不再拥有。你可能因为某个理由而伤心难过， 但你却能找个理由让自己快乐。 <br>《失去》.最凄凉最弄人的不是你知道，失去所爱的那一刻，而是你还在徘徊，犹未知道已经失去。 <br>《炫耀》.不爱了，就别向他炫耀，向他炫耀只是代表，你还是在意他的想法，你还是对他念念不忘，他看到这种窘态，只会深信你从来没有忘记过他。 <br>《句号》.当爱情要完结时，你不想画上句号也不行，当你怀疑是否主动画上句号时，那表示你根本就拾不得，也没办法画上这个句号。每一段情始终会有句号，句号要来时，你想挡都挡不住。<br>《习惯》.爱情一旦成为了习惯，就会一辈子也摆脱不了的。 <br>《放弃》.放弃一个很爱你的人，并不痛苦。放弃一个你很爱的人，那才痛苦。爱上一个不爱你的人，那是更痛苦。 <br>《寂寞》.别因为寂寞而错爱，别因为错爱而寂寞一生。 <br>《后悔》.别等到错过后才去后悔，别等到失去后才想挽回。 <br>《清楚》.或许只有在离得最远的时候，才能把曾经走过的那段日子，看的最真确最清楚。 <br>《机会》.人一生有许多的机会，只是看自己是否能把握住，珍惜眼前所看到的，满足目前所拥有的。我们常常为了一个机会，而错失了更多的机会|。 <br>《缘》.若是有缘，时间空间都不是距离。若是无缘，终日相聚也无法会意。凡事不必太在意，更不需去强求，就让一切随缘吧！ <br>《思念》.思念总是有不得不收藏起来的时刻，而生命里最舍不得，藏得总是最深，且不让人知道。 <br>《淡忘》.一个人受到感情的伤害，原本是可以慢慢淡忘的，但如果心里一直念念不忘，就会使其所受的伤害，永远难以痊愈。<br>《你的》.该是你的迟早都会是你的，若不是你的即使强留也留不住。 <br>《面对》.不想面对他离开，逃避不是一个好方法，但却是唯一的办法。 <br>《遗忘》.一个人如果不能学会遗忘，那将是很痛苦的事，别再自寻烦恼，快把痛苦的事给忘了吧！ <br>《伟大的爱》.学会了与人分享爱，还必须学会不要紧捉着所爱不放，最伟大的爱就是做些对所爱的人，最有利的事，即使那会令你心疼。 <br>《报复》.最好的报复不是毁掉对方，更不是毁掉自己，而是要过的比他幸福和快乐。 <br>《后悔》.别等到错过后才去后悔，别等到失去后才想挽回。 <br>1.遇到你真的爱的人时，要努力争取和他（她）相伴一生的机会，因为当他（她）离去时.一切都会不及了.... <br>2.遇到可相信的朋友时，要好好和他相处下去，因为在人的一生中.可遇到知己真的不易。 <br>3.遇到人生中的贵人时，要记得好好感激，因为他是你人生的转折点。<br>4.遇到曾经爱过的人时，记得微笑向他（她）感激，因为他（她）是让你更懂爱的人。<br>5.遇到曾经恨过的人时，要微笑向他（她）打招呼，因为他（她）让你更加坚强。 <br>6.遇到曾经背叛你的人时，要跟他（她）好好聊一聊，因为若不是他（她）今天你不会懂这世界。 <br>7.遇到曾经偷偷喜欢的人时，要祝他(她）幸福唷! 因为你喜欢他（她）时.不是希望他（她）幸福快乐吗？ <br>8.遇到匆匆离开你人生的人时，要谢谢他(她）走过你的人生，因为他（她）是你精采回忆的一部分。 <br>9.遇到曾经和你有误会的人时，要趁现在解清误会，因为你可能只有这一次机会解释清楚。 <br>10.遇到现在和你相伴一生的人时，要百分百感谢他(她)爱你，因为你们现在都得到幸福和开心。<br>11.快乐要有悲伤作陪,雨过应该就有天晴。如果雨后还是雨,如果忧伤之后还是忧伤。请让我们从容面对这离别之后的离别。微笑地去寻找一个不可能出现的你!<br>12.男人在结婚前觉得适合自己的女人很少,结婚后觉得适合自己的女人很多!<br>13.我爱你并不是因为你是谁，而是因为我在你身边的时候我是谁。<br>14.没有人值得你流泪，值得你流泪的认识不会让你哭的。<br>15.只因某人不如你所愿爱你，并不意味着你不被别人所爱。<br>16.一个真正的朋友会握着你的手，触动你的心。<br>17.错过一个人最可怕的方式就是：坐在他/她的身边，你却永远都不会拥有它/他。<br>18.永远都不要停止微笑，即使在是你难过的时候，说不定有人会因为你的微笑而爱上你。 <br>19.你可能只是这个世界上的一个人，但对于某些人来说，你就是全世界。<br>20.不要把时间花在一个不在乎与你一分享的人身上。<br>21.也许上帝让你在遇见那个适合的人之前遇见很多错误的人，所以，当这一切发生的时候，你应该心存感激。<br>22.不要因为它的结束而哭，应当为他的发生而笑。<br>23.生活中总会有伤害你的人，所以你仍然需要继续相信别人，只是小心些而已。<br>24.做一个更好的人，确信在遇见一个新的人之前知道自己是谁，也希望那个人知道你是谁。<br>25.学的到东西的事情是锻炼,学不到的是磨练. <br>26.经常给家里打个电话,即使他们说不想你. <br>27.你有足够的理由佩服每天早起的人,不信的话,你去做.做到后会发现有很多人佩服你呢. <br>28.你可以有喝醉的时候,我们可以接受,但是你要明白和真正的朋友一醉才能让伤心事方休,否则,你只会是别人的谈资和笑柄. <br>29.别总抱怨不公平，你的不公平对别人是公平的，辨证法--高三时学的，忘记了？ <br>30.别迷恋网络游戏。千万别。 <br>31.“我爱你”。别对很多人说这句话，我的意思是，希望你只对一个人说，这是尊重你爱的人，更是尊重你自己的感情 <br>32.如果你的个性让很多人对你敬而远之，那么你的个性是失败的，个性的成功在于能吸引，而不是能排斥。<br>33.如果把上课不睡觉当做一种锻炼并且你做到了，那么，你很强，而且记住，其实你应该是这样的，老师再差，也比学生强，因为他们是老师。 <br>34.疯狂英语的话：别怕丢人，如果你实在不行就别怕丢人，行的话，建议你们-去追求丢人，那是一种成功的尝试，至于为此笑话你的人，你可以把他们从你将来人生对手的名单中排除了，所以你也不要笑话那些上台丢人的人。 <br>35.从绝望中寻找希望,人生终将辉煌. <br>36.如果你不抽烟的话,你的精力将比抽烟的时候好的多,这是绝对的.<br>37.你的确要学的有心计,但是记住,永远记住,在社会上要胜利的唯一的方法永远只是一个,那就是实力,永远不用怀疑. <br>38.面对不公平的东西,不要抱怨,你的不公平可能恰恰是别人的公平.所以,你不如去努力的奋斗,争取你自己最合适的公平. <br>39.人生百态,不要对新的看不惯的东西生气,无所谓的,比如说恋人同居问题,和我们很多人无关的.<br>40.别总请人吃饭,别总让别人请你吃饭----朋友除外!!!!! <br>41.永远不要嘲笑你的教师无知或者单调，因为有一天当你发现你用瞌睡来嘲弄教师实际上很愚蠢时，你在社会上已经碰了很多钉子了。<br>42.不要幻想自己成为招聘会上的宠儿，当你明白百分之七十的初中生都可以上大学时，你应该明白人们不会去崇拜一个群体的大多数的。 <br>43.英语一定要学好，但英语绝对不会是你生活的全部保障，所以多学点东西可能有时会救命的 <br>44.你可以看不惯一些东西，但是你应该学会接受--如果你没法改变那一切的话。 <br>45.对陌生人，或者把对方当做一张白纸，或者把对方当你的朋友，总之别当做敌人，即使你听到再多的关于他（她）的不好的传闻。 <br>46.爱你的人，不管你接不接受，你都应该感谢对方，这是对你们的尊重。 <br>47. 每个星期一定要抽时间出来锻炼身体的。好处多多。 <br>48.在晚上，听听收音机也是种快乐和幸福。<br>49.如果周围有人嫉妒你，那么你可以把他从你的竞争者之列排除了，嫉妒人之人，难以成大事。 <br>50.成功的方法多种多样 ，别不接受你看不惯的方法。 <br>51.男人，你长的可以不帅，但你这个人可以帅，而且，那才是真正得帅。（当然，女人也是同样得道理）所以，不必在穿着打扮上花太多心思。 <br>52.进入社会，就是一个新的环境，接触新的人，你的所有过去对于他们来说是一张白纸，这是你最好的重新塑造自己形象的时候，改掉以前的缺点，没进入一个新的环境，都应该以全新的形象出现。 <br>53.为爱坚持的人，记得坚持可以，但是不要为爱受伤 <br>54.或文或武，我是说你要有一样能行得地方，样样通样样松是为人之禁忌。样样通几样更通方是境界。 <br>55.QQ是联系朋友的工具，可以是交朋友的工具但是别轻易相信QQ上的友谊更别轻易幻想QQ上朋友的样子。 <br>56.还能冲动，表示你还对生活有激情，总是冲动，表示你还不懂生活。<br>57.如果你不能拥有，那么告诉自己别忘记--如果你能承受那伤痛的话。 <br>58.莫过于梗直，莫过于圆滑。外圆内方即可。 <br>59.永远别渴望做个任何人都不得罪的人，有人反对有人支持然后自己做出决定是精彩的人生。 <br>60.魄力，要有魄力，即使是失败，也不要让自己的人生平庸。 <br>61.喜欢一个人，就勇敢的告诉他或者她，我在天涯说过大学是学习的地方，但是我理解爱情的力量。追求你真正爱的人，只要自己认为值得，那就是值得的。 <br>62.应该相信一句话：没有不可能的事情！！！真的没有，只要去做，现在我们是学生，十年后呢？？二十年后呢？？想想。 <br>63.我不去想是否能够成功,既然选择了远方,便只顾风雨兼程。 <br>64.后悔是一种耗费精神的情绪.后悔是比损失更大的损失,比错误更大的错误.所以不要后悔。但要记得反省 <br>65.社会上要想分出层次，只有一个办法，那就是竞争，你必须努力，否则结局就是被压在社会的底层。<br>66.我们确实活得艰难，一要承受种种外部的压力，更要面对自己内心的困惑。在 苦苦挣扎中，如果有人向你投以理解的目光，你会感到一种生命的暖意，或许仅有短暂的一瞥，就足以使我感奋不已。 <br>67.每个 人都有潜在的能量，只是很容易:被习惯所掩盖，被时间所迷离,被惰性所消磨. <br>68.于千万人之中，遇见你所遇见的人；于千万 年之中，时间的无涯荒野里，没有早一步，也没有晚一步，刚巧赶上了 <br>69.你可以选择坚持，也可以选择放弃。没有对错。我是 说对爱情来说，但是重要的是坚持你的选择。<br>70.相信时间的力量，可以冲淡很多东西<br>71.坚持每天做一件相同的事，很能锻 炼我们，试试便知。 <br>72.多笑笑，会慢慢让自己真的快乐起来。 <br>73.人生有很多次如果,但是没有一次但是. <br>74.当你不 懂得放弃的时候,你可以告诉自己你还懂得坚持. <br>75.越大,我们就会发现对与错越是那么不明显.这不是错,这是事实,而且无法改变。 <br>76.无聊的时候，别忘记朋友。朋友无聊的时候，别忘记你是他们的朋友。记得结交每一个值得结交的朋友。<br>。既然说人生是本书，那出现几个错别字就没什么大不了的。<br>。其实人喜欢的不是钱，而是它那种存在方式；如果狗粪可以用来交易的话，有谁会在乎它的臭味呢！<br>。野兽太可恶了-------它们居然吃小动物！<br>。诺贝尔发明了炸弹，给人类带来无数灾难，他自己成了伟人。<br>。理解“生于忧患，死于安乐”这话的人，才是真正会享受生活的人。<br>。有一个真心朋友就足够了，有十个真正的朋友，你就天下无敌。<br>。大脑是最高贵的器官---因为是大脑告诉你的。<br>。在你受伤时，比你先喊出来的那个人，是真爱你的人。<br>。天助自助者。<br>。法网：法，是法律；网，是一种满是漏洞的工具。<br>。时间等于金钱：各位，算算自己今天赔了多少钱？<br>。不要对挫折叹气，姑且把这一切看成是在你成大事之前，必须经受的准备工作。<br>。拿破仑一辈子没能征服世界，迪士尼凭一只老鼠风靡全球；满汉全席没几个人吃过，山德利仅一只炸鸡誉满神州。<br>。你就是给和绅一艘航空母舰，他也要；因为”宰相肚里能盛船”嘛。<br>。别抱怨生活----全球有多少亿人过的还不如你呢。<br>。珍惜生活-------上帝还让你活着，就肯定有他的安排 <br>* 爱情经典语句<br>1、爱情就象一面镜子，曾经有了裂痕，于是镜里的风景也扭曲了。<br>2、你的到来，谋杀了我的理智，你的离开谋杀了我的情感。<br>3、你的昨天是我的一夜情，你的今天是我的一段情，你的明天是我的一世情。<br>4、不要追求我，我要告诉你：“长江后浪推前浪，前浪死在沙滩上，后浪继续往前上，还会死在沙滩上。”死心吧！<br>5、等——漫无边际；思——没有结果；梦——虚无缥缈。 <br>6、你是鱼儿我是水，鱼对水说，你看不到我的眼泪，因为我在水中，水对鱼说，我能感觉你的眼泪，因为你在我心中。<br>7、如果爱你是错的话，我不想对；如果对是等于没有你的话，我宁愿一辈子错。<br>8、等待是苦的；是辛酸的；是委屈的；是无怨无悔的，在等待中，人们学会坚强学会乐观，而这一切，是因为爱。<br>9、虽然有缘无份，等待以后的日子里，我能在你的记忆里增加一份美好的回忆，能通过此生活的努力修满来世的情份。<br>10、爱情是神秘的东西，一个人可以有好几次恋爱，但爱来爱去你会发现，最爱的人只有一个，而在你身边的，又往往不是你最爱的人。<br>11、你的眼睛眨一下，我就死去，你的眼睛再眨一下，我就活过来，你的眼睛眨来眨去，于是，我便死去活来。<br>12、既不回头，何必不忘，既然无缘，何须实验，今日种种，私水无痕。<br>13、上帝赐予我们一切，就世俗的观点，虽然有美丑之分，但就我们自己来说，无论好坏，那总是我们所特有的啊！<br>14、偶然的开始,莫明的结束，终究不懂，如何才能释怀曾经心动的驿站，曾经甜蜜的依偎，曾经情感的归依，怎能轻易割舍。为何你能如此说断就断，毫不留恋，难道曾经的心动只是彼此的错觉，耳畔的承诺只是随口敷衍。或许早已决定，这段恋爱只是今生短暂的插曲，无法断续为永恒，而留给我确是一句——不信。<br>15、这段感情经历就像演戏，自己酝酿许久的感情在临上台时被通知临时取消，原因是缺少女主角，他一个人只能演独角戏，所以这段还来不及开演的情感就匆匆拉下了帷幕。之前自己好像一只沙漏，在网络的世界中带着所有的情绪一点点地累积，直到沙漏的尽头，才发现和想象中的太不一样，不管曾经的他或她让自己爱或恨，在网络世界里最终都会随着沙漏慢慢地沉淀，然后停止，最后消失。<br>16、我站在你的面前，我的手捂住胸口，我怕松开手来掉出两个字，爱你！我站在你的面前，我不愿转身离去，我怕你看见我的背上，用血刻着两个字，死去！<br>17、喜欢上什么，爱上什么，都是没有理由可言的。<br>18.我愛你不是因為你是一個怎樣的人，而是因為我喜歡與你在一起的感覺。 <br>19.沒有人值得你去流淚，值得讓你這麼做的人不會讓你哭泣。<br>20.失去某人，最糟糕的莫過於，他近在身邊，卻猶如遠在天邊。<br>21.縱然傷心，也不要愁眉不展。因為你不知誰會愛上你的笑容。<br>22.對於世界而言，你是一個人，但是對於某個人而言，你是他的整個世界。<br>23.不要為那些不願在你身上花費時間的人而浪費你的時間。<br>24.愛你的人如果沒有按你所希望的方式來愛你，那並不代表他們沒有全心全意愛你。<br>25.不要著急，最好的縱會在最不經意的時候出現。 <br>26.在遇到心上人之前，上天也許會安排我們先遇到別的人，在我們終於遇上心儀的人的時候，便應當心存感激。<br>27.不要因為結束而哭泣，微笑吧，為你的曾經擁有！<br>28.当拥有的已经不再拥有就要懂得珍惜，如果连珍惜的机会都没有就要告诉自己不要忘记！<br>29.我爱你，不是因为你是一个怎样的人，而是因为我喜欢与你在一起时的感觉。 <br>30.没有人值得你流泪，值得让你这么做的人不会让你哭泣。 <br>31.失去某人，最糟糕的莫过于，他近在身旁，却犹如远在天边。 <br>32.纵然伤心，也不要愁眉不展，因为你不知是谁会爱上你的笑容。 <br>33.对于世界而言，你是一个人；但是对于某个人，你是他的整个世界。<br>34.不要为那些不愿在你身上花费时间的人而浪费你的时间。 <br>35.爱你的人如果没有按你所希望的方式来爱你，那并不代表他们没有全心全意地爱你。 <br>36.不要着急，最好的总会在最不经意的时候出现。<br>37.在遇到梦中人之前，上天也许会安排我们先遇到别的人；在我们终于遇见心仪的人时，便应当心存感激。 38.不要因为结束而哭泣，微笑吧，为你的曾经拥有。<br>* 求爱经典语句<br>1.如果你是山，我愿是小河，我绕你；如果你是茶叶我愿是开水，我泡你；如果你是云，我愿是风，我追你。<br>2.你帅，你帅，你天下最帅，头顶一窝白菜，身披一条麻袋，腰缠一根海带，你以为你是东方不败，其实你是衰神二代。<br>3.你是风儿我是沙，你是皮鞋我是刷，你不理我我自杀。<br>4.世间本无沙漠，我每想你一次，上帝就落下一粒沙，从此便有了撒哈拉！<br>5.不知道你今天好不好，我的情况可不妙。 只觉得前前后后，左左右右，脑子里里外外，嗡嗡的都是你，你想我吗？<br>6.你是风儿我是沙，你是牙膏我是刷，你是哈密我是瓜，你不爱我我自杀。<br>7.我用一万句谎言扎成一束风骚的媚眼向你扫射过去,你倒在血泊中,千疮百孔的身子嵌满丘比特的子弹......<br>8.有你相伴的日子，即使平凡也浪漫！<br>9.想你,想你,好想你,找个画家画下你,把你贴在杯子里,每天喝水亲亲你! <br>10721 521 7758991 亲爱的，我爱你，亲亲我吧求求你！！ <br>11.如果我是玫瑰我将给你芬芳,如果我是太阳我将给你阳光；如果我是钻石我将给你永恒；如果我是你的爱我将给你我的全部。<br>12.一见钟情爱上你，二话不说抱住你，三天两头来找你，四下无人亲亲你，五天之内娶到你，六十年内不分离！<br>13.如果你冷，我将你拥入怀中；如果你忧，我替你擦去泪痕；如果你爱我,我要向全世界广播……我只想给你我真实的爱。 <br>14.不爱你实在太过分,不爱你实在太对不起自己,不爱你我朋友会打我,我的目标只有一个----爱你。<br>15.亲爱的我爱你就象老鼠爱大米不能一天没有你。<br>16.睁开我的眼睛，我的眼里只有你。闭上我的眼睛我的眼里只有你。带上眼镜我的四个眼里只有你。<br>17.哥哥是灰狼，妹妹是绵羊；哥家不缺粮，想你做新娘；“砰”的一声响，哥哥把命丧；“猎人”举枪笑，看看是你娘！ <br>18.左手刻着我，右手写着你，心中充满爱，当我们掌心相对，心心相印时，所有的人都会看到——我爱你。<br>19.人们说：“爱一个人是不求回报的。”但是我却要你给我回报---让我在有生之年把我的爱全部送给你！<br>调侃幽默经典语句<br>1、 没有钱，没有权，再不对你好点，你能跟我？ <br>2、 买了电脑不上宽带， 就好比酒肉都准备好了却在吃饭前当了和尚。 <br>3、天上掉钞票我不会弯腰，因为天上连馅饼都不会掉，更别说掉钞票了。 <br>4、 你给我买10条烟总比我去一次夜总会划算吧。 <br>5、要我扫地就绝对不刷碗，要我刷碗就绝对不扫地，两样一起做？你当我是外星人啊！<br>6、 躺在床上看电视不如在看电视时上床睡觉。 <br>7、给我一个支点，我把邻居那小子的汽车翘到沟里去，省得他见我就按喇叭。 <br>8、参加选美的那些女人，都找不到好男人，因为好男人都结婚了，比如我。 <br>9、如果领导下个月再不给我加薪，我就辞职，辞职前再给他送两条中华，抽死他。 <br>10、 如果猪都会飞了，谁还买飞机？骑着猪上天不就行了。<br>11、 我的领带又找不到了，是不是你昨天又没有找到抹布？ <br>12、 在埃及，一个男人可以娶四个老婆，那得多累啊，还是中国好。 <br>13、 你还是让我跪搓板吧，跪电暖气是在受不了啊！ <br>14、 我就算是一只癞蛤蟆，我也决不娶母癞蛤蟆。 <br>15、 喝白酒一斤，我绝对没感觉，因为喝半斤就已经喝死了。<br>16、上厕所看报纸等同于大便完了擦屁股，是一个流程，否则不叫完工。 <br>17、儿子不听话可以适当的打打，要不就显不出老子的威严，台-湾问题就是如此。 <br>18、我妈过生日，送脑白金还不如送两块大梁骨煮煮吃，至少还能当下酒菜。 <br>19、 我才不去见网友，除非国家修改一夫一妻制。 <br>20、 下辈子我还找你，因为除了我，你是最傻的。 <br>谢谢朋友们欣赏经典语句(人生经典语句 爱情经典语句) </p><img src ="http://www.cnblogs.com/zbqy/aggbug/854199.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42960/" target="_blank">[新闻]Facebook创始人:信息共享或存摩尔定律</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>我对GOOGLE MAP API 的一些简单调用</title><link>http://www.cnblogs.com/zbqy/archive/2007/08/12/852703.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Sun, 12 Aug 2007 09:46:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/08/12/852703.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/852703.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/08/12/852703.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/852703.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/852703.html</trackback:ping><description><![CDATA[<DIV class=csharpcode>Google Maps API是Google自己推出编程API，可以让全世界对Google Maps有兴趣的程序设计师自行开发基于Google Maps的服务，建立自己的地图网站。</DIV>
<DIV class=csharpcode>&nbsp;</DIV>
<DIV class=csharpcode>&nbsp;</DIV>
<DIV class=csharpcode>&nbsp;</DIV>
<DIV class=csharpcode><PRE class=alt><SPAN class=kwrd>&lt;!</SPAN><SPAN class=html>DOCTYPE</SPAN> <SPAN class=attr>html</SPAN> <SPAN class=attr>PUBLIC</SPAN> <SPAN class=kwrd>"-//W3C//DTD XHTML 1.0 Strict//EN"</SPAN></PRE><PRE>    <SPAN class=kwrd>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt><SPAN class=kwrd>&lt;</SPAN><SPAN class=html>html</SPAN> <SPAN class=attr>xmlns</SPAN><SPAN class=kwrd>="http://www.w3.org/1999/xhtml"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>  <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>head</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>    <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>meta</SPAN> <SPAN class=attr>http-equiv</SPAN><SPAN class=kwrd>="content-type"</SPAN> <SPAN class=attr>content</SPAN><SPAN class=kwrd>="text/html; charset=GB2312"</SPAN><SPAN class=kwrd>/&gt;</SPAN></PRE><PRE>    <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>title</SPAN><SPAN class=kwrd>&gt;</SPAN>Google Maps JavaScript API范例1：基本范例<SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>title</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt><P>    <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>script</SPAN> <SPAN class=attr>src</SPAN><SPAN class=kwrd>="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=ABQIAAAAPHHzlkwM1BqBR<BR>_nEQeIAVhQj3ceE4HUgKrBDbUpURjZ0</SPAN></P><P><SPAN class=kwrd>5XGTWRROLJX8OXcBIQLbTTg1TA-gzv-MGw"</SPAN></P></PRE><PRE>            <SPAN class=attr>type</SPAN><SPAN class=kwrd>="text/javascript"</SPAN><SPAN class=kwrd>&gt;&lt;/</SPAN><SPAN class=html>script</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>    &lt;script type=<SPAN class=str>"text/javascript"</SPAN>&gt;</PRE><PRE>    <SPAN class=rem>//&lt;![CDATA[</SPAN></PRE><PRE class=alt>&nbsp;</PRE><PRE>&nbsp;</PRE><PRE class=alt>             <SPAN class=rem>//这个范例创建一个地图并定位到中国的位置.</SPAN></PRE><PRE>             <SPAN class=rem>//var map = new GMap2(document.getElementById("map"));</SPAN></PRE><PRE class=alt>             <SPAN class=rem>//map.setCenter(new GLatLng(36.94,106.08),4);  //设置初始地图所在位置  <BR>//参数分别为 X坐标,y坐标 俯视尺寸</SPAN></PRE><PRE>            </PRE><PRE class=alt>             <SPAN class=rem>//map.setMapType(G_SATELLITE_MAP);//修改地图类型</SPAN></PRE><PRE>                         <SPAN class=rem>//地图类型有</SPAN></PRE><PRE class=alt>                         <SPAN class=rem>//Google集成支持的3种地图类型分别为：G_NORMAL_MAP,    G_SATELLITE_MAP,   <BR>// G_HYBRID_MAP,还支持自定义地图类型.</SPAN></PRE><PRE>             </PRE><PRE class=alt>             <SPAN class=rem>//panTo方法用来将地图变换到指定的中心点，</SPAN></PRE><PRE>             <SPAN class=rem>//如果指定点在地图上，则地图会平滑的移动到该位置，否则直接跳转到该位置.</SPAN></PRE><PRE class=alt>             </PRE><PRE>             <SPAN class=rem>//您能够使用addControl方法向地图添加控件.在这个例子之中，</SPAN></PRE><PRE class=alt>             <SPAN class=rem>//我们添加了系统集成的GSmallMapControl控件和GMapTypeControl控件,第一个允许用户移动和缩放地图，</SPAN></PRE><PRE>             <SPAN class=rem>//第二个允许用户在地图类型之间切换.</SPAN></PRE><PRE class=alt>&nbsp;</PRE><PRE>                                <SPAN class=rem>/*</SPAN></PRE><PRE class=alt><SPAN class=rem>                                GLargeMapControl - 大号平移和缩放控件，位置是左上角。 </SPAN></PRE><PRE><SPAN class=rem>                                GSmallMapControl - 小号平移和缩放控件，位置是左上角。 </SPAN></PRE><PRE class=alt><SPAN class=rem>                                GSmallZoomControl - 小号缩放控件，位置是左上角。 </SPAN></PRE><PRE><SPAN class=rem>                                GScaleControl - 地图比例尺。 </SPAN></PRE><PRE class=alt><SPAN class=rem>                                GOverviewMapControl - 位于屏幕右下角、可以收起来的缩略图。</SPAN></PRE><PRE><SPAN class=rem>                                </SPAN></PRE><PRE class=alt><SPAN class=rem>                                </SPAN></PRE><PRE><SPAN class=rem>                                */</SPAN></PRE><PRE class=alt>                            <SPAN class=kwrd>function</SPAN> load() {</PRE><PRE>                              <SPAN class=kwrd>if</SPAN> (GBrowserIsCompatible()) {</PRE><PRE class=alt>                                   </PRE><PRE>                                    <SPAN class=kwrd>var</SPAN> map = <SPAN class=kwrd>new</SPAN> GMap2(document.getElementById(<SPAN class=str>"map"</SPAN>));</PRE><PRE class=alt>                                    map.setCenter(<SPAN class=kwrd>new</SPAN> GLatLng(34.45221847282654,127.28515625),4);</PRE><PRE>                                    window.setTimeout(<SPAN class=kwrd>function</SPAN>() {</PRE><PRE class=alt>                                  map.panTo(<SPAN class=kwrd>new</SPAN> GLatLng(35.746512259918504,78.90625)); }, 5000);<BR>  <SPAN class=rem>//参数说明 转到的坐标 延时时长</SPAN></PRE><PRE>                                  </PRE><PRE class=alt>                                  </PRE><PRE>                                   map.addControl(<SPAN class=kwrd>new</SPAN> GSmallMapControl()); </PRE><PRE class=alt>                                   map.addControl(<SPAN class=kwrd>new</SPAN> GMapTypeControl());</PRE><PRE>                            map.addControl(<SPAN class=kwrd>new</SPAN> GOverviewMapControl());    <SPAN class=rem>//添加右下脚缩略图            </SPAN></PRE><PRE class=alt>                            </PRE><PRE> </PRE><PRE class=alt>                            </PRE><PRE>                            </PRE><PRE class=alt>                                  map.openInfoWindow(map.getCenter(),document.createTextNode(<SPAN class=str>"好运北京"</SPAN>));<BR>  <SPAN class=rem>//打开气泡提示窗口</SPAN></PRE><PRE>                         <SPAN class=rem>// 随机地在地图上添加 10 个标注</SPAN></PRE><PRE class=alt>                             <SPAN class=kwrd>var</SPAN> bounds = map.getBounds();</PRE><PRE>                             <SPAN class=kwrd>var</SPAN> southWest = bounds.getSouthWest();</PRE><PRE class=alt>                             <SPAN class=kwrd>var</SPAN> northEast = bounds.getNorthEast();</PRE><PRE>                             <SPAN class=kwrd>var</SPAN> lngSpan = northEast.lng() - southWest.lng();</PRE><PRE class=alt>                             <SPAN class=kwrd>var</SPAN> latSpan = northEast.lat() - southWest.lat();</PRE><PRE>                         <SPAN class=kwrd>for</SPAN> (<SPAN class=kwrd>var</SPAN> i = 0; i &lt; 10; i++) {  </PRE><PRE class=alt><P>           <SPAN class=kwrd>var</SPAN> point = <SPAN class=kwrd>new</SPAN> GLatLng(southWest.lat() + latSpan * Math.random(),southWest.lng() + </P><P>lngSpan * Math.random()); </P></PRE><PRE>                              map.addOverlay(<SPAN class=kwrd>new</SPAN> GMarker(point));}<SPAN class=rem>// 添加一个由 5 个随机点连成的折线，</SPAN></PRE><PRE><SPAN class=rem>把随机点按其经度排序以避免折线相交</SPAN></PRE><PRE class=alt>                              <SPAN class=kwrd>var</SPAN> points = [];</PRE><PRE>                              <SPAN class=kwrd>for</SPAN> (<SPAN class=kwrd>var</SPAN> i = 0; i &lt; 5; i++) { </PRE><PRE class=alt><P>                                   points.push(<SPAN class=kwrd>new</SPAN> GLatLng(southWest.lat() + latSpan * Math.random(),southWest.lng()</P><P> + lngSpan * Math.random()));</P></PRE><PRE>                                   }</PRE><PRE class=alt><P>                                   points.sort(<SPAN class=kwrd>function</SPAN>(p1, p2) {  <SPAN class=kwrd>return</SPAN> p1.lng() - p2.lng();});</P><P>map.addOverlay(<SPAN class=kwrd>new</SPAN> GPolyline(points));</P></PRE><PRE>                        </PRE><PRE class=alt>                        </PRE><PRE>                </PRE><PRE class=alt>                  </PRE><PRE>                        GEvent.addListener(map, <SPAN class=str>"click"</SPAN>, <SPAN class=kwrd>function</SPAN>(marker, point) { </PRE><PRE class=alt>                             <SPAN class=kwrd>if</SPAN> (marker) </PRE><PRE>                             {    map.removeOverlay(marker); </PRE><PRE class=alt>                             } <SPAN class=kwrd>else</SPAN></PRE><PRE>                                  {    map.addOverlay(<SPAN class=kwrd>new</SPAN> GMarker(point)); }</PRE><PRE class=alt>                                  });</PRE><PRE>                        </PRE><PRE class=alt>                        </PRE><PRE>                            }</PRE><PRE class=alt>                            }</PRE><PRE>                            </PRE><PRE class=alt>                            </PRE><PRE>&nbsp;</PRE><PRE class=alt>    <SPAN class=rem>//]]&gt;</SPAN></PRE><PRE>    <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>script</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>  <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>head</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>  <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>body</SPAN> <SPAN class=attr>onload</SPAN><SPAN class=kwrd>="load()"</SPAN> <SPAN class=attr>onunload</SPAN><SPAN class=kwrd>="GUnload()"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>      <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>div</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>   </PRE><PRE class=alt>       <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>div</SPAN> <SPAN class=attr>id</SPAN><SPAN class=kwrd>="map"</SPAN> <SPAN class=attr>style</SPAN><SPAN class=kwrd>="width: 750px; height: 550px"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE> </PRE><PRE class=alt>           <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>div</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE> </PRE><PRE class=alt> <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>div</SPAN><SPAN class=kwrd>&gt;</SPAN> <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>body</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE><SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>html</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE><SPAN class=kwrd></SPAN>&nbsp;</PRE><PRE><SPAN class=kwrd><A href="/images/cnblogs_com/zbqy/WindowsLiveWriter/GOOGLEMAPAPI_F92A/%7BECB375A4-87E5-4CC6-AE77-BAC33F87E40A%7D.png" atomicselection="true"><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=345 alt={ECB375A4-87E5-4CC6-AE77-BAC33F87E40A} src="http://www.cnblogs.com/images/cnblogs_com/zbqy/WindowsLiveWriter/GOOGLEMAPAPI_F92A/%7BECB375A4-87E5-4CC6-AE77-BAC33F87E40A%7D_thumb.png" width=577 border=0></A> </SPAN></PRE><PRE><SPAN class=kwrd></SPAN>&nbsp;</PRE><PRE><SPAN class=kwrd>再详细的使用　还在　研究中　呵呵</SPAN></PRE><PRE><SPAN class=kwrd></SPAN>&nbsp;</PRE></DIV>
<STYLE type=text/css>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</STYLE><img src ="http://www.cnblogs.com/zbqy/aggbug/852703.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42959/" target="_blank">[新闻]微软承认Vista用户账户控制功能有问题</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>关于FileUpload上传大文件的问题解决办法</title><link>http://www.cnblogs.com/zbqy/archive/2007/07/28/834991.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Sat, 28 Jul 2007 14:17:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/07/28/834991.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/834991.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/07/28/834991.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/834991.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/834991.html</trackback:ping><description><![CDATA[<P>当使用FileUpload 上传大文件时候<BR>会出现错误<BR><BR>您正在查找的页当前不可用。 网站可能遇到支持问题，或者您需要 调整您的浏览器设置。 <BR><BR>-------------------------------------------------------------------------------- <BR><BR>请尝试以下操作: <BR><BR>单击 刷新按钮，或稍后重试。 <BR><BR>如果您已经在地址栏中输入该网页的地址， 请确认其拼写正确。 <BR><BR>要检查您的网络连接，请单击工具菜单，然后单击 Internet 选项。在连接选项卡上，单击设置。 设置必须与您的局域网 (LAN) 管理员或 Internet 服务供应商 (ISP) 提供的一致。 <BR>查看您的 Internet 连接设置是否正确被检测。您可能设置让 Microsoft Windows 检查您的网站并自动发现网络连接设置(如果您的网络管理员已经启用此设置)。 <BR>单击工具菜单，然后单击Internet 选项。 <BR>在连接选项卡上，单击LAN 设置。 <BR>选择自动检测设置，然后单击确定。 <BR>某些站点要求 128-位的连接安全性。单击帮助菜单，然后单击关于 Internet Explorer 可以查看您所安装的安全强度。 <BR>如果您要访问某安全站点，请确保您的安全设置能够支持。请单击工具菜单，然后单击 Internet 选项。在“高级”选项卡上，滚动到“安全”部分，复选 SSL 2.0、SSL 3.0、TLS 1.0、PCT 1.0 设置。 <BR>单击上一步按钮，尝试其他链接。 <BR><BR><BR><BR>找不到服务器或 DNS 错误 <BR>Internet Explorer&nbsp;&nbsp;<BR><BR>在WebConfig 中 增加<BR><STRONG><FONT style="BACKGROUND-COLOR: #ff1493">&lt;system.web&gt;</FONT></STRONG></P>
<P><STRONG><FONT style="BACKGROUND-COLOR: #ff1493">&nbsp;&nbsp;&nbsp; &lt;httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="104857" executionTimeout="900"/&gt;<BR>&lt;/System.web&gt;<BR><BR>即可解决大文件上传错误<BR></FONT><FONT style="BACKGROUND-COLOR: #000000"><BR></FONT></STRONG></P><img src ="http://www.cnblogs.com/zbqy/aggbug/834991.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42958/" target="_blank">[新闻]资本寒冬侵袭中国视频网站 营销春天或不远</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>搁浅了我也</title><link>http://www.cnblogs.com/zbqy/archive/2007/07/20/825844.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Fri, 20 Jul 2007 09:48:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/07/20/825844.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/825844.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/07/20/825844.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/825844.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/825844.html</trackback:ping><description><![CDATA[<BR>久未放晴的天空 <BR>依旧留着你的笑容 <BR>哭过却无法掩埋歉疚 <BR>风筝在阴天搁浅 <BR>想念还在等待救援 <BR>我拉着弦复习你给的温柔 <BR>暴晒在一旁的寂寞 <BR>笑我给不起承诺 <BR>怎么会怎么会你竟原谅了我 <BR>我只能永远读着对白 <BR>读着我给你的伤害<BR>我原谅不了我 <BR>就请你当作我已不在 <BR>我睁开双眼 看着空白 <BR>忘记你对我的期待<BR>读完了依赖 我很快就离开 <BR><img src ="http://www.cnblogs.com/zbqy/aggbug/825844.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42957/" target="_blank">[新闻]金融风暴波及全球创业板 中国概念股难独善其身</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>无法启动IIS服务解决办法</title><link>http://www.cnblogs.com/zbqy/archive/2007/07/17/820484.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Mon, 16 Jul 2007 16:15:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/07/17/820484.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/820484.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/07/17/820484.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/820484.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/820484.html</trackback:ping><description><![CDATA[今天需要本地调试下ASP.net程序<BR>发现 无法启动IIS<BR>&nbsp;在网上找了很多相关的资料<BR><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG id=Codehighlighter1_0_563_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_563_Open_Text.style.display='none'; Codehighlighter1_0_563_Closed_Image.style.display='inline'; Codehighlighter1_0_563_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_563_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_563_Closed_Text.style.display='none'; Codehighlighter1_0_563_Open_Image.style.display='inline'; Codehighlighter1_0_563_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_563_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_0_563_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>第一种&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>解决办法：在Internet信息服务下有本地计算机(计算机机名)，单击名键，选择断开，提示确实要断开本地计算机(计算机机名)吗？选择确定。&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>右键单击Internet，选择连接，计算机名填本机名称，用户名填本机管理员帐号（Administrator），确定。&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>第二种&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>“eventlog”服务，然后启动“WorldWideWebPublishing”服务&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>第三种&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>先打开Administrative&nbsp;Tools&nbsp;--&gt;&nbsp;Service，发现World&nbsp;Wide&nbsp;Web&nbsp;Publishing&nbsp;Service停止了。于是试图启动该服务，结果报错。&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>于是查看World&nbsp;Wide&nbsp;Web&nbsp;Publishing&nbsp;Services所需要依赖的服务（Dependencies），看到是IIS&nbsp;Admin&nbsp;Service。进而发现IIS&nbsp;Admin&nbsp;Service也无法启动，再查IIS&nbsp;Admin&nbsp;Service的Dependencies，查的结果是Protected&nbsp;Storage和RPC（Remote&nbsp;Procedure&nbsp;Call），于是启动RPC，接着顺利启动IIS&nbsp;Admin&nbsp;Service，接着启动World&nbsp;Wide&nbsp;Web&nbsp;Publishing&nbsp;Services，IIS恢复正常。<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN></DIV><BR>这个解决方法中 连 World Wide Web Publishing Service 服务都 启动不了<BR><BR>最后发现了 <BR>原来是更新的 原因<BR>导致了 我的IIS 无法启动<BR><A onclick="return c('9c8c',this.innerHTML,this.href,1)" href="http://blog.cfan.com.cn/index.php/171092/action_viewspace_itemid_37167" target=_blank><FONT color=#000000 size=3>启动IIS时提示“服务没有及时响应启动或控制请求”</FONT></A><BR><BR>最终的解决方法<BR><BR><FONT color=#ff0000><STRONG>只要在"添加或删除程序"顶部选中"显示更新",然后删除939373的补丁就可以启动world wide web publishing服务了<BR><BR><FONT color=#000000>我的IIS 又活了</FONT></STRONG></FONT><img src ="http://www.cnblogs.com/zbqy/aggbug/820484.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42956/" target="_blank">[新闻]携程范敏：CEO从接发传真做起</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>我对FreeTextBox简单使用</title><link>http://www.cnblogs.com/zbqy/archive/2007/06/09/777164.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Fri, 08 Jun 2007 16:46:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/06/09/777164.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/777164.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/06/09/777164.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/777164.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/777164.html</trackback:ping><description><![CDATA[<p></p> <p>对于FreeTextBox(版本3.1.6)在ASP.Net 2.0中使用, <p>放上下载地址： <p>&nbsp;下载最新版FreeTextBox(版本3.1.6),解压<br>&nbsp;&nbsp; FreeTextBox 3.1.6 (2006/07/18) <br>&nbsp;&nbsp; 博客园本地下载： http://www.cnblogs.com/Files/cleo/FTBv3-1-6.zip<br>&nbsp;&nbsp; 作者网站下载地址：http://freetextbox.com/download/<br>&nbsp;&nbsp; 详细版本有哪些改进和修改历史可以看这里：<a href="http://freetextbox.com/download/changelog.aspx">http://freetextbox.com/download/changelog.aspx</a> <p>&nbsp; <p>只需要将：FreeTextBox.DLL&nbsp;&nbsp; ftb.imagegallery.aspx&nbsp; 和aspnet_client文件夹 拷入你的项目当中 <p>打开ASP.Net2.0项目，添加引用。（如果添加过以前版本的FreeTextBox，先删除以前版本的引用） <p>将FreeTextBox添加到工具栏。（工具栏〉常规〉选择项〉浏览到DLL文件，添加） <p>&nbsp; <div class="csharpcode"><pre><span class="kwrd"></span>&nbsp;</pre>
<div class="csharpcode"><pre><span class="kwrd"></span></pre>
<div class="csharpcode"><pre class="alt"><span class="kwrd">&lt;</span><span class="html">FTB:FreeTextBox</span> <span class="attr">ID</span><span class="kwrd">="Free1"</span>   <span class="attr">ImageGalleryPath</span><span class="kwrd">="~/Images"</span>   </pre><pre> <span class="attr">Language</span><span class="kwrd">="zh-CN"</span> <span class="attr">runat</span><span class="kwrd">="server"</span>  </pre><pre class="alt">        <span class="attr">ButtonDownImage</span><span class="kwrd">="True"</span></pre><pre>                 <span class="attr">toolbarlayout</span><span class="kwrd">="ParagraphMenu,</pre><pre class="alt"><font color="#0000ff">FontFacesMenu,</font></pre><pre><font color="#0000ff">FontSizesMenu,FontForeColorsMenu,</font></pre><pre class="alt"><font color="#0000ff">FontForeColorPicker,FontBackColorsMenu,</font></pre><pre><font color="#0000ff">FontBackColorPicker|Bold,Italic,</font></pre><pre class="alt"><font color="#0000ff">            Underline,Strikethrough,Superscript,</font></pre><pre><font color="#0000ff">Subscript,RemoveFormat|JustifyLeft,JustifyRight,</font></pre><pre class="alt"><font color="#0000ff">            JustifyCenter,JustifyFull;BulletedList,</font></pre><pre><font color="#0000ff">NumberedList,Indent,Outdent;CreateLink,Unlink,</font></pre><pre class="alt"><font color="#0000ff">            InsertImage|Cut,Copy,Paste,Delete;</font></pre><pre><font color="#0000ff">Undo,Redo,Print,Save|SymbolsMenu,StylesMenu,</font></pre><pre class="alt"><font color="#0000ff">            InsertHtmlMenu|InsertRule,InsertDate,</font></pre><pre><font color="#0000ff">InsertTime|InsertTable,EditTable;InsertTableRowAfter,</font></pre><pre class="alt"><font color="#0000ff">            InsertTableRowBefore,DeleteTableRow;</font></pre><pre><font color="#0000ff">InsertTableColumnAfter,</font></pre><pre class="alt"><font color="#0000ff">InsertTableColumnBefore,DeleteTableColumn|InsertForm,</font></pre><pre><font color="#0000ff">            InsertTextBox,InsertTextArea,</font></pre><pre class="alt"><font color="#0000ff">InsertRadioButton,</font></pre><pre><font color="#0000ff">InsertCheckBox,InsertDropDownList,InsertButton|InsertDiv,</font></pre><pre class="alt"><font color="#0000ff">EditStyle,InsertImageFromGallery,Preview,SelectAll,</font></pre><pre><font color="#0000ff">WordClean,NetSpell"</font></span></pre><pre class="alt">            <span class="attr">runat</span><span class="kwrd">="Server"</span><span class="kwrd">&gt;</span>     <span class="kwrd">&lt;/</span><span class="html">FTB:FreeTextBox</span><span class="kwrd">&gt;</span></pre></div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
</div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
</div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>

<p>上面代码中　将FreeTextBox中的功能按钮全部显示出来 并使语言为中文　设置上传图片的保存地址
<p>&nbsp;
<p>在
<p>ftb.imageegallery.aspx 中 设置属性
<div class="csharpcode"><pre class="alt"><span class="kwrd">&lt;</span><span class="html">FTB:ImageGallery</span> <span class="attr">id</span><span class="kwrd">="ImageGallery1"</span></pre><pre>            <span class="attr">SupportFolder</span><span class="kwrd">="~/aspnet_client/FreeTextBox/"</span></pre><pre class="alt">            <span class="attr">AllowImageDelete</span><span class="kwrd">="true"</span> <span class="attr">AllowImageUpload</span><span class="kwrd">="true"</span> </pre><pre>             <span class="attr">AllowDirectoryCreate</span><span class="kwrd">="true"</span> <span class="attr">AllowDirectoryDelete</span><span class="kwrd">="true"</span> <span class="attr">runat</span><span class="kwrd">="Server"</span><span class="kwrd">/&gt;</span></pre></div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>

<p>&nbsp;
<p>是否允许删除图片 上传图片 是否允许创建文件夹 删除文件夹 </p>
<p>&nbsp;</p>
<p>在freetextbox 中 使用了 Imageegallery 上传图片&nbsp; 但是 在界面中是英文的</p>
<p>&nbsp;</p>
<p>在网上说使用&nbsp; ildasm.exe&nbsp; 来 转存 </p>
<p>ildasm.exe 位于 X:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin 下</p>
<p>将 Freetextbox.dll&nbsp; 使用ildasm 转存后&nbsp; 反编译出很多个小图片 和几个JS 文件</p>
<p>&nbsp;</p>
<p>我们更改下 FreeTextBoxControls.Resources.JavaScript.FTB-Pro.js 中相应的 英文句子 来汉化它</p>
<p>当更改完成后 我们再使用 ilasm.exe 来再进行拼装DLL 文件 </p>
<p>ilasm.exe文件位于 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 中</p>
<p><a href="http://msdn2.microsoft.com/zh-cn/library/496e4ekx(VS.80).aspx">MSIL 汇编程序 (Ilasm.exe)</a></p><pre>ilasm myTestFile /dll </pre>
<p>下面的命令对 MSIL 文件 <tt>myTestFile.il</tt> 进行汇编并产生 .dll 文件 <tt>myNewTestFile.dll</tt>。
<p>&nbsp;
<p>NET Framework 工具&nbsp; 
<p>MSIL 汇编程序 (Ilasm.exe)&nbsp; 
<p>MSIL 汇编程序从 Microsoft 中间语言 (MSIL) 生成可移植可执行的 (PE) 文件。（有关 MSIL 的更多信息，请参见<a href="http://msdn2.microsoft.com/c5tkafs1(VS.80).aspx">编译为 MSIL</a>。）可以运行结果可执行文件（该文件包含 MSIL 和所需的元数据）以确定 MSIL 是否按预期执行。
<p>参考 </p>
<p><a href="http://www.cnblogs.com/BG5SBK/archive/2006/05/26/F...">FreeTextBox 3.14版改进与汉化</a></p>
<p>&nbsp;</p>
<p><a href="http://www.cnblogs.com/images/cnblogs_com/zbqy/WindowsLiveWriter/FreeTextBox_1CB/%7B9E5836BE-195C-408F-9072-AE5B80CCDD04%7D%5B4%5D.png" atomicselection="true"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="308" src="http://www.cnblogs.com/images/cnblogs_com/zbqy/WindowsLiveWriter/FreeTextBox_1CB/%7B9E5836BE-195C-408F-9072-AE5B80CCDD04%7D_thumb%5B2%5D.png" width="445" border="0"></a></p><img src ="http://www.cnblogs.com/zbqy/aggbug/777164.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42955/" target="_blank">[新闻]2008年10月13日科技博客精选</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>C#格式化数据结果表</title><link>http://www.cnblogs.com/zbqy/archive/2007/06/05/772558.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Tue, 05 Jun 2007 10:47:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/06/05/772558.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/772558.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/06/05/772558.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/772558.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/772558.html</trackback:ping><description><![CDATA[今天 突然想到了 <BR>
<TABLE id=Table1 cellSpacing=0 borderColorDark=white cellPadding=0 rules=none width=780 align=center border=0>
<TBODY>
<TR>
<TD></TD></TR>
<TR>
<TD height=50>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string ToString(string format);<BR>找到资料 留着 已被将来使用<BR></TD></TR>
<TR>
<TD>
<TABLE id=Table4 cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD><BR><!--begin-->
<H2>C#格式化数值结果表</H2>
<DIV class=postbody>
<TABLE style="WIDTH: 474px; BORDER-COLLAPSE: collapse; HEIGHT: 203px" cellSpacing=0 cellPadding=3 border=1>
<TBODY>
<TR bgColor=#c0c0c0>
<TD style="FONT-SIZE: 12pt">
<P align=center><FONT size=2><STRONG>字符</STRONG></FONT> </P></TD>
<TD style="FONT-SIZE: 12pt">
<P align=center><FONT size=2><STRONG>说明</STRONG></FONT> </P></TD>
<TD style="FONT-SIZE: 12pt">
<P align=center><FONT size=2><STRONG>示例</STRONG></FONT> </P></TD>
<TD style="FONT-SIZE: 12pt">
<P align=center><FONT size=2><STRONG>输出</STRONG></FONT> </P></TD></TR>
<TR>
<TD>C</TD>
<TD>货币</TD>
<TD><STRONG style="COLOR: black; BACKGROUND-COLOR: #a0ffff"><FONT style="BACKGROUND-COLOR: #ffffff">string.Format</FONT></STRONG>("{0:C3}", 2)</TD>
<TD>＄2.000</TD></TR>
<TR>
<TD>D</TD>
<TD>十进制</TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff"><STRONG style="COLOR: black; BACKGROUND-COLOR: #a0ffff"><FONT style="BACKGROUND-COLOR: #ffffff">string.Format</FONT></STRONG>("{0:D3}", 2)</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">002</FONT></TD></TR>
<TR>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">E</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">科学计数法</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">1.20E+001</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">1.20E+001</FONT></TD></TR>
<TR>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">G</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">常规</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff"><STRONG style="COLOR: black; BACKGROUND-COLOR: #a0ffff"><FONT style="BACKGROUND-COLOR: #ffffff">string.Format</FONT></STRONG>("{0:G}", 2)</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">2</FONT></TD></TR>
<TR>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">N</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">用分号隔开的数字</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff"><STRONG style="COLOR: black; BACKGROUND-COLOR: #a0ffff"><FONT style="BACKGROUND-COLOR: #ffffff">string.Format</FONT></STRONG>("{0:N}", 250000)</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">250,000.00</FONT></TD></TR>
<TR>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">X</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">十六进制</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff"><STRONG style="COLOR: black; BACKGROUND-COLOR: #a0ffff"><FONT style="BACKGROUND-COLOR: #ffffff">string.Format</FONT></STRONG>("{0:X000}", 12)</FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff">C</FONT></TD></TR>
<TR>
<TD><FONT style="BACKGROUND-COLOR: #ffffff"><BR></FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff"><BR></FONT></TD>
<TD><FONT style="BACKGROUND-COLOR: #ffffff"><STRONG style="COLOR: black; BACKGROUND-COLOR: #a0ffff"><FONT style="BACKGROUND-COLOR: #ffffff">string.Format</FONT></STRONG>("{0:000.000}", 12.2)</FONT></TD>
<TD>012.200</TD></TR></TBODY></TABLE></DIV>
<H3><FONT face=Verdana>Strings</FONT></H3>
<P><FONT size=2><FONT size=3>There really isn't any formatting within a strong, beyond it's alignment. Alignment works for any argument being printed in a String.Format call.</FONT> </FONT></P>
<P>&nbsp;</P>
<P>
<TABLE style="WIDTH: 520px; HEIGHT: 62px">
<TBODY>
<TR>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Sample</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Generates</FONT></STRONG></TD></TR>
<TR>
<TD align=middle><FONT face="Courier New" size=2>String.Format("-&gt;{1,10}&lt;-", "Hello");</FONT></TD>
<TD><FONT face="Courier New" size=2>-&gt; Hello&lt;-</FONT></TD></TR>
<TR>
<TD align=middle><FONT face="Courier New" size=2>String.Format("-&gt;{1,-10}&lt;-", "Hello");</FONT></TD>
<TD><FONT face="Courier New" size=2>-&gt;Hello &lt;-</FONT></TD></TR></TBODY></TABLE></P>
<H3><FONT face=Verdana>Numbers</FONT></H3>
<P>Basic number formatting specifiers:</P>
<P>&nbsp;</P>
<P>
<TABLE style="WIDTH: 631px; HEIGHT: 342px">
<TBODY>
<TR>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Specifier</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Type</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Format </FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0>
<P><STRONG><FONT size=2>Output <BR></FONT></STRONG><STRONG><FONT size=2>(Passed <BR>Double 1.42)</FONT></STRONG></P></TD>
<TD align=middle bgColor=#c0c0c0>
<P><STRONG><FONT size=2>Output <BR></FONT></STRONG><STRONG><FONT size=2>(Passed <BR>Int -12400)</FONT></STRONG></P></TD></TR>
<TR>
<TD align=middle><FONT size=2>c</FONT></TD>
<TD><FONT size=2>Currency</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:c}</FONT></TD>
<TD><FONT size=2>＄1.42</FONT></TD>
<TD><FONT size=2>-＄12,400</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>d</FONT></TD>
<TD><FONT size=2>Decimal (Whole number)</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:d}</FONT></TD>
<TD><STRONG><FONT size=2>System.<BR>FormatException</FONT></STRONG></TD>
<TD><FONT size=2>-12400</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>e</FONT></TD>
<TD><FONT size=2>Scientific</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:e}</FONT></TD>
<TD><FONT size=2>1.420000e+000</FONT></TD>
<TD><FONT size=2>-1.240000e+004</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>f</FONT></TD>
<TD><FONT size=2>Fixed point</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:f}</FONT></TD>
<TD><FONT size=2>1.42</FONT></TD>
<TD><FONT size=2>-12400.00</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>g</FONT></TD>
<TD><FONT size=2>General</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:g}</FONT></TD>
<TD><FONT size=2>1.42</FONT></TD>
<TD><FONT size=2>-12400</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>n</FONT></TD>
<TD><FONT size=2>Number with commas for thousands</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:n}</FONT></TD>
<TD><FONT size=2>1.42</FONT></TD>
<TD><FONT size=2>-12,400</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>r</FONT></TD>
<TD><FONT size=2>Round trippable</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:r}</FONT></TD>
<TD><FONT size=2>1.42</FONT></TD>
<TD><STRONG><FONT size=2>System.<BR>FormatException</FONT></STRONG></TD></TR>
<TR>
<TD align=middle><FONT size=2>x</FONT></TD>
<TD><FONT size=2>Hexadecimal</FONT></TD>
<TD><FONT face="Courier New" size=2>{0:x4}</FONT></TD>
<TD><STRONG><FONT size=2>System.<BR>FormatException</FONT></STRONG></TD>
<TD><FONT size=2>cf90</FONT></TD></TR></TBODY></TABLE></P>
<P>Custom number formatting:</P>
<P>&nbsp;</P>
<P>
<TABLE style="WIDTH: 681px; HEIGHT: 476px">
<TBODY>
<TR>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Specifier</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Type</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Example </FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Output (Passed Double 1500.42)</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Note</FONT></STRONG></TD></TR>
<TR>
<TD align=middle><FONT size=2>0</FONT></TD>
<TD><FONT size=2>Zero placeholder</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:00.0000}</FONT></TD>
<TD><FONT size=2>1500.4200</FONT></TD>
<TD><FONT size=2>Pads with zeroes.</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>#</FONT></TD>
<TD><FONT size=2>Digit placeholder</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:(#).##}</FONT></TD>
<TD><FONT size=2>(1500).42</FONT></TD>
<TD><FONT size=2></FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>.</FONT></TD>
<TD><FONT size=2>Decimal point</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:0.0}</FONT></TD>
<TD><FONT size=2>1500.4</FONT></TD>
<TD><FONT size=2></FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>,</FONT></TD>
<TD><FONT size=2>Thousand separator</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:0,0}</FONT></TD>
<TD><FONT size=2>1,500</FONT></TD>
<TD><FONT size=2>Must be between two zeroes.</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>,.</FONT></TD>
<TD><FONT size=2>Number scaling</FONT></TD>
<TD align=middle><FONT size=2><FONT face="Courier New">{0:0,.}</FONT> </FONT></TD>
<TD><FONT size=2>2</FONT></TD>
<TD><FONT size=2>Comma adjacent to Period scales by 1000.</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>%</FONT></TD>
<TD><FONT size=2>Percent</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:0%}</FONT></TD>
<TD><FONT size=2>150042%</FONT></TD>
<TD><FONT size=2>Multiplies by 100, adds % sign.</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>e</FONT></TD>
<TD><FONT size=2>Exponent placeholder</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:00e+0}</FONT></TD>
<TD><FONT size=2>15e+2</FONT></TD>
<TD><FONT size=2>Many exponent formats available.</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>;</FONT></TD>
<TD><FONT size=2>Group separator</FONT></TD>
<TD align=middle><FONT size=2>see below</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD>&nbsp;</TD></TR></TBODY></TABLE></P>
<P>The group separator is especially useful for formatting currency values which require that negative values be enclosed in parentheses. This currency formatting example at the bottom of this document makes it obvious:</P>
<H3><FONT face=Verdana>Dates</FONT></H3>
<P>Note that date formatting is especially dependant on the system's regional settings; the example strings here are from my local locale.</P>
<P>&nbsp;</P>
<P>
<TABLE style="WIDTH: 675px; HEIGHT: 334px">
<TBODY>
<TR>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Specifier</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Type</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Example (Passed System.DateTime.Now)</FONT></STRONG></TD></TR>
<TR>
<TD align=middle><FONT size=2>d</FONT></TD>
<TD><FONT size=2>Short date</FONT></TD>
<TD><FONT size=2>10/12/2002</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>D</FONT></TD>
<TD><FONT size=2>Long date</FONT></TD>
<TD><FONT size=2>December 10, 2002</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>t</FONT></TD>
<TD><FONT size=2>Short time</FONT></TD>
<TD><FONT size=2>10:11 PM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>T</FONT></TD>
<TD><FONT size=2>Long time</FONT></TD>
<TD><FONT size=2>10:11:29 PM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>f</FONT></TD>
<TD><FONT size=2>Full date &amp; time </FONT></TD>
<TD><FONT size=2>December 10, 2002 10:11 PM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>F</FONT></TD>
<TD><FONT size=2>Full date &amp; time (long)</FONT></TD>
<TD><FONT size=2>December 10, 2002 10:11:29 PM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>g</FONT></TD>
<TD><FONT size=2>Default date &amp; time</FONT></TD>
<TD><FONT size=2>10/12/2002 10:11 PM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>G</FONT></TD>
<TD><FONT size=2>Default date &amp; time (long)</FONT></TD>
<TD><FONT size=2>10/12/2002 10:11:29 PM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>M</FONT></TD>
<TD><FONT size=2>Month day pattern</FONT></TD>
<TD><FONT size=2>December 10</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>r</FONT></TD>
<TD><FONT size=2>RFC1123 date string</FONT></TD>
<TD><FONT size=2>Tue, 10 Dec 2002 22:11:29 GMT</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>s</FONT></TD>
<TD><FONT size=2>Sortable date string</FONT></TD>
<TD><FONT size=2>2002-12-10T22:11:29</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>u</FONT></TD>
<TD><FONT size=2>Universal sortable, local time</FONT></TD>
<TD><FONT size=2>2002-12-10 22:13:50Z</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>U</FONT></TD>
<TD><FONT size=2>Universal sortable, GMT</FONT></TD>
<TD><FONT size=2>December 11, 2002 3:13:50 AM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>Y</FONT></TD>
<TD><FONT size=2>Year month pattern</FONT></TD>
<TD><FONT size=2>December, 2002</FONT></TD></TR></TBODY></TABLE></P>
<P>The 'U' specifier seems broken; that string certainly isn't sortable.</P>
<P><STRONG>Custom date formatting:</STRONG></P>
<P>&nbsp;</P>
<P>
<TABLE style="WIDTH: 721px; HEIGHT: 442px">
<TBODY>
<TR>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Specifier</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Type</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Example </FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Example Output</FONT></STRONG></TD></TR>
<TR>
<TD align=middle><FONT size=2>dd</FONT></TD>
<TD><FONT size=2>Day</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:dd}</FONT></TD>
<TD><FONT size=2>10</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>ddd</FONT></TD>
<TD><FONT size=2>Day name</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:ddd}</FONT></TD>
<TD><FONT size=2>Tue</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>dddd</FONT></TD>
<TD><FONT size=2>Full day name</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:dddd}</FONT></TD>
<TD><FONT size=2>Tuesday</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>f, ff, ...</FONT></TD>
<TD><FONT size=2>Second fractions</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:fff}</FONT></TD>
<TD><FONT size=2>932</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>gg, ...</FONT></TD>
<TD><FONT size=2>Era</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:gg}</FONT></TD>
<TD><FONT size=2>A.D.</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>hh</FONT></TD>
<TD><FONT size=2>2 digit hour</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:hh}</FONT></TD>
<TD><FONT size=2>10</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>HH</FONT></TD>
<TD><FONT size=2>2 digit hour, 24hr format</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:HH}</FONT></TD>
<TD><FONT size=2>22</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>mm</FONT></TD>
<TD><FONT size=2>Minute 00-59</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:mm}</FONT></TD>
<TD><FONT size=2>38</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>MM</FONT></TD>
<TD><FONT size=2>Month 01-12</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:MM}</FONT></TD>
<TD><FONT size=2>12</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>MMM</FONT></TD>
<TD><FONT size=2>Month abbreviation</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:MMM}</FONT></TD>
<TD><FONT size=2>Dec</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>MMMM</FONT></TD>
<TD><FONT size=2>Full month name</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:MMMM}</FONT></TD>
<TD><FONT size=2>December</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>ss</FONT></TD>
<TD><FONT size=2>Seconds 00-59</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:ss}</FONT></TD>
<TD><FONT size=2>46</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>tt</FONT></TD>
<TD><FONT size=2>AM or PM</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:tt}</FONT></TD>
<TD><FONT size=2>PM</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>yy</FONT></TD>
<TD><FONT size=2>Year, 2 digits</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:yy}</FONT></TD>
<TD><FONT size=2>02</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>yyyy</FONT></TD>
<TD><FONT size=2>Year</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:yyyy}</FONT></TD>
<TD><FONT size=2>2002</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>zz</FONT></TD>
<TD><FONT size=2>Timezone offset, 2 digits</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:zz}</FONT></TD>
<TD><FONT size=2>-05</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>zzz</FONT></TD>
<TD><FONT size=2>Full timezone offset</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:zzz}</FONT></TD>
<TD><FONT size=2>-05:00</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>:</FONT></TD>
<TD><FONT size=2>Separator</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:hh:mm:ss}</FONT></TD>
<TD><FONT size=2>10:43:20</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>/</FONT></TD>
<TD><FONT size=2>Separator</FONT></TD>
<TD align=middle><FONT face="Courier New" size=2>{0:dd/MM/yyyy}</FONT></TD>
<TD><FONT size=2>10/12/2002</FONT></TD></TR></TBODY></TABLE></P>
<H3><FONT face=Verdana>Enumerations</FONT></H3>
<P>&nbsp;</P>
<P>
<TABLE style="WIDTH: 702px; HEIGHT: 102px">
<TBODY>
<TR>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Specifier</FONT></STRONG></TD>
<TD align=middle bgColor=#c0c0c0><STRONG><FONT size=2>Type</FONT></STRONG></TD></TR>
<TR>
<TD align=middle><FONT size=2>g</FONT></TD>
<TD><FONT size=2>Default (Flag names if available, otherwise decimal)</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>f</FONT></TD>
<TD><FONT size=2>Flags always</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>d</FONT></TD>
<TD><FONT size=2>Integer always</FONT></TD></TR>
<TR>
<TD align=middle><FONT size=2>x</FONT></TD>
<TD><FONT size=2>Eight digit hex.</FONT></TD></TR></TBODY></TABLE></P>
<H3><FONT face=Verdana>Some Useful Examples</FONT></H3>
<P><FONT face="Courier New" size=2>String.Format("{0:＄#,##0.00;(＄#,##0.00);Zero}", value);</FONT></P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<P>This will output "＄1,240.00" if passed 1243.50. It will output the same format but in parentheses if the number is negative, and will output the string "Zero" if the number is zero.</P></BLOCKQUOTE>
<P><FONT face="Courier New" size=2>String.Format("{0:(###) ###-####}", 18005551212);</FONT></P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<P>This will output "(800) 555-1212".</P>
<P>&nbsp;</P>
<P><FONT size=5><STRONG>变量.ToString()</STRONG></FONT> </P>
<P><BR>字符型转换 转为字符串 <BR>12345.ToString("n"); //生成 12,345.00 <BR>12345.ToString("C"); //生成 ￥12,345.00 <BR>12345.ToString("e"); //生成 1.234500e+004 <BR>12345.ToString("f4"); //生成 12345.0000 <BR>12345.ToString("x"); //生成 3039 (16进制) <BR>12345.ToString("p"); //生成 1,234,500.00%</P></BLOCKQUOTE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><img src ="http://www.cnblogs.com/zbqy/aggbug/772558.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42954/" target="_blank">[新闻]Google Android手机大受欢迎,已经订出150万台</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>使用JavaScript 为GridView 行添加淡入淡出效果</title><link>http://www.cnblogs.com/zbqy/archive/2007/06/04/770233.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Mon, 04 Jun 2007 02:10:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/06/04/770233.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/770233.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/06/04/770233.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/770233.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/770233.html</trackback:ping><description><![CDATA[<P></P>
<P>GridView row fading is specially useful when you are performing operations on the single row. These operations can be save, update, delete etc. Let's check out how to create fading effects using JavaScript. 
<P>First I need to populate the GridView control. 
<P> 
<P><A href="http://aspadvice.com/blogs/azamsharp/archive/2007/...">http://aspadvice.com/blogs/azamsharp/archive/2007/...</A> 
<P>这是 
<P><A href="/dflying/">http://www.cnblogs.com/dflying/</A>　推荐的<A href="/dflying/archive/2007/06/01/768251.html">本周ASP.NET英文技术文章推荐[05/20 - 06/02]</A>　中的一篇文章 
<P>自己做了一遍 
<P>实现 
<P> 
<P><A href="/images/cnblogs_com/zbqy/WindowsLiveWriter/JavaScriptGridView_8BB5/%7B9BE81A2E-7AE3-40E6-B068-25E6CCC8DBFE%7D%5B2%5D.png" atomicselection="true"><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=155 src="http://www.cnblogs.com/images/cnblogs_com/zbqy/WindowsLiveWriter/JavaScriptGridView_8BB5/%7B9BE81A2E-7AE3-40E6-B068-25E6CCC8DBFE%7D_thumb.png" width=526 border=0></A> 
<P> 
<DIV class=csharpcode><PRE class=alt><SPAN class=asp>&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;</SPAN></PRE><PRE>&nbsp;</PRE><PRE class=alt><SPAN class=kwrd>&lt;!</SPAN><SPAN class=html>DOCTYPE</SPAN> <SPAN class=attr>html</SPAN> <SPAN class=attr>PUBLIC</SPAN> <SPAN class=kwrd>"-//W3C//DTD XHTML 1.0 Transitional//EN"</SPAN> <SPAN class=kwrd>"http://www.w3.org/TR/xhtml1/DTD/<BR>xhtml1-transitional.dtd"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>&nbsp;</PRE><PRE class=alt><SPAN class=kwrd>&lt;</SPAN><SPAN class=html>html</SPAN> <SPAN class=attr>xmlns</SPAN><SPAN class=kwrd>="http://www.w3.org/1999/xhtml"</SPAN> <SPAN class=kwrd>&gt;</SPAN></PRE><PRE><SPAN class=kwrd>&lt;</SPAN><SPAN class=html>head</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>    <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>title</SPAN><SPAN class=kwrd>&gt;</SPAN>无标题页<SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>title</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>   </PRE><PRE class=alt>    </PRE><PRE>   <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>script</SPAN> <SPAN class=attr>language</SPAN>=<SPAN class=attr>javascript</SPAN> <SPAN class=attr>type</SPAN> <SPAN class=kwrd>="text/javascript"</SPAN> <SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>   <SPAN class=kwrd>function</SPAN> Save(obj) </PRE><PRE>&nbsp;</PRE><PRE class=alt>{ </PRE><PRE>&nbsp;</PRE><PRE class=alt>&nbsp;</PRE><PRE><SPAN class=kwrd>var</SPAN> row = <SPAN class=kwrd>null</SPAN>; </PRE><PRE class=alt>&nbsp;</PRE><PRE>&nbsp;</PRE><PRE class=alt><SPAN class=kwrd>if</SPAN>(IsFireFox()) </PRE><PRE>&nbsp;</PRE><PRE class=alt>{</PRE><PRE>&nbsp;</PRE><PRE class=alt>row = obj.parentNode.parentNode;</PRE><PRE>&nbsp;</PRE><PRE class=alt>}</PRE><PRE>&nbsp;</PRE><PRE class=alt>&nbsp;</PRE><PRE><SPAN class=kwrd>else</SPAN></PRE><PRE class=alt>&nbsp;</PRE><PRE>{</PRE><PRE class=alt>&nbsp;</PRE><PRE>row = obj.parentElement.parentElement;</PRE><PRE class=alt>&nbsp;</PRE><PRE>}</PRE><PRE class=alt>&nbsp;</PRE><PRE>&nbsp;</PRE><PRE class=alt><SPAN class=kwrd>var</SPAN> message = row.getElementsByTagName(<SPAN class=str>"DIV"</SPAN>); </PRE><PRE>&nbsp;</PRE><PRE class=alt>row.style.backgroundColor = <SPAN class=str>'Yellow'</SPAN>; </PRE><PRE>&nbsp;</PRE><PRE class=alt>message[0].innerHTML = <SPAN class=str>'保存中!'</SPAN>;</PRE><PRE>&nbsp;</PRE><PRE class=alt>&nbsp;</PRE><PRE>window.setTimeout(<SPAN class=kwrd>function</SPAN>()<BR> { row.style.backgroundColor = <SPAN class=str>'White'</SPAN>; message[0].innerHTML = <SPAN class=str>'保存完毕!'</SPAN>; },2000); </PRE><PRE class=alt>&nbsp;</PRE><PRE>&nbsp;</PRE><PRE class=alt>}</PRE><PRE>&nbsp;</PRE><PRE class=alt><SPAN class=kwrd>function</SPAN> IsFireFox() </PRE><PRE>&nbsp;</PRE><PRE class=alt>{</PRE><PRE>&nbsp;</PRE><PRE class=alt><SPAN class=kwrd>return</SPAN> navigator.appName == <SPAN class=str>'Netscape'</SPAN>;</PRE><PRE>&nbsp;</PRE><PRE class=alt>}</PRE><PRE>&nbsp;</PRE><PRE class=alt>&nbsp;</PRE><PRE>   </PRE><PRE class=alt>   <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>script</SPAN><SPAN class=kwrd>&gt;</SPAN> </PRE><PRE><SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>head</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt><SPAN class=kwrd>&lt;</SPAN><SPAN class=html>body</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>    <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>form</SPAN> <SPAN class=attr>id</SPAN><SPAN class=kwrd>="form1"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>    <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>div</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>        <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:Button</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="Button1"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN> <SPAN class=attr>OnClick</SPAN><SPAN class=kwrd>="Button1_Click"</SPAN> <SPAN class=attr>Style</SPAN><SPAN class=kwrd>="left: 290px;</PRE><PRE class=alt>            position: relative; top: 269px"</SPAN> <SPAN class=attr>Text</SPAN><SPAN class=kwrd>="点我改变"</SPAN> <SPAN class=kwrd>/&gt;</SPAN><SPAN class=attr>&amp;nbsp;</SPAN></PRE><PRE>        <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:TextBox</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="TextBox1"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN> <SPAN class=attr>Style</SPAN><SPAN class=kwrd>="left: 162px; position: relative;</PRE><PRE class=alt>            top: 61px"</SPAN><SPAN class=kwrd>&gt;&lt;/</SPAN><SPAN class=html>asp:TextBox</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>        <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:TextBox</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="TextBox2"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN> <SPAN class=attr>Style</SPAN><SPAN class=kwrd>="left: 3px; position: relative; top: 97px"</SPAN><SPAN class=kwrd>&gt;<BR>&lt;/</SPAN><SPAN class=html>asp:TextBox</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>        <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:GridView</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="GridView1"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN> <SPAN class=attr>AutoGenerateColumns</SPAN><SPAN class=kwrd>="False"</SPAN> <SPAN class=attr>DataKeyNames</SPAN><SPAN class=kwrd>="ProductID"</SPAN></PRE><PRE>            <SPAN class=attr>DataSourceID</SPAN><SPAN class=kwrd>="SqlDataSource1"</SPAN> <SPAN class=attr>Style</SPAN><SPAN class=kwrd>="left: 433px; position: relative; top: 132px"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>            <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>Columns</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>                <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:TemplateField</SPAN> <SPAN class=attr>HeaderText</SPAN><SPAN class=kwrd>="ProductName"</SPAN> <SPAN class=attr>SortExpression</SPAN><SPAN class=kwrd>="ProductName"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>                    <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>ItemTemplate</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>                        <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:Label</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="Label1"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN> <SPAN class=attr>Text</SPAN><SPAN class=kwrd>='&lt;%# Bind("ProductName") %&gt;'</SPAN><SPAN class=kwrd>&gt;<BR>&lt;/</SPAN><SPAN class=html>asp:Label</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>                 </PRE><PRE>                           <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:Label</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="Label3"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN> <SPAN class=attr>Text</SPAN><SPAN class=kwrd>='&lt;%# Bind("CategoryName") %&gt;'</SPAN><SPAN class=kwrd>&gt;<BR>&lt;/</SPAN><SPAN class=html>asp:Label</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>                                               <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:Label</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="Label2"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"<BR></SPAN> <SPAN class=attr>Text</SPAN><SPAN class=kwrd>='&lt;%# Bind("QuantityPerUnit") %&gt;'</SPAN><SPAN class=kwrd>&gt;<BR>&lt;/</SPAN><SPAN class=html>asp:Label</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>&nbsp;</PRE><PRE class=alt>       <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>input</SPAN> <SPAN class=attr>type</SPAN><SPAN class=kwrd>="button"</SPAN> <SPAN class=attr>value</SPAN><SPAN class=kwrd>="保存"</SPAN> <SPAN class=attr>onclick</SPAN><SPAN class=kwrd>="Save(this)"</SPAN> <SPAN class=kwrd>/&gt;</SPAN></PRE><PRE>&nbsp;</PRE><PRE class=alt>&nbsp;</PRE><PRE>&nbsp;</PRE><PRE class=alt>                    <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>ItemTemplate</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>                <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>asp:TemplateField</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>               <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:TemplateField</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>&nbsp;</PRE><PRE class=alt><SPAN class=kwrd>&lt;</SPAN><SPAN class=html>ItemTemplate</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>&nbsp;</PRE><PRE class=alt>&nbsp;</PRE><PRE><SPAN class=kwrd>&lt;</SPAN><SPAN class=html>div</SPAN> <SPAN class=attr>id</SPAN><SPAN class=kwrd>="message"</SPAN> <SPAN class=kwrd>&gt;&lt;/</SPAN><SPAN class=html>div</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>&nbsp;</PRE><PRE><SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>ItemTemplate</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>&nbsp;</PRE><PRE><SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>asp:TemplateField</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>&nbsp;</PRE><PRE>                </PRE><PRE class=alt>&nbsp;</PRE><PRE>            <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>Columns</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>        <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>asp:GridView</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>        <SPAN class=kwrd>&lt;</SPAN><SPAN class=html>asp:SqlDataSource</SPAN> <SPAN class=attr>ID</SPAN><SPAN class=kwrd>="SqlDataSource1"</SPAN> <SPAN class=attr>runat</SPAN><SPAN class=kwrd>="server"</SPAN> <BR><SPAN class=attr>ConnectionString</SPAN><SPAN class=kwrd>="&lt;%$ ConnectionStrings:NorthwindConnectionString %&gt;"</SPAN></PRE><PRE class=alt>            <SPAN class=attr>SelectCommand</SPAN><SPAN class=kwrd>="SELECT [ProductID], [ProductName], <BR>[QuantityPerUnit], [CategoryName], [Discontinued] FROM [Alphabetical list of products]"</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>        <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>asp:SqlDataSource</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt>    <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>div</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE>    <SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>form</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE class=alt><SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>body</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE><PRE><SPAN class=kwrd>&lt;/</SPAN><SPAN class=html>html</SPAN><SPAN class=kwrd>&gt;</SPAN></PRE></DIV>
<STYLE type=text/css>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</STYLE><img src ="http://www.cnblogs.com/zbqy/aggbug/770233.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42953/" target="_blank">[新闻]13个大文件邮件传送服务</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>C#文件操作 </title><link>http://www.cnblogs.com/zbqy/archive/2007/05/30/765569.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Wed, 30 May 2007 12:58:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/05/30/765569.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/765569.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/05/30/765569.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/765569.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/765569.html</trackback:ping><description><![CDATA[<FONT color=#565656><FONT face=Tahoma><STRONG>C#写入/读出文本文件</STRONG> <BR></FONT></FONT>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT face=Tahoma color=#565656><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></FONT><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;Page_Load(Object&nbsp;src,EventArgs&nbsp;e)&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_48_248_Open_Image onclick="this.style.display='none'; Codehighlighter1_48_248_Open_Text.style.display='none'; Codehighlighter1_48_248_Closed_Image.style.display='inline'; Codehighlighter1_48_248_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_48_248_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_48_248_Closed_Text.style.display='none'; Codehighlighter1_48_248_Open_Image.style.display='inline'; Codehighlighter1_48_248_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_48_248_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_48_248_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;StreamWriter&nbsp;rw&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;File.CreateText(Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myText.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;rw.WriteLine(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">追逐理想</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;rw.WriteLine(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">kzlll</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;rw.WriteLine(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.NET笔记</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;rw.Flush();&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;rw.Close();&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN></DIV><BR><BR><FONT color=#565656><STRONG>打开文本文件</STRONG> <BR></FONT>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT color=#565656><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">StreamReader&nbsp;sr&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;File.OpenText(Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myText.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><FONT color=#565656><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>StringBuilder&nbsp;output&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN></FONT><FONT color=#565656><SPAN style="COLOR: #000000">&nbsp;StringBuilder();&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">string</SPAN></FONT><FONT color=#565656><SPAN style="COLOR: #000000">&nbsp;rl;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">((rl</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">sr.ReadLine())</SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #0000ff">null</SPAN></FONT><FONT color=#565656><SPAN style="COLOR: #000000">)&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_166_198_Open_Image onclick="this.style.display='none'; Codehighlighter1_166_198_Open_Text.style.display='none'; Codehighlighter1_166_198_Closed_Image.style.display='inline'; Codehighlighter1_166_198_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_166_198_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_166_198_Closed_Text.style.display='none'; Codehighlighter1_166_198_Open_Image.style.display='inline'; Codehighlighter1_166_198_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_166_198_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_166_198_Open_Text><FONT color=#565656><SPAN style="COLOR: #000000">{&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>output.Append(rl</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;br&gt;</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><SPAN style="COLOR: #000000"><FONT color=#565656>);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</FONT></SPAN></SPAN><FONT color=#565656><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>lblFile.Text&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN></FONT><SPAN style="COLOR: #000000"><FONT color=#565656>&nbsp;output.ToString();&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>sr.Close();&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></FONT></SPAN></DIV><BR><FONT color=#565656><STRONG>C#追加文件</STRONG> <BR></FONT>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT color=#565656><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;StreamWriter&nbsp;sw&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;File.AppendText(Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myText.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><FONT color=#565656><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">追逐理想</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><FONT color=#565656><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">kzlll</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><FONT color=#565656><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.NET笔记</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><SPAN style="COLOR: #000000"><FONT color=#565656>);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;sw.Flush();&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;sw.Close();&nbsp;&nbsp;</FONT></SPAN></DIV><FONT color=#565656><STRONG><BR>C#拷贝文件</STRONG>&nbsp;<BR><STRONG><FONT face=Tahoma></FONT></STRONG>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><STRONG><FONT face=Tahoma><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></FONT></STRONG><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;OrignFile,NewFile;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OrignFile&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myText.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NewFile&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myTextCopy.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File.Copy(OrignFile,NewFile,</SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;</SPAN></DIV><BR><STRONG>C#删除文件</STRONG>&nbsp;<BR><STRONG><FONT face=Tahoma></FONT></STRONG>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><STRONG><FONT face=Tahoma><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></FONT></STRONG><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;delFile&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myTextCopy.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File.Delete(delFile);&nbsp;&nbsp;</SPAN></DIV><BR><STRONG>C#移动文件</STRONG> </FONT>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;OrignFile,NewFile;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OrignFile&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myText.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NewFile&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;Server.MapPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\\myTextCopy.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File.Move(OrignFile,NewFile);&nbsp;&nbsp;</SPAN></DIV><BR><FONT color=#565656><STRONG>C#创建目录</STRONG>&nbsp; </FONT><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;创建目录c:\sixAge&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DirectoryInfo&nbsp;d</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">Directory.CreateDirectory(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">c:\\sixAge</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;d1指向c:\sixAge\sixAge1&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DirectoryInfo&nbsp;d1</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">d.CreateSubdirectory(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">sixAge1</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;d2指向c:\sixAge\sixAge1\sixAge1_1&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DirectoryInfo&nbsp;d2</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">d1.CreateSubdirectory(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">sixAge1_1</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;将当前目录设为c:\sixAge&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Directory.SetCurrentDirectory(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">c:\\sixAge</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;创建目录c:\sixAge\sixAge2&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Directory.CreateDirectory(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">sixAge2</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;创建目录c:\sixAge\sixAge2\sixAge2_1&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Directory.CreateDirectory(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">sixAge2\\sixAge2_1</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;</SPAN></DIV><BR><FONT color=#565656><STRONG>递归删除文件夹及文件</STRONG> <BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&lt;%</SPAN><SPAN style="COLOR: #000000">@&nbsp;Page&nbsp;Language</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">C#</SPAN><SPAN style="COLOR: #000000">%&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&lt;%</SPAN><SPAN style="COLOR: #000000">@&nbsp;Import&nbsp;</SPAN><SPAN style="COLOR: #0000ff">namespace</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">System.IO</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">%&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">Script&nbsp;runat</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">server</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;DeleteFolder(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;dir)&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_125_642_Open_Image onclick="this.style.display='none'; Codehighlighter1_125_642_Open_Text.style.display='none'; Codehighlighter1_125_642_Closed_Image.style.display='inline'; Codehighlighter1_125_642_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_125_642_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_125_642_Closed_Text.style.display='none'; Codehighlighter1_125_642_Open_Image.style.display='inline'; Codehighlighter1_125_642_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_125_642_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_125_642_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(Directory.Exists(dir))&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">如果存在这个文件夹删除之&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_187_568_Open_Image onclick="this.style.display='none'; Codehighlighter1_187_568_Open_Text.style.display='none'; Codehighlighter1_187_568_Closed_Image.style.display='inline'; Codehighlighter1_187_568_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_187_568_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_187_568_Closed_Text.style.display='none'; Codehighlighter1_187_568_Open_Image.style.display='inline'; Codehighlighter1_187_568_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_187_568_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_187_568_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">foreach</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;d&nbsp;</SPAN><SPAN style="COLOR: #0000ff">in</SPAN><SPAN style="COLOR: #000000">&nbsp;Directory.GetFileSystemEntries(dir))&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_275_459_Open_Image onclick="this.style.display='none'; Codehighlighter1_275_459_Open_Text.style.display='none'; Codehighlighter1_275_459_Closed_Image.style.display='inline'; Codehighlighter1_275_459_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_275_459_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_275_459_Closed_Text.style.display='none'; Codehighlighter1_275_459_Open_Image.style.display='inline'; Codehighlighter1_275_459_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_275_459_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_275_459_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(File.Exists(d))&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File.Delete(d);&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">直接删除其中的文件&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DeleteFolder(d);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">递归删除子文件夹&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Directory.Delete(dir);&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">删除已空文件夹&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(dir</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;文件夹删除成功</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(dir</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;该文件夹不存在</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">如果文件夹不存在则提示&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">protected</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;Page_Load&nbsp;(Object&nbsp;sender&nbsp;,EventArgs&nbsp;e)&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_702_783_Open_Image onclick="this.style.display='none'; Codehighlighter1_702_783_Open_Text.style.display='none'; Codehighlighter1_702_783_Closed_Image.style.display='inline'; Codehighlighter1_702_783_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_702_783_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_702_783_Closed_Text.style.display='none'; Codehighlighter1_702_783_Open_Image.style.display='inline'; Codehighlighter1_702_783_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_702_783_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_702_783_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;Dir</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">D:\\gbook\\11</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>DeleteFolder(Dir);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">调用函数删除文件夹&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&lt;/</SPAN><SPAN style="COLOR: #000000">Script</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;</SPAN></DIV></FONT><img src ="http://www.cnblogs.com/zbqy/aggbug/765569.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42952/" target="_blank">[新闻]微型博客Twitter取消IM服务 称其ROI差</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>获取GridView中指定的控件</title><link>http://www.cnblogs.com/zbqy/archive/2007/05/30/765563.html</link><dc:creator>桂圆</dc:creator><author>桂圆</author><pubDate>Wed, 30 May 2007 12:53:00 GMT</pubDate><guid>http://www.cnblogs.com/zbqy/archive/2007/05/30/765563.html</guid><wfw:comment>http://www.cnblogs.com/zbqy/comments/765563.html</wfw:comment><comments>http://www.cnblogs.com/zbqy/archive/2007/05/30/765563.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/zbqy/comments/commentRss/765563.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/zbqy/services/trackbacks/765563.html</trackback:ping><description><![CDATA[<p></p> <p>Image1为GrideView1中的一个复合控件 <p>获取它 然后删除Link 触发 <div class="csharpcode"><pre class="alt">Image im = (Image)(GridView1.Rows[e.RowIndex].FindControl(<span class="str">"Image1"</span>));</pre><pre><span class="kwrd">string</span> ok =<span class="str">"\\"+ im.ImageUrl;</pre><pre class="alt">string Del = Server.MapPath("</span>.") + ok;</pre><pre>File.Delete(Del);</pre></div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style><img src ="http://www.cnblogs.com/zbqy/aggbug/765563.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42952/" target="_blank">[新闻]微型博客Twitter取消IM服务 称其ROI差</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.co