In Dhaka, shorts are acceptable everywhere except inside mosques. So when it is hot and humid outside, you can wear shorts without worry. First, buy some long trunk-thigh length underwear to keep your legs from rubbing together in hot and humid weather, and then some Bangladeshi lungis/sarongs.