I have a link button let's say LB1 wherein on click of the LB1 a modalpopupextendar will open up with a textbox where we can enter the message and onclick of Ok button the entered message will be saved. Let's say we have repeated the above steps for thrice. So there will be three rows created in DB. Let's say column name UID is the primary key.
Now, I am displaying the each message inside a panel along with Link Button(LB2) which is created dynamically while reading the text. So,
The first row will contain
UID:1
Message:Message1
Comments:
Comments Link Button(LB2)
The second row will contain
UID:2
Message:Message2
Comments:
Comments Link Button(LB2)
The third row will contain
UID:3
Message:Message3
Comments:
Comments Link Button(LB2)
When I click on Comments Link Button(LB2) a modalpopupextendar will popup wherein we can enter the comments. Let's say we are clicking on LinkButton of Message 1, a pop up opens and after entering comments and ok button the comments are saved for all the three messages instead of saving it for message 1, i.e I couldn't find the unique id of the message.