I created a new webapart and add to a page after adding i was unable to save the page from editing mode but If i remove my webpart and try to save its saving. Not sure what is the error can any one let me know what might be the problem
You need to modify any validation code in your web part to ignore validation if the page is in edit mode.
You can do this server side using this code snippet in in the web-part. Make sure to add this using statment as well.