NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

/////////////////////////////////Kargo Ucreti Kod//////////////////////////////

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KargoUcretiHesaplama
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (groundRadioButton.Checked)
{
getInfo(0.15);
}
else if (airRadioButton.Checked)
{
getInfo(0.25);
}
else
getInfo(0.45);
}

private void getInfo(double mul)
{
double weight;
if (double.TryParse(widthTextBox.Text, out double width)
&& double.TryParse(heightTextBox.Text, out double height))
{
if (weightTextBox.Text == "")
weight = 1;
else
weight = double.Parse(weightTextBox.Text);
resultLabel.Text = "Kargo Ücreti: " + calculate(width, height, mul, weight);
}
else
resultLabel.Text = "Lütfen genişlik ve yüksekliği giriniz";

}

private double calculate(double width, double height,
double mul, double weight = 1.0)
{
double result;
result = width * height * weight * mul;
return result;
}

protected void groundRadioButton_CheckedChanged(object sender, EventArgs e)
{

}

protected void airRadioButton_CheckedChanged(object sender, EventArgs e)
{

}
}
}

///////////////////////////////////////KAYNAK/////////////////////////////////////

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="KargoUcretiHesaplama.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Kargo Ücretini Hesaplama<br />
<br />
Genişlik:
<asp:TextBox ID="widthTextBox" runat="server"></asp:TextBox>
<br />
Yükseklik:
<asp:TextBox ID="heightTextBox" runat="server"></asp:TextBox>
<br />
Ağırlık:
<asp:TextBox ID="weightTextBox" runat="server"></asp:TextBox>
<br />
<br />
<asp:RadioButton ID="groundRadioButton" runat="server" AutoPostBack="True" GroupName="Group" Text="Karayolu" OnCheckedChanged="groundRadioButton_CheckedChanged" />
<br />
<asp:RadioButton ID="airRadioButton" runat="server" AutoPostBack="True" GroupName="Group" Text="Havayolu" OnCheckedChanged="airRadioButton_CheckedChanged" />
<br />
<asp:RadioButton ID="nextRadioButton" runat="server" AutoPostBack="True" GroupName="Group" Text="Bir sonraki gün" />
<br />
<br />
<asp:Label ID="resultLabel" runat="server"></asp:Label>
</div>
</form>
</body>
</html>
     
 
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.