Hi i place this code between my head tags <% int x = 2; %> then i put this in the body tags <%= x %>. It gets error. This is frustrating. If i put those two codes between the body tags. It works. What is wrong with asp.net? In php i can place all my codes whereever i want on the page and it works.
That is very strange; in ASP it doesn't matter where you put the tags. What exactly is the error you are getting?