Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             GoogleAdsenseController objController = new GoogleAdsenseController();
             _userModuleCount = objController.CountAdSense(Int32.Parse(hdnUserModuleID.Value), GetPortalID);
         }
         catch (Exception ex)
         {
             ProcessException(ex);
         }
         if (_userModuleCount > 0)
         {
             BindAdsControl();
         }
         else if (_userModuleCount == 0)
         {
             //BindDefaultAdsControl();
         }
         else
         {
             AdsenseDisplay.Visible = false;
         }
     }
 }