Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function() {
- $(".mydatepickerclass").datepicker({dateFormat: 'dd-mm-yy'});
- });
- </script>
- <asp:UpdatePanel ID="HistoryUpdatePanel" runat="server">
- <ContentTemplate>
- <%-- Start of Company History section --%>
- <fieldset>
- <legend>Activity History</legend>
- <script type="text/javascript">
- $(function() {
- $(".mydatepickerclass").datepicker({dateFormat: 'dd-mm-yy'});
- });
- </script>
- <div>
- <asp:ListBox ID="listBoxHistoryTypes" runat="server" SelectionMode="Multiple" AutoPostBack="true" OnSelectedIndexChanged="listBoxHistoryTypes_IndexChanged" />
- <label>Date From:</label><asp:TextBox class="mydatepickerclass" ID="txtdatefrom" runat="server" />
- <label>Date To:</label><input class="mydatepickerclass" type="text" />
- <asp:TextBox class="mydatepickerclass" ID="txtdateto" runat="server" />
- <asp:Button ID="btnFilterSearch" runat="server" Text="Filter Results" OnClick="btnFilterSearch_Click" />
- </div>
- </fieldset>
- </ContentTemplate>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.js">
- </script>
- <script type="text/javascript">
- $(document).ready(function() {
- Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
- function EndRequestHandler(sender, args) {
- $('.mydatepickerclass').datepicker({ dateFormat: 'dd-mm-yy' });
- }
- });
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- </div>
- <asp:ScriptManager ID="ScriptManager1" runat="server">
- </asp:ScriptManager>
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
- <ContentTemplate>
- <asp:TextBox ID="TextBox1" runat="server" CssClass="mydatepickerclass"></asp:TextBox>
- <br />
- <asp:Button ID="Button1" runat="server" Text="UpdateMe"
- onclick="Button1_Click" />
- </ContentTemplate>
- </asp:UpdatePanel>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment