En iyi yanıtlayıcılar
Repeater icerisinde coklamıs oldugum button ve textbox icerisindeki degeri okuma

Soru
-
Yanıtlar
-
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "cmdSepet") { Textbox txt = (TextBox)e.Item.FindControl("txtSepet") if(txt!=null)
{
if(!string.IsNullOrEmpty(txt.Text))
{
string deger = txt.Text;
}
} } }
bunyaminabay.com
- Düzenleyen Bünyamin 21 Şubat 2013 Perşembe 22:02
- Yanıt Olarak İşaretleyen Ersin KARTAL 22 Şubat 2013 Cuma 06:36
Tüm Yanıtlar
-
-
-
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "cmdSepet") { Textbox txt = (TextBox)e.Item.FindControl("txtSepet") if(txt!=null)
{
if(!string.IsNullOrEmpty(txt.Text))
{
string deger = txt.Text;
}
} } }
bunyaminabay.com
- Düzenleyen Bünyamin 21 Şubat 2013 Perşembe 22:02
- Yanıt Olarak İşaretleyen Ersin KARTAL 22 Şubat 2013 Cuma 06:36