You'll have to reference System.Web.Extensions in your .Net 4 project.
1) Open project explorer and click the project. Click "Add Reference".
2) It will open the "Add Refence" window. Click ".NET" tab and find "System.Web.Extensions" and select it. Click the OK button.
3) Now, you should be able to "import" the below namespace.
Happy coding. 🙂