Aspx’de Buton Olmadan 4 İşlem Yapımı

Aspx’de Buton Olmadan 4 İşlem Yapımı

protectedvoid DropDownList1_SelectedIndexChanged(objectsender, EventArgs e)

{

int topla, cikart,carp,bol,sayi1,sayi2;

 

sayi1 = Convert.ToInt16(TextBox1.Text.ToString());

sayi2 = Convert.ToInt16(TextBox2.Text.ToString());

if (DropDownList1.SelectedItem.Text == “+”)

{

topla = sayi1 + sayi2;

Label1.Text = topla.ToString();

}

elseif (DropDownList1.SelectedItem.Text == “-“)

{

cikart = sayi1 – sayi2;

Label1.Text = cikart.ToString();

}

 

elseif (DropDownList1.SelectedItem.Text == “*”)

{

carp = sayi1 * sayi2;

Label1.Text = carp.ToString();

}

 

elseif (DropDownList1.SelectedItem.Text == “/”)

{

bol = sayi1 / sayi2;

Label1.Text = bol.ToString();

}

Ekran Alıntısı


Fatal error: Uncaught Error: Call to undefined function kk_star_ratings() in /var/www/vhosts/kursistem.com/cdersleri.kursistem.com/wp-content/themes/jarida/single.php:78 Stack trace: #0 /var/www/vhosts/kursistem.com/cdersleri.kursistem.com/wp-includes/template-loader.php(106): include() #1 /var/www/vhosts/kursistem.com/cdersleri.kursistem.com/wp-blog-header.php(19): require_once('/var/www/vhosts...') #2 /var/www/vhosts/kursistem.com/cdersleri.kursistem.com/index.php(17): require('/var/www/vhosts...') #3 {main} thrown in /var/www/vhosts/kursistem.com/cdersleri.kursistem.com/wp-content/themes/jarida/single.php on line 78