Esempio n. 1
0
 protected void LinkButton2_Click(object sender, EventArgs e)
 {
     QQWeiBo bo = new QQWeiBo();
     try
     {
         if (bo.SendPicWeiBo(this.openid, this.openkey, base.Request.UserHostAddress, "#金星星座#我刚用了超灵的“金星爱情分析器”。原来我的" + this.titles[((int)this.ViewState["ele"]) - 1] + this.contexts[((int)this.ViewState["ele"]) - 1].Substring(0, 50).Replace("你", "我") + "... 一起来试试吧,点击 http://app.t.qq.com/app/play/801269870 更多占星术知识请收听 @iamsnowsnow", "http://t2.qpic.cn/mblogpic/310462b251813df5ecac/2000", AppEnum.Apps.venus))
         {
             this.Page.ClientScript.RegisterStartupScript(base.GetType(), "share", "alert('分享成功!');", true);
         }
     }
     catch
     {
     }
 }
Esempio n. 2
0
 protected void LinkButton2_Click(object sender, EventArgs e)
 {
     QQWeiBo bo = new QQWeiBo();
     try
     {
         if (bo.SendPicWeiBo(this.openid, this.openkey, base.Request.UserHostAddress, this.TextBox1.Text + " 更多占星术知识请收听 @iamsnowsnow", "http://t2.qpic.cn/mblogpic/b45699c516c2a873185c/460", AppEnum.Apps.astrodice))
         {
             ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.UpdatePanel1.GetType(), "share", "alert('发布成功!请留意该条微博的转播与评论,占卜师可能会为你解答哦!');", true);
         }
         if (!this.TextBox1.Text.Contains("请输入您要占卜的问题") && !(this.TextBox1.Text.Trim() == ""))
         {
         }
     }
     catch
     {
     }
 }