Hi Rahul,
Please have a look into the following code snippet to achieve your scenario.
ASPX:
One option is that you can set the EmptyMessage on the pageLoad event as follows.
JavaScript:
Another option is that you can set it from the server side Page_Load event as follows.
C#:
Hope this will helps you.
Thanks,
Shinu.