NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

//HEsap makinesi///////////////////////////////////////////////////////////////////////////////////
protected void artıButton_Click(object sender, EventArgs e)
{
int firstValue = int.Parse(firstTextBox.Text);
int secondValue = int.Parse(secondTextBox.Text);
sonucLabel.Text = (firstValue + secondValue).ToString();
}
protected void eksiButton_Click(object sender, EventArgs e)
{
int firstValue = int.Parse(firstTextBox.Text);
int secondValue = int.Parse(secondTextBox.Text);
sonucLabel.Text = (firstValue - secondValue).ToString();
}
protected void carpıButton_Click(object sender, EventArgs e)
{
int firstValue = int.Parse(firstTextBox.Text);
int secondValue = int.Parse(secondTextBox.Text);
sonucLabel.Text = (firstValue * secondValue).ToString();
}
protected void bölüButton_Click(object sender, EventArgs e)
{
int firstValue = int.Parse(firstTextBox.Text);
int secondValue = int.Parse(secondTextBox.Text);
sonucLabel.Text = ((double)firstValue / secondValue).ToString();
}
}
}
//iki Gün arası sayı bulma//////////////////////////////////////////////////////////////////////////
protected void okButton_Click(object sender, EventArgs e)
{
DateTime first = firstCalendar.SelectedDate;
DateTime second = secondCalendar.SelectedDate;

TimeSpan date;

if (first > second)
date = first.Subtract(second);
else
date = second.Subtract(first);

sonucLabel.Text = date.TotalDays.ToString();

}
}
}
//pizza uygulaması/////////////////////////////////////////////////////////////////////////////////

protected void Page_Load(object sender, EventArgs e)
{
totalLabel.Text = "Toplam: 0.00 TL";
}

protected void purchaseButton_Click(object sender, EventArgs e)
{
double toplam=0;
if (smallRadioButton.Checked)
{
toplam += 10;
}
else if (normalRadioButton.Checked)
{
toplam += 13;
}
else if (largeRadioButton.Checked)
{
toplam += 16;
}
if (!thinRadioButton.Checked)
{
toplam += 2;
}
if (sucukCheckBox.Checked)
{
toplam += 1.5;
}
if (soğanCheckBox.Checked)
{
toplam += 0.75;
}
if (yeşilCheckBox.Checked)
{
toplam += 0.50;
}
if (kırmızıCheckBox.Checked)
{
toplam += 0.75;
}
if (mantarCheckBox.Checked)
{
toplam += 2;
}
if((sucukCheckBox.Checked && yeşilCheckBox.Checked && mantarCheckBox.Checked)
|| (sucukCheckBox.Checked && kırmızıCheckBox.Checked && soğanCheckBox.Checked))
{
toplam -= 2;
}
totalLabel.Text = "Toplam: " + toplam + " TL";
}
}
}

/DATE TİME /////////////////////////////////////////////////////////////////////////////
protected void okButton_Click(object sender, EventArgs e)
{
//DateTime myValue = DateTime.Now;
//sonucLabel.Text = myValue.ToString(); //14.3.2019 14:27:11
//sonucLabel.Text = myValue.ToLongDateString(); //14 Mart 2019 Perşembe
//sonucLabel.Text = myValue.ToLongTimeString(); //14:33:01
//sonucLabel.Text = myValue.ToShortDateString(); //14.3.2019
//sonucLabel.Text = myValue.ToShortTimeString(); //14:35

//sonucLabel.Text = myValue.AddDays(2).ToString(); //16.3.2019 14:39:04
//sonucLabel.Text = myValue.AddMonths(-2).ToString(); //14.1.2019 14:40:23
//sonucLabel.Text = myValue.Month.ToString(); //3
//sonucLabel.Text = myValue.IsDaylightSavingTime().ToString(); //False
//sonucLabel.Text = myValue.DayOfWeek.ToString(); //Monday
//sonucLabel.Text = myValue.DayOfYear.ToString(); //77 (Yılın 77. günü)

//DateTime myValue = DateTime.Parse("04/04/1985");
//sonucLabel.Text = myValue.ToLongDateString(); //4 Nisan 1985 Perşembe

//Overloaded Constructors
//DateTime myValue = new DateTime(1985, 4, 4);
//sonucLabel.Text = myValue.ToLongDateString(); //4 Nisan 1985 Perşembe
DateTime myValue = new DateTime(1985, 4, 4, 12, 30, 0);
sonucLabel.Text = myValue.ToString(); //4.4.1985 12:30:00


}
}
}
/SET GET SHOW SELECTED WEEK DATE////////////////////////////////////////////////////////////
protected void getDateButton_Click(object sender, EventArgs e)
{
sonucLabel.Text = myCalendar.SelectedDate.ToShortDateString();
}

protected void setDateButton_Click(object sender, EventArgs e)
{
myCalendar.SelectedDate = DateTime.Parse("01/03/2019");
}

protected void showDateButton_Click(object sender, EventArgs e)
{
myCalendar.VisibleDate = DateTime.Parse("04/04/1985");
}

protected void selectedWeekButton_Click(object sender, EventArgs e)
{
sonucLabel.Text = "Week of " + myCalendar.SelectedDate.ToShortDateString();
}

protected void myCalendar_SelectionChanged(object sender, EventArgs e)
{
sonucLabel.Text = myCalendar.SelectedDate.ToShortDateString();
}
}
}










     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.