You can use a main div where I have test it in this format
And it's working !!!!!!!!!!!
<p dir="rtl">Write this text right-to-left!</p>
<div dir="<%= Session["dir"] %>">
Hello friends
</div>
rtl=Right-to-left text direction
Syntax:
<p element dir="ltr|rtl|auto">