A very simple approach :
On the button you can have two properties :
1. commandArgument
2. commandName
Now, at the RowCommand event of the repeater, you can check if e.CommandName="Edit"
then,
Int32 ID=e.CommandArgument.ToInt32();
Now, on opening the model-up, you can fill the textboxes by fetching the data from database using this id, and update it too.
Note: I have written all the code without checking, so I may contain syntactical mistakes as this was top on my head.
Hope this would solve your problem. Feel free to ask for any issue.
Anurag