Run-time error: must be placed inside a form tag with runat=server

A burning error that occurred during a modification to one of the project recently.
Screwed up the internet for help but really couldn’t find a way out. Thank to our senior software engineer (Hansa Samarasekara) who has vast hand on experience on web applications gave me the answer to the question.
On the master page always the content place holder and all components that should be default to master page should be placed within the Form tag. If it is not placed within the form tag once you create a Web Form with the master page and place either a text box or any component on the page the above error is displayed.
To avoid the error the form tag should be placed with in the content place holder in the maser page.









Post a Comment

Copyright © My Beat