I'm Sri Lankan passport holder. I found Sri Lanka is in eVisa supported country list. Can I apply for eVisa to attend a conference for 4 days?
From what I have learnt on India e-Visa page, you can surely apply for eVisa.
Since very recently (around November 2018?), it is possible to apply for a conference e-visa. See the Indian e-visa website.