首页上一页 1  下一页尾页 5 条记录 1/1页
        c#项目实战实例自学手册有一些总是请教
                 	
                        发表在C#图书答疑
                        2009-02-24                                                
                    		
                                                                            	
                        
                        
                    
                    
                    	是否精华
                    	是
                    	否
                    
                    
                    
                            版块置顶:
                            是
                            否
                        
                    
                                           数据绑定控件同一个事件提供了两种方法如:PageIndexChanging和PageIndexChanged,
SelectChanging和SelectChanged 等等很多这类的,都们有什么区别
1.项目EnterpriseWeb下的 Default.aspx文件,打开后图片都没了,而同样引用的母版页,在User文件夹下的文件都是好的,这是怎么回事?
2.在生成验证码的页中: if (number % 2 == 0)
{
code =(char)(('0' + (char)(number % 10)));
}
else
{
code=(char)('A'+(char)(number%26));
}
这段代码是什么意思,请详细讲解一下
3.AdminManage.aspx的 RowDeleteing事件中GridView1.Rows[e.RowIndex].Cells[0].Text.ToLower() == "mr" cells[0]即数据库中该行下的第一个单元格,即“ID”应该是编号怎么会是"mr"呢?
4.dataoperate.UpPhoto(uploadPhoto, imgPhoto, Server.MapPath(@"..\images\Photo\")); @是什么意思?
5.Response.Redirect("LWordInfo.aspx?LWordID=" + gvLWord.Rows[Convert.ToInt32(e.CommandArgument)].Cells[0].Text + ""); //本处e.CommandArgument是什么意思
6.LWordManage.aspx BindInfo()方法
if (ds.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
gvLWord.Rows[i].Cells[1].Text = dataoperate.SubStr(ds.Tables[0].Rows[i][1].ToString(), 8);
gvLWord.Rows[i].Cells[2].Text = Convert.ToDateTime(ds.Tables[0].Rows[i][3].ToString()).ToLongDateString();
}
}
//再把他重新绑定有什么意义???
                
        	
        
        
    SelectChanging和SelectChanged 等等很多这类的,都们有什么区别
1.项目EnterpriseWeb下的 Default.aspx文件,打开后图片都没了,而同样引用的母版页,在User文件夹下的文件都是好的,这是怎么回事?
2.在生成验证码的页中: if (number % 2 == 0)
{
code =(char)(('0' + (char)(number % 10)));
}
else
{
code=(char)('A'+(char)(number%26));
}
这段代码是什么意思,请详细讲解一下
3.AdminManage.aspx的 RowDeleteing事件中GridView1.Rows[e.RowIndex].Cells[0].Text.ToLower() == "mr" cells[0]即数据库中该行下的第一个单元格,即“ID”应该是编号怎么会是"mr"呢?
4.dataoperate.UpPhoto(uploadPhoto, imgPhoto, Server.MapPath(@"..\images\Photo\")); @是什么意思?
5.Response.Redirect("LWordInfo.aspx?LWordID=" + gvLWord.Rows[Convert.ToInt32(e.CommandArgument)].Cells[0].Text + ""); //本处e.CommandArgument是什么意思
6.LWordManage.aspx BindInfo()方法
if (ds.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
gvLWord.Rows[i].Cells[1].Text = dataoperate.SubStr(ds.Tables[0].Rows[i][1].ToString(), 8);
gvLWord.Rows[i].Cells[2].Text = Convert.ToDateTime(ds.Tables[0].Rows[i][3].ToString()).ToLongDateString();
}
}
//再把他重新绑定有什么意义???

 
	
                                                 VIP会员
VIP会员 购物车
购物车

 私信
                         私信 
                     发表新帖
发表新帖 立即签到
立即签到 
        		  
        		 
         		 关注
关注
                  回复
 回复 支持(
                	支持( 反对(
                    反对( 
                







 
                     
                     
					 
						 
						 
						 
						