ISLAMABAD: Prime Minister Imran Khan Thursday denied having violated the code of conduct, in his reply submitted in response to the show-cause issued to him by the Election Commission of Pakistan (ECP) for paying a visit to Ghotki, where bye-election is to be conducted on July 18.