前台相关代码:
    
    
        ' Text="移除" />
        '/>
    
为GridView添加OnRowCommand事件,事件名称为gridViewCPImportPercent_RowCommand,后台代码:
protected void gridViewCPImportPercent_RowCommand(object sender, Gr...
                            
                            
                                分类:
其他好文   时间:
2014-09-16 19:02:50   
                                阅读次数:
175
                             
                         
                    
                        
                            
                            
                                在GridView控件第0列添加序号列:
    
    
为GridView添加OnRowDataBound事件,事件名称为gridViewCPImportPercent_RowDataBound,代码如下:
protected void gridViewCPImportPercent_RowDataBound(object sender, GridViewRowEventArgs ...
                            
                            
                                分类:
其他好文   时间:
2014-09-16 19:02:11   
                                阅读次数:
212
                             
                         
                    
                        
                            
                            
                                之前看了《Netty权威指南》一书,第14章用整个章节介绍了如何设计和实现一个简单的私有协议,内容很好,但是作者提供的代码片段有很多错误,根本不可能正确编译。
比如MarshallingEncoder这个类是Netty提供了JBoss Marshalling的一个适配类,它的encode方法是protected,不是public,并且其中用到的ChannelBufferByteOutput类是...
                            
                            
                                分类:
Web程序   时间:
2014-09-16 16:01:41   
                                阅读次数:
294
                             
                         
                    
                        
                            
                            
                                A method for allowing a protected mode kernel to service, in virtual 8086 mode, hardware interrupts which occur during execution of ring 0 protected m...
                            
                            
                                分类:
其他好文   时间:
2014-09-16 10:28:10   
                                阅读次数:
409
                             
                         
                    
                        
                            
                            
                                1、前台代码: View Code2、后台代码:protected void Calendar1_SelectionChanged(object sender, EventArgs e) { TextBox1.Text = Calendar1.Sel...
                            
                            
                                分类:
其他好文   时间:
2014-09-16 00:14:09   
                                阅读次数:
344
                             
                         
                    
                        
                            
                            
                                protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_CLOSE = 0xF060; if (m.Msg == WM_SYSCOMMAND...
                            
                            
                                分类:
其他好文   时间:
2014-09-14 23:35:17   
                                阅读次数:
264
                             
                         
                    
                        
                            
                            
                                @public : 在任何地方都能直接访问对象的成员变量@private : 只能在当前类的对象方法中直接访问(@implementation中默认是@private,即使声明为@public,若处在单独文件中也是@private)@protected : 可以在当前类及其子类的对象方法中直接访问....
                            
                            
                                分类:
其他好文   时间:
2014-09-14 23:21:17   
                                阅读次数:
255
                             
                         
                    
                        
                            
                            
                                public class MainActivity extends ActionBarActivity { private TextView mTextView; @Override protected void onCreate(Bundle savedInstanceStat...
                            
                            
                                分类:
移动开发   时间:
2014-09-14 16:40:57   
                                阅读次数:
211
                             
                         
                    
                        
                            
                            
                                class parent{ protected static int count=0; public parent() { count++; }}public class child extends paren...
                            
                            
                                分类:
其他好文   时间:
2014-09-14 16:33:57   
                                阅读次数:
145
                             
                         
                    
                        
                            
                            
                                一般来说,自定义控件都会去重写View的onMeasure方法,因为该方法指定该控件在屏幕上的大小。protected voidonMeasure(int widthMeasureSpec, int heightMeasureSpec)onMeasure传入的两个参数是由上一层控件传入的大小,有多种...
                            
                            
                                分类:
其他好文   时间:
2014-09-14 11:18:26   
                                阅读次数:
130