BasePage基类中有一个方法
protected void Count(){
//Todo
};
另一个类:
AA:BasePage{
private void Page_Load(Object sender,EventArg e){
if(!Page.IsPostBack){
Count();
}
}
}为什么每次都看上去执行俩次呢?因为在方法 count()中判断,如果已经有数据,进行"update table set count=count+1 where Recoud='....'"每次都刷新都加 2
protected void Count(){
//Todo
};
另一个类:
AA:BasePage{
private void Page_Load(Object sender,EventArg e){
if(!Page.IsPostBack){
Count();
}
}
}为什么每次都看上去执行俩次呢?因为在方法 count()中判断,如果已经有数据,进行"update table set count=count+1 where Recoud='....'"每次都刷新都加 2
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货