When you create an ajax button like
echo CHtml::ajaxSubmitButton(
'Submit request',
array('logInOfficeEmp/update&id='.$model->id),
array(
'replace'=>'#req_res02',
array('id' => 'inside_popup') // how to retrieve this
)
);
How to retrieve the ID in the controller, note that you get to know it's ajax or not using Yii::app()->request->isAjaxRequest()