protected void Imgtweet_Click(object sender, ImageClickEventArgs e) { int id; string msg; DateTime dat = DateTime.Now; string user = p.user_id;// Session["uid"].ToString(); if (txttweet.InnerText.Trim() == "") { } else { m.AddTweet(user, txttweet.InnerText, dat, out id); Response.Redirect("~/Home.aspx"); } }