﻿<?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>博客园-GoWIn-最新评论</title><link>http://www.cnblogs.com/jiekeng/CommentsRSS.aspx</link><description>GoWIn</description><language>zh-cn</language><pubDate>Sat, 02 Dec 2006 13:46:15 GMT</pubDate><lastBuildDate>Sat, 02 Dec 2006 13:46:15 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:简陋的会计凭证金额输入控件(加强)</title><link>http://www.cnblogs.com/jiekeng/archive/2010/06/24/541887.html#1855897</link><dc:creator>二哥</dc:creator><author>二哥</author><pubDate>Thu, 24 Jun 2010 09:08:32 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2010/06/24/541887.html#1855897</guid><description><![CDATA[[code=csharp]
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;

using System.Text;

namespace Controls
{
	/// &lt;summary&gt;
	/// MyTextBox2 的摘要说明。
	/// &lt;/summary&gt;
	[ToolboxData(&quot;&lt;{0}:MyTextBox2 runat=server&gt;&lt;/{0}:MyTextBox2&gt;&quot;)]
	public class MyTextBox2 : System.Web.UI.WebControls.WebControl,INamingContainer
	{
		private Label lbl;
		private TextBox txt;

		protected override void CreateChildControls()
		{
			base.CreateChildControls ();

			lbl = new Label();
			lbl.ID = &quot;lbl&quot;;
			lbl.Style.Add(&quot;display&quot;, &quot;none&quot;);
			Controls.Add(lbl);

			txt = new TextBox();
			txt.ID = &quot;txt&quot;;
			txt.AutoPostBack = true;
			txt.TextChanged += new EventHandler(txt_TextChanged);
			Controls.Add(txt);

			lbl.Attributes.Add(&quot;onclick&quot;, &quot;showbox(this,'&quot; + txt.ClientID + &quot;');&quot;);

			ChildControlsCreated = true;
		}

		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender (e);
			if(txt.Text.Trim().Length == 0)
				return;
			double t = 0;
			try
			{
				t = double.Parse(txt.Text.Trim());
			}
			catch(Exception ex)
			{
				ex.ToString();
			}
			lbl.Text = t.ToString(&quot;c&quot;);
		}


		protected override void RenderChildren(HtmlTextWriter writer)
		{
			StringBuilder sb = new StringBuilder();

			sb.Append(&quot;&lt;script language='javascript'&gt;&quot;);
			sb.Append(&quot;function showbox(lbl,txtID){lbl.style.display='none';var txt=document.getElementById(txtID);txt.style.display='block';}&quot;);
			sb.Append(&quot;&lt;/script&gt;&quot;);

			this.Page.RegisterStartupScript(&quot;MyTextBox2JS&quot;, sb.ToString());

			lbl.RenderControl(writer);
			txt.RenderControl(writer);
		}

		protected override HtmlTextWriterTag TagKey
		{
			get
			{
				return HtmlTextWriterTag.Div;
			}
		}

