@using QUOC_KTLT_20200831.Models;
@using QUOC_KTLT_20200831.DataContext;
@using QUOC_KTLT_20200831.BussinessLogic;
string kq = string.Empty;
string tb = string.Empty;
string filePath = string.Empty;
TamGiac tg = new TamGiac();
tg.A.X = int.Parse(Request["txtAX"]);
tg.A.Y = int.Parse(Request["txtAY"]);
tg.B.X = int.Parse(Request["txtBX"]);
tg.B.Y = int.Parse(Request["txtBY"]);
tg.C.X = int.Parse(Request["txtCX"]);
tg.C.Y = int.Parse(Request["txtCY"]);
filePath = Request["txtFilePath"];
var luu = IO_TamGiac.luuTamGiac(tg, filePath);
tb = "da luu thanh cong tam giac";
kq = $"Diem A({tg.A.X}, {tg.A.Y}), Diem B({tg.B.X}, {tg.B.Y}),Diem C({tg.C.X}, {tg.C.Y})";
tb = "day la me cua thanh cong";
<meta name="viewport" content="width=device-width" />
<form action="~/Views/View_LuuTG.cshtml" method="post">
<label for="txtAX">Toa do X cua A </label>
<input type="text" name="txtAX" /> <br />
<label for="txtAY">Toa do Y cua A</label>
<input type="text" name="txtAY" /> <br />
<label for="txtBX">Toa do X cua B </label>
<input type="text" name="txtBX" /> <br />
<label for="txtBY">Toa do Y cua B</label>
<input type="text" name="txtBY" /> <br />
<label for="txtBY">Toa do X cua C</label>
<input type="text" name="txtCX" /> <br />
<label for="txtCY">Toa do Y cua C</label>
<input type="text" name="txtCY" /> <br />
<label for="txtFilePath">duong dan file</label> <br />
<input type="text" name="txtFilePath" value="@filePath" />
<input type="submit" name="btnSM" value="Ghi Toa Do" />
<h1>ket qua luu tac giac: @kq </h1>