Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Language="C#"%>
- <script runat="server">
- public void submit(object Source, EventArgs e){
- bsubmit.Text = "odesláno";
- }
- public void calchange(object Source, EventArgs e){
- if (databox1.Items.FindByText(cal1.SelectedDate.ToShortDateString()) == null)
- {
- databox1.Items.Add(cal1.SelectedDate.ToShortDateString());
- }
- else
- {
- databox1.Items.Remove(databox1.Items.FindByText(cal1.SelectedDate.ToShortDateString()));
- }
- }
- </script>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>Natáčecí kalendář projektu Cosa nostra</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- Login: <asp:TextBox id="login" width=150px runat=server /><br/>
- heslo pro editaci: <asp:TextBox id="heslo" TextMode="password" width=80px runat=server /><br/><br/>
- Dny kdy nemůžete: <asp:Calendar id="cal1" OnSelectionChanged="calchange" runat=server /><br/>
- <asp:ListBox id="databox1" enabled="false" runat="server" width=150px heigth=550px>
- </asp:ListBox><br/>
- <asp:Button id="bsubmit" text="odeslat" OnClick="submit" runat="server" />
- </div>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement