protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request.QueryString["ID"] != null) { int id = int.Parse(Request.QueryString["ID"]); VeritabaniYardimci yardimci = new VeritabaniYardimci(); DataTable sarkici = yardimci.SarkiciGetir(id); this.rptSarkici.DataSource = sarkici; this.rptSarkici.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["ID"] != null) { int sarkiciId = int.Parse(Request.QueryString["ID"]); VeritabaniYardimci yardimci = new VeritabaniYardimci(); DataTable sarkici = yardimci.SarkiciGetir(sarkiciId); if (sarkici.Rows.Count > 0) { string sarkiciScreenName = sarkici.Rows[0]["SarkiciTwitter"].ToString(); string sarkiciAd = sarkici.Rows[0]["SarkiciAd"].ToString(); this.lblBaslik.Text = sarkiciAd + " Paylaştığı Tweet'ler:"; this.lnkSarkiciTwitter.Text = "@" + sarkiciScreenName; this.lnkSarkiciTwitter.NavigateUrl = "https://twitter.com/" + sarkiciScreenName; Session["SarkiciScreenName"] = sarkiciScreenName; } } }