Zahid,
I am not aware of any documentation or sample that show how to do this. I personally am very much against web editing, especially the way that esri has opened it up. It is up to developers to secure there own editing environment and that is fine for those that want to but there are going to be to many of those beginners that will not have a clue what they are doing and what the implications are and end up loosing lots of data. Of course one that puts some though into the web editing process will probably realize the need to create a replica of their GDB and have someone QA/QC the edit before committing them to real GDB. Anyway time to get off my soapbox.
Good Luck with this.