if else kullanımı - .NET NOTLARIM
04 Aralık 2017 Bu içerik 2.246 kez okundu.
if else kullanımı hakkında
----
<form id="form1" runat="server">
<asp:TextBox ID="txtYas" runat="server"></asp:TextBox>
<asp:Button ID="btnGonder" runat="server" Text="Hesapla" OnClick="btnGonder_Click" />
</form>
----
{
if (Convert.ToInt32(txtYas.Text) >= 18)
Response.Write("Ehliyet Alabilirsiniz");
else
Response.Write("Ehliyet Alamazsınız");
}