How to get End Date after selection of Start date from drop down list.
I am selecting startdate from dropdowns and I am showing last date in label.
For example- If I am selecting "January" from first dropdown. Date "1" from second dropdown. Then Label1.text become last date i.e. 31 december.
How can I do this ?
using
DateTime.AddDays
Method you can do thissubstract 1 day from your start date.
source:http://msdn.microsoft.com/en-IN/library/system.datetime.affffdays.aspx
Please try below code
There are many ways of doing it . You can do it in javascript as well as in asp.net. have a page method of make a $.ajax call with the data selected
C# part
In case you do not want to do AJAX you have to do the postback and handle it then onward.