In quantum mechanics we have \begin{equation*} \langle x|p\rangle=C\exp\left(\frac{ipx}{\hbar}\right) \end{equation*} where $C$ is a normalization constant.
It follows that \begin{equation*} -i\hbar\frac{\partial}{\partial x}\bigl(\langle x|p\rangle\bigr) =-i\hbar C\frac{\partial}{\partial x}\exp\left(\frac{ipx}{\hbar}\right) =p\langle x|p\rangle \tag{1} \end{equation*}
However by the product rule we can also write \begin{equation*} -i\hbar\frac{\partial}{\partial x}\bigl(\langle x|p\rangle\bigr) =-i\hbar \left[ \left(\frac{\partial}{\partial x}\langle x|\right)|p\rangle +\langle x|\left(\frac{\partial}{\partial x}|p\rangle\right) \right] \tag{1.1} \end{equation*}
Rewrite as \begin{equation*} -i\hbar\frac{\partial}{\partial x}\bigl(\langle x|p\rangle\bigr) =-i\hbar\left(\frac{\partial}{\partial x}\langle x|\right) |p\rangle +p\langle x|p\rangle \tag{2} \end{equation*}
Then by equivalence of (1) and (2) we have \begin{equation*} -i\hbar\left(\frac{\partial}{\partial x}\langle x|\right) |p\rangle=0 \tag{3} \end{equation*}
Is this correct?
EDIT: No, it is not correct. The mistake is in equation (2). As pointed out in the accepted answer, the correct form of (2) is \begin{equation*} -i\hbar\frac{\partial}{\partial x}\bigl(\langle x|p\rangle\bigr) =-i\hbar\left(\frac{\partial}{\partial x}\langle x|\right) |p\rangle \tag{2'} \end{equation*} because \begin{equation*} \langle x|\left(\frac{\partial}{\partial x}|p\rangle\right)=0 \end{equation*}
It follows from (2') that \begin{equation*} -i\hbar\frac{\partial}{\partial x}\bigl(\langle x|p\rangle\bigr) =p\langle x|p\rangle \end{equation*} which is equivalent to equation (1) as required.