Convert simple code from c# to ASP.NET C#

  • สถานะ: Closed
  • รางวัล: $10
  • ผลงานที่ได้รับ: 5
  • ผู้ชนะ: AndyZo

รายละเอียดการประกวด

I use MonthCalender in c# desktop App. Now i want to use calender in ASP.net (c#).
I want calender to do the same function which MonthCalender does in desktop App
-----------
This is my desktop code which i want to convert to asp.net c#

Function to load date from datagridview and:
1- add bold in calender to dates in first column in gridview.
2- Min and max dates based on gridviewdates.

loadDate()
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
monthCalendar1.AddBoldedDate(Convert.ToDateTime(dataGridView1.Rows[i].Cells[1].Value));
}
monthCalendar1.UpdateBoldedDates();

monthCalendar1.MinDate = Convert.ToDateTime(dataGridView1.Rows[0].Cells[1].Value);
monthCalendar1.MaxDate = Convert.ToDateTime(dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[1].Value);


3-when click a bolddate in caleder i can get the value of date in textbox.

private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
{
textbox1.text = monthCalendar1.SelectionStart.Date.

}

ทักษะแนะนำ

คำติชมจากผู้ว่าจ้าง

“very Good and cooperative”

รูปประจำตัว waelit, Qatar.

กระดานประกาศ

  • xwellingtonx
    xwellingtonx
    • 6 ปี ที่ผ่านมา

    Please check entry #3 . Thanks.

    • 6 ปี ที่ผ่านมา
  • MohamadMaher
    MohamadMaher
    • 6 ปี ที่ผ่านมา

    Can you add some images from the desktop app that illustrate its work

    • 6 ปี ที่ผ่านมา
  • thomask2907
    thomask2907
    • 6 ปี ที่ผ่านมา

    I didn't understand what you meant by this : 2- Min and max dates based on gridviewdates.
    If you can explain this scenario I might be able to complete the work.

    • 6 ปี ที่ผ่านมา

วิธีเริ่มต้นจัดการประกวด

  • ประกาศการประกวดของคุณ

    จัดการประกวดของคุณ รวดเร็วและง่ายดาย

  • รอรับผลงานจำนวนมหาศาล

    รอรับผลงานจำนวนมหาศาล จากทั่วโลก

  • มอบรางวัลให้แก่ผลงานที่ดีที่สุด

    มอบรางวัลให้แก่ผลงานที่ดีที่สุด ดาวน์โหลดไฟล์ - ง่ายดาย!

โพสต์การประกวดตอนนี้เลย หรือเข้าร่วมกับเราวันนี้!