In my dropdown value i get the current year
ddlYear.Items.FindByValue(System.DateTime.Now.Year.ToString()).Selected = true;
but i want the dropdown shows 1 year back...that is now dropdown shows 2018.but i want to show it as 2017 how it possible?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nitin SontakkeRank #264 · 9.6K reputationPosted Apr 5, 2018, 7:45 PM EDT
Ravi Polara PatidarRank #2,471 · 568 reputationPosted Apr 5, 2018, 7:48 PM EDT
Soumya Ps148 reputationPosted Apr 5, 2018, 8:00 PM EDT
Soumya Ps148 reputationPosted Apr 5, 2018, 7:52 PM EDT
Satish Kumar VadlavalliRank #1,134 · 1.6K reputationPosted Apr 5, 2018, 7:53 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Apr 5, 2018, 9:04 PM EDT