Thank you for your reply.
i think the problem is in the nop project.
i uploaded this code in HTML file without any extra code. it worked but in nop, it doesn't work.
i think it needs to check.
unfortunately, the support is not good here. it is really important for new developers to find help and enough support.