<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>itzhiren的专栏</title><link>http://blog.csdn.net/itzhiren/</link><description>学习经验交流</description><dc:language>zh-CN</dc:language><lastUpdateTime>Thu, 24 Apr 2008 10:27:24 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>itzhiren</dc:creator><title>服务器端控件使用客户端脚本</title><link>http://blog.csdn.net/itzhiren/archive/2008/04/24/2321749.aspx</link><pubDate>Thu, 24 Apr 2008 10:27:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2008/04/24/2321749.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/2321749.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2008/04/24/2321749.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/2321749.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2321749</trackback:ping><description>&lt;p&gt;我们做项目经常遇到一个服务器控件，既有服务器端的事件，又要结合客户端脚本，这里介绍几个好用的结合方式。&lt;/p&gt;&lt;p&gt;比如，我们页面上有一个按钮Button1，我们要实现当用户点击这个按钮的时候，先跳出确认的对话框，“您确定要按吗？”（或者其他的提示信息，这里只是举例），如果用户点击了“取消”，则取消这个动作，如果点击了“确定”，则执行确定的动作，这里我们要输出“您按了按钮Button1”。&lt;/p&gt;&lt;p&gt;一般的客户端脚本要结合服务器控件可以直接在服务器控件的标签内写即可。比如鼠标移动到按钮上，按钮的背景颜色改变成红色，只要这样写： &lt;/p&gt;&lt;p&gt;&amp;lt;asp:Button id="Button1" Text="Button" onmouseover="this.style.backgroundcolor='red'" runat="server" /&amp;gt; &lt;/p&gt;&lt;p&gt;但是如果要做到上面说的那个按钮的功能，所遇到的最大问题是OnClick事件已经被服务器端用掉了，如： &lt;/p&gt;&lt;p&gt;&amp;lt;asp:Button id="Button1" Text="Button" OnCli&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/2321749.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>photoshop中，怎样知道哪个图像在哪个层里面，这就告诉你</title><link>http://blog.csdn.net/itzhiren/archive/2008/04/17/2300636.aspx</link><pubDate>Thu, 17 Apr 2008 13:48:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2008/04/17/2300636.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/2300636.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2008/04/17/2300636.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/2300636.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2300636</trackback:ping><description>记下来，可以给自己长点记性。美工不在，可累死我了&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/2300636.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>GridView控件使用了visible=false之后，就取不到相应列的值了</title><link>http://blog.csdn.net/itzhiren/archive/2008/02/15/2097124.aspx</link><pubDate>Fri, 15 Feb 2008 14:46:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2008/02/15/2097124.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/2097124.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2008/02/15/2097124.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/2097124.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2097124</trackback:ping><description>解决问题的方法很简单，只要在GridView的RowDataBound事件中设置某几列的Visible为false就可以了&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/2097124.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>生成html的几种方案 </title><link>http://blog.csdn.net/itzhiren/archive/2008/01/22/2058517.aspx</link><pubDate>Tue, 22 Jan 2008 11:36:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2008/01/22/2058517.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/2058517.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2008/01/22/2058517.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/2058517.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2058517</trackback:ping><description>asp.net,生成html&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/2058517.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>利用ASP实现事务处理的方法－转</title><link>http://blog.csdn.net/itzhiren/archive/2007/12/26/1967998.aspx</link><pubDate>Wed, 26 Dec 2007 13:57:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/12/26/1967998.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1967998.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/12/26/1967998.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1967998.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1967998</trackback:ping><description>    在开发Web应用时，无一例外地需要访问数据库，以完成对数据的查询、插入、更新、删除等操作。受应用逻辑的影响，有时需要将多条数据库操作指令组成一个工作单元（事务）。在数据库中，所谓事务是指一组逻辑操作单元，它使数据从一种状态变换到另一种状态。 为确保数据库中数据的一致性，应当用离散的成组的逻辑单元操作数据：当它全部完成时，数据的一致性可以保持；而当单元中的一部分操作失败时，整个事务会被全部忽略，所有从起始点以后的操作全部退回到开始状态。 

    实际上，在默认方式下对数据库的每一次操作都是隐含的事务处理。本文以一个典型的用户注册程序为例，介绍三种利用ASP实现事务处理的方法：基于ASP数据库组件的解决方法、基于数据库内部的事务处理机制的解决方法和基于MTS组件的解决方法。 
 
    程序功能 
    在SQL Server数据库中建立两个表：USER表和USERDOC表。其中USER表中存放的是注册用户的用户名和密码，USERDOC表中存放的是该注册用户的个人资料，并且以用户名为索引。下面是表USER和USERDOC的定义： 
