hai friends,,
i have a probelm,,
i have two texboxs like textbox1 and textbox2 and one datepicker for textbox.
when i select date from date picker it has to select date and print to the textbox1.
and when onmousedown the textbox1 date has to add 15 days and print to the textbox2...
how to get that date from textbox1 and add 15 days to that date and dispaly in the textbox2....
this is mycode..............
===========================================================================================================================================
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript" language="javascript">
function test()
{
var txt1=new Date(document.getElementById("<%= regeggee.ClientID %>"));
var txt2=document.getElementById("<%=regeggee0.ClientID %>");
txt2.value=tx2.value;
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="bgcdeat" runat="server" Text="BGC INTIATED DATE:" Font-Bold="True"
ForeColor="White" Font-Names="Verdana" />
<asp:TextBox ID="regeggee" runat="server" Width="200" onmousedown="test();"/>
<asp:HyperLink ID="imgDate4" runat="server" ImageUrl="~/cal.gif">
HyperLink</asp:HyperLink>
<asp:Label ID="trgdate" runat="server" Text="TARGET DATE:" Font-Bold="True"
ForeColor="White" Font-Names="Verdana" />
<asp:TextBox ID="regeggee0" runat="server" Width="200" />
</asp:Content>
need javascript code to add days..................