<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_我不是程序员，只是运气不好</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/30610/rss</id><updated>2010-12-06T07:04:12Z</updated><author><name>Dreaming</name><uri>http://www.cnblogs.com/Dreaming/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Dreaming/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/30610/rss"/><entry><id>http://www.cnblogs.com/Dreaming/archive/2010/12/06/1897751.html</id><title type="text">mvc生成table</title><summary type="text">&amp;lt;table&amp;gt;&amp;lt;% int count = Model.Count; int rowCount = count % 4 == 0 ? count / 4 : count / 4 + 1; for (int i = 0; i &amp;lt; rowCount; i++) {%&amp;gt; &amp;lt;tr&amp;gt; &amp;lt;%for (int j = 0; j &amp;lt; 4; j++) { %&amp;g...</summary><published>2010-12-06T07:04:00Z</published><updated>2010-12-06T07:04:00Z</updated><author><name>Dreaming</name><uri>http://www.cnblogs.com/Dreaming/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Dreaming/archive/2010/12/06/1897751.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Dreaming/archive/2010/12/06/1897751.html"/><content type="html">&lt;p&gt;&lt;/p&gt; &lt;div&gt;&lt;pre&gt;&lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;table&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
&#xD;
&lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;%&#xD;
    int count = Model.Count;&#xD;
    int rowCount = count % 4 == 0 ? count / 4 : count / 4 + 1;&#xD;
&#xD;
    for (int i = 0; i &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt; rowCount; i++)&#xD;
    {&#xD;
%&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
        &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;tr&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;%for (int j = 0; j &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt; 4; j++)&#xD;
              { %&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
              &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;td&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
                &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;%&#xD;
                    int index = i * 4 + j;&#xD;
                    if (index &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt; count)&#xD;
                    {&#xD;
                        %&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
                        &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;%=Model[i * 4 + j]%&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
                        &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;%&#xD;
                    }&#xD;
                %&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
              &lt;span style="color: #0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000"&gt;td&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;%} %&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
        &lt;span style="color: #0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000"&gt;tr&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
        &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;%&#xD;
        } %&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
&lt;span style="color: #0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000"&gt;table&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&#xD;
&lt;/pre&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/Dreaming/aggbug/1897751.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/Dreaming/archive/2010/12/06/1897751.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/Dreaming/archive/2009/08/27/1554752.html</id><title type="text">项目经理、美工、业务员</title><summary type="text">首先说明一下，这随笔并非招聘广告，童鞋们请放心阅读。  事情发生于中午，本人一如既往地研究动作片的时候，被业务员打断了我的思绪，原因很简单：有一企业网站，美工童鞋设计出页面，业务员觉得难看乃至于不肯给客户过目，并提供一网站要求仿效。这下问题出来了：1、美工觉得自己设计的东西好看，要求业务员给客户验收；2、业务员觉得设计不行不肯给客户看。这下本人作出了一个英明的决定：继续研究动作片，毕竟研究动作片跟...</summary><published>2009-08-26T16:28:00Z</published><updated>2009-08-26T16:28:00Z</updated><author><name>Dreaming</name><uri>http://www.cnblogs.com/Dreaming/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Dreaming/archive/2009/08/27/1554752.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Dreaming/archive/2009/08/27/1554752.html"/></entry><entry><id>http://www.cnblogs.com/Dreaming/archive/2008/08/30/1280024.html</id><title type="text">调查一下，EF的Bug？</title><summary type="text">数据库中有3表Person、Student、Worker。代码如下：[代码]现在在VS里建个ADO.NET Entity Data Model，就叫默认的Model1.edmx好了，操作如下：1、建立Model1.edmx时，在数据库中只选择Person表，完成Model1.edmx2、编译，通过3、现在从数据库中更新，把Student和Worker都添加进来，这是会看到设计器自动把实体和关系都一...</summary><published>2008-08-30T04:04:00Z</published><updated>2008-08-30T04:04:00Z</updated><author><name>Dreaming</name><uri>http://www.cnblogs.com/Dreaming/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Dreaming/archive/2008/08/30/1280024.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Dreaming/archive/2008/08/30/1280024.html"/></entry><entry><id>http://www.cnblogs.com/Dreaming/archive/2008/08/01/1257902.html</id><title type="text">JQ仿ebay右侧flash商品展示</title><summary type="text">开blog很久，今天第一次发表，因为本人啊实在不喜欢写文章，唉~以前语文老是不及格。一直以来在思考，不知道学flash好还是silverlight好，结果在途中冒出了个JQ，凑用一下吧，反正我觉得未来flash或silverlight才是王道，未来&amp;#8230;&amp;#8230;不知道是什么时候&amp;#8230;&amp;#8230;仿www.ebay.com简单做了个展示框，ebay用来展示商品，而我是用来展示...</summary><published>2008-08-01T02:00:00Z</published><updated>2008-08-01T02:00:00Z</updated><author><name>Dreaming</name><uri>http://www.cnblogs.com/Dreaming/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Dreaming/archive/2008/08/01/1257902.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Dreaming/archive/2008/08/01/1257902.html"/></entry></feed>