Create Table US&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1967998.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>ajax应用 系统错误:-1072896748</title><link>http://blog.csdn.net/itzhiren/archive/2007/12/26/1967908.aspx</link><pubDate>Wed, 26 Dec 2007 13:07:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/12/26/1967908.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1967908.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/12/26/1967908.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1967908.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1967908</trackback:ping><description>AJAX默认的是UTF-8编码，我的是GB2312，导致该错误
保持两边的字符集一致，最好使用UTF-8编码，因为XMLHTTPRequest对象默认用UTF-8传输
&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1967908.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>Visual Studio .NET 无法创建或打开应用程序。问题很可能是因为本地Web服务器上没有安装所需的组件。请运行 Visual Studio .NET 安装程序并添加Web开发组件。</title><link>http://blog.csdn.net/itzhiren/archive/2007/10/22/1837017.aspx</link><pubDate>Mon, 22 Oct 2007 13:54:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/10/22/1837017.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1837017.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/10/22/1837017.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1837017.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1837017</trackback:ping><description>Visual Studio .NET 无法创建或打开应用程序。问题很可能是因为本地Web服务器上没有安装所需的组件。请运行 Visual Studio .NET 安装程序并添加Web开发组件。－－－－－终于找到解决方法了！原来是文件中使用的.net版本号和机器中安装的版本号不一致引起的&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1837017.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>ListBox控件实现选项的上移、下移、左移、右移</title><link>http://blog.csdn.net/itzhiren/archive/2007/10/19/1833197.aspx</link><pubDate>Fri, 19 Oct 2007 17:28:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/10/19/1833197.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1833197.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/10/19/1833197.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1833197.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1833197</trackback:ping><description>ListBox控件实现选项的上移、下移、左移、右移&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1833197.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>ASP.NET中动态加载样式表</title><link>http://blog.csdn.net/itzhiren/archive/2007/10/19/1832725.aspx</link><pubDate>Fri, 19 Oct 2007 14:12:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/10/19/1832725.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1832725.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/10/19/1832725.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1832725.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1832725</trackback:ping><description>这里介绍几种常用的方法，都是在做项目的过程中累积的方法&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1832725.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>asp.net使用button做重定向</title><link>http://blog.csdn.net/itzhiren/archive/2007/10/15/1825224.aspx</link><pubDate>Mon, 15 Oct 2007 10:36:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/10/15/1825224.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1825224.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/10/15/1825224.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1825224.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1825224</trackback:ping><description>
象这样一个Button，我们经常需要做的是点击这个按钮，就跳转到“新建日志”页面 ，那么在cs文件中加入：
NewDiary.Attributes.Add("onclick", "window.location='new/index.aspx';");&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1825224.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>GridView和CheckBox结合</title><link>http://blog.csdn.net/itzhiren/archive/2007/10/10/1818695.aspx</link><pubDate>Wed, 10 Oct 2007 16:21:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/10/10/1818695.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1818695.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/10/10/1818695.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1818695.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1818695</trackback:ping><description>public partial class Default5 : System.Web.UI.Page
{
    SqlConnection sqlcon;
    string strCon = "Data Source=(local);Database=xx;Uid=sa;Pwd=";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bind();
        }
    }
    protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
    {
        for (int i = 0; i &lt;= GridView1.Rows.Count - 1; i++)
        {
            CheckBox cbox = (CheckBox)GridView1.Rows[i].F&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1818695.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>鼠标移到GridView某一行时改变该行的背景色方法一</title><link>http://blog.csdn.net/itzhiren/archive/2007/10/10/1818687.aspx</link><pubDate>Wed, 10 Oct 2007 16:19:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/10/10/1818687.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1818687.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/10/10/1818687.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1818687.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1818687</trackback:ping><description>双击GridView的OnRowDataBound事件；
在后台的GridView1_RowDataBound()方法添加代码，最后代码如下所示：
&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1818687.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>Access里的Case效果 “IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败！”的解决方法！</title><link>http://blog.csdn.net/itzhiren/archive/2007/09/30/1807600.aspx</link><pubDate>Sun, 30 Sep 2007 10:27:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/09/30/1807600.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1807600.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/09/30/1807600.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1807600.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1807600</trackback:ping><description>将"case"语句改用"iif"函数，问题解决了&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1807600.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>gridview中设置绑定的日期时间类型字段的显示格式</title><link>http://blog.csdn.net/itzhiren/archive/2007/09/28/1805261.aspx</link><pubDate>Fri, 28 Sep 2007 16:31:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/09/28/1805261.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1805261.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/09/28/1805261.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1805261.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1805261</trackback:ping><description>如果只想要日期，则设置它的DataFormatString为{0:d}；如果只想要时间，则设置它的DataFormatString为{0:T}&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1805261.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>itzhiren</dc:creator><title>在ASP.net中怎样判断是正确的日期格式</title><link>http://blog.csdn.net/itzhiren/archive/2007/09/21/1794298.aspx</link><pubDate>Fri, 21 Sep 2007 11:04:00 GMT</pubDate><guid>http://blog.csdn.net/itzhiren/archive/2007/09/21/1794298.aspx</guid><wfw:comment>http://blog.csdn.net/itzhiren/comments/1794298.aspx</wfw:comment><comments>http://blog.csdn.net/itzhiren/archive/2007/09/21/1794298.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/itzhiren/comments/commentRss/1794298.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1794298</trackback:ping><description>最好用正则表达式&lt;img src ="http://blog.csdn.net/itzhiren/aggbug/1794298.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>