In the web.config file for your website add in the <system.web> section:
<rewrite>
<rules>
<rule name="Redirectioneaza domain.ro catre www" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="domain.ro" />
</conditions>
<action type="Redirect" url="http://www.domain.ro/{R:0}" />
</rule>
</rules>
</rewrite>
Don't forget to replace domain.ro with the real name of your domain.
