Hi,
Sorry, we cannot undstand your question totally, could you please give more details about your problem, and you had better predigest your code and post here, so we can reproduce your probelm as possible as we can, which can help solve your problem ver well.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support