Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="AV2.WebForm1" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
- <div class="container-fluid">
- <div class="row text-center ">
- <div class="m-4">
- Внесете име на валута
- <br />
- <asp:TextBox ID="ImeValuta" runat="server"></asp:TextBox>
- </div>
- <div class="m-4">
- Внесете вредност на валута
- <br />
- <asp:TextBox ID="VrednostValuta" runat="server"></asp:TextBox>
- </div>
- <div class="m-4">
- <asp:Button ID="DodadiValuta" runat="server" Text="Додади Валута" OnClick="DodadiValuta_Click" />
- </div>
- <hr />
- <div class="m-4">
- <asp:RadioButtonList ID="ListaValuti" runat="server"></asp:RadioButtonList>
- </div>
- </div>
- </div>
- </asp:Content>
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace AV2
- {
- public partial class WebForm1 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- protected void DodadiValuta_Click(object sender, EventArgs e)
- {
- ListItem item = new ListItem(ImeValuta.Text, VrednostValuta.Text);
- ListaValuti.Items.Add(item);
- ImeValuta.Text = "";
- VrednostValuta.Text = "";
- }
- }
- }
Add Comment
Please, Sign In to add comment