		private void txt_TextChanged(object sender, EventArgs e)
		{
			if(txt.Text.Trim().Length == 0)
				return;
			double t = 0;
			try
			{
				t = double.Parse(txt.Text.Trim());
			}
			catch(Exception ex)
			{
				ex.ToString();
			}
			lbl.Style.Add(&quot;display&quot;, &quot;block&quot;);
			lbl.Text = t.ToString(&quot;c&quot;);
			txt.Style.Add(&quot;display&quot;, &quot;none&quot;);
		}
	}
}
[/code]<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">二哥</a> 2010-06-24 17:08 <a href="http://www.cnblogs.com/jiekeng/archive/2010/06/24/541887.html#1855897#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:C#命名规则和风格(收集)</title><link>http://www.cnblogs.com/jiekeng/archive/2009/10/13/561562.html#1670663</link><dc:creator>Jason.z</dc:creator><author>Jason.z</author><pubDate>Tue, 13 Oct 2009 06:09:20 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2009/10/13/561562.html#1670663</guid><description><![CDATA[如此好的总结！顶一个！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">Jason.z</a> 2009-10-13 14:09 <a href="http://www.cnblogs.com/jiekeng/archive/2009/10/13/561562.html#1670663#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 初识HTC</title><link>http://www.cnblogs.com/jiekeng/archive/2009/06/20/552275.html#1563805</link><dc:creator>xianglp</dc:creator><author>xianglp</author><pubDate>Sat, 20 Jun 2009 14:28:10 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2009/06/20/552275.html#1563805</guid><description><![CDATA[请问<br/>&lt;PUBLIC:PROPERTY NAME=&quot;grid&quot;/&gt;是如何指定的<br/><br/>Grid 是一个对象，我在写htc的时候，如何把对象加进去<br/><br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">xianglp</a> 2009-06-20 22:28 <a href="http://www.cnblogs.com/jiekeng/archive/2009/06/20/552275.html#1563805#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: asp.net 2.0 权限树的控制(多处转载)</title><link>http://www.cnblogs.com/jiekeng/archive/2009/06/08/565319.html#1551124</link><dc:creator>月漩涡</dc:creator><author>月漩涡</author><pubDate>Mon, 08 Jun 2009 01:38:18 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2009/06/08/565319.html#1551124</guid><description><![CDATA[--引用--------------------------------------------------<br/>jiekengxu: @Klesh Wong<br/>&lt;br&gt;<br/>&lt;br&gt;我整理下,提供源代码下载<br/>&lt;br&gt;<br/>--------------------------------------------------------<br/>楼主不厚道，没提供源代码。当然这依然出自楼主的意愿。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">月漩涡</a> 2009-06-08 09:38 <a href="http://www.cnblogs.com/jiekeng/archive/2009/06/08/565319.html#1551124#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Web Services Enhancements 3.0 Quick Start(四) </title><link>http://www.cnblogs.com/jiekeng/archive/2009/03/06/554545.html#1469822</link><dc:creator>zhuyong</dc:creator><author>zhuyong</author><pubDate>Fri, 06 Mar 2009 11:10:12 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2009/03/06/554545.html#1469822</guid><description><![CDATA[楼主，如果是在项目中客户的服务器是托管的，怎样安装客户端的证书？<br/>谢谢<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">zhuyong</a> 2009-03-06 19:10 <a href="http://www.cnblogs.com/jiekeng/archive/2009/03/06/554545.html#1469822#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Web Services Enhancements 3.0 Quick Start(四) </title><link>http://www.cnblogs.com/jiekeng/archive/2009/03/06/554545.html#1469821</link><dc:creator>zhuyong</dc:creator><author>zhuyong</author><pubDate>Fri, 06 Mar 2009 11:09:08 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2009/03/06/554545.html#1469821</guid><description><![CDATA[楼主，如果是在项目中客户的服务器是托管的，怎样安装客户端的证书？<br/>谢谢<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">zhuyong</a> 2009-03-06 19:09 <a href="http://www.cnblogs.com/jiekeng/archive/2009/03/06/554545.html#1469821#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: asp.net 2.0 权限树的控制(多处转载)</title><link>http://www.cnblogs.com/jiekeng/archive/2008/08/29/565319.html#1302425</link><dc:creator>bybandzk</dc:creator><author>bybandzk</author><pubDate>Fri, 29 Aug 2008 12:49:41 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2008/08/29/565319.html#1302425</guid><description><![CDATA[第二种方法运行有错误，你运行的时候没有发现么？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">bybandzk</a> 2008-08-29 20:49 <a href="http://www.cnblogs.com/jiekeng/archive/2008/08/29/565319.html#1302425#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Web Service Software Factory 入门</title><link>http://www.cnblogs.com/jiekeng/archive/2008/05/30/536291.html#1213975</link><dc:creator>高海东</dc:creator><author>高海东</author><pubDate>Fri, 30 May 2008 09:20:52 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2008/05/30/536291.html#1213975</guid><description><![CDATA[学习Web Service Software Factory <br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">高海东</a> 2008-05-30 17:20 <a href="http://www.cnblogs.com/jiekeng/archive/2008/05/30/536291.html#1213975#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: asp.net 2.0 权限树的控制(多处转载)</title><link>http://www.cnblogs.com/jiekeng/archive/2008/05/15/565319.html#1197733</link><dc:creator>hrmai</dc:creator><author>hrmai</author><pubDate>Thu, 15 May 2008 01:55:00 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2008/05/15/565319.html#1197733</guid><description><![CDATA[2、该节点可以访问，则他的子节点也都能访问；<br>这个有点问题...........<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">hrmai</a> 2008-05-15 09:55 <a href="http://www.cnblogs.com/jiekeng/archive/2008/05/15/565319.html#1197733#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Web Services Enhancements 3.0 Quick Start(四) </title><link>http://www.cnblogs.com/jiekeng/archive/2008/05/02/554545.html#1179173</link><dc:creator>acatadog</dc:creator><author>acatadog</author><pubDate>Thu, 01 May 2008 20:36:00 GMT</pubDate><guid>http://www.cnblogs.com/jiekeng/archive/2008/05/02/554545.html#1179173</guid><description><![CDATA[示例代码中没有证书生成的Setup.bat啊 <br>wangfb126@126.com<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/jiekeng/" target="_blank">acatadog</a> 2008-05-02 04:36 <a href="http://www.cnblogs.com/jiekeng/archive/2008/05/02/554545.html#1179173#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
