I am getting above error in design view. When in source view it is same except "Parser Error Message - The server tag is not well formed.". Every thing is fine when I execute on development machine in local mode, but when I place code on server and execute, then error. Following is the Source for the gridview followed by the referenced sqlServerdataSource . Appreciate any help.