如何选择从3月28日 - 4月27日开始像每个月一样,并使用ASP.NET,C#中的日历在文本框中显示? [英] How selected from march 28- april 27 as like everymonth and display in textbox using calendar in ASP.NET, C#?
问题描述
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
DateTime now = DateTime.Now;
DateTime check = DateTime.Now.AddDays(13);
now = now.AddDays(13);
Label1.Text = DateTime.Today.AddDays(13).ToShortDateString();
Label2.Text = DateTime.Today.AddDays(14).ToShortDateString();
Label3.Text = DateTime.Today.AddDays(15).ToShortDateString();
Label4.Text = DateTime.Today.AddDays(16).ToShortDateString();
Label5.Text = DateTime.Today.AddDays(17).ToShortDateString();
Label6.Text = DateTime.Today.AddDays(18).ToShortDateString();
Label7.Text = DateTime.Today.AddDays(19).ToShortDateString();
}
我的尝试:
如何从3月28日到4月27日选择,就像每个月一样,使用asp.net中的日历显示在文本框中,C#??
我累了很多,但它只在3月28日 - 4月27日打印,而不是在日历中的任何一个月增加..
如何连续获得30个标签中的日期,
当我选择任何一个月之后3月之后?
它每个月需要一个周期(28 -27th)。
ex:
3月28日到4月27日
4月28日到5月27日...
What I have tried:
How to selected from March 28- April 27 as like every month and display in text box using Calendar in asp.net,C# ??
I tired lot,but it printing only from march 28th- April 27th,not any of the month in the calendar by increment..
how to get that for date in 30 label continuously,
when i selected any of month After march ?
it ll take a cycle as (28th-27th)every month.
ex:
March 28th to April 27th
April 28th to May 27th...
推荐答案
我有一个表格30天,
我希望在标签上显示日期,
如果我选择3月28日然后自动截止日期为4月27日,它会显示在标签上。
如果再想选择那么我只会选择4月28日 - 5月27日,而不是在日期之间选择。
如何在C#中显示
Am having a Form For 30 days,
in that i wanna display the date in label's,
if i selecting March 28th then it automatically take end date as April 27th and it display in label.
if again wanna selected then i ll select only from April 28th - May 27th only not in between date's to select.
how to display that in C#???
Am having a Form For 30 days,
in that i wanna display the date in label's,
if i selecting March 28th then it automatically take end date as April 27th and it display in label.
if again wanna selected then i ll select only from April 28th - May 27th only not in between date's to select.
how to display that in C#???
这篇关于如何选择从3月28日 - 4月27日开始像每个月一样,并使用ASP.NET,C#中的日历在文本框中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!