if you resign and serve your notice period accroding to your current compnay laws , and compnay decided NOT to give you NOC , then it will be for two years ... and if compnay gives you NOC , you can resume ASP