I got solution. I added
<rewrite>
<rules>
<rule name="rullll">
<match url="^p/([a-z0-9/]+)$" />
<action type="Rewrite" url="page.aspx?productcode={R:1}" />
</rule>
</rules>
</rewrite>
to web.config
And have done some stuff of coding in page.aspx. (I got product code from query string and then redirected to respective aspx page of that product)
Here i have made a compromise. User needs to enter url line domainname/p/product-code
instead of domainname/product-code