Welcome to CCM.NET. It seems you have an issue, but you have failed to let us in on the code you are stuck with.
Please understand, we cannot provide you with a turnkey solution. We are volunteers here to help others when they are stuck with something they are working on. In this case, you are asking us to provide you with code out right, with no effort on your part.
Please post some code and we can help. Once again, we cannot possibly provide you with a turn key solution, as just as soon as we spend our time to write something and post it here.....you will post back with more details of how the solution doesn't work because you really needed it to do this and THAT!