We have seen that a momentum eigenstate can be expressed as sum of position eigenstates as: $${| {p} \rangle}= \int{Ae^{i(p/\hbar)\hat{x}}| {x} \rangle}dx$$ Where $A$ is a constant . Suppose we measure the momentum of a particle in a box and the wavefunction collapses to: $${| {p'} \rangle}.$$ We know that the particle cannot be found outside the box (infinite square well) . Therefore $${Ae^{i(p'/\hbar)\hat{x}}}=0$$ for any $x$ outside the box or at the boundary of the box. And the wavefunction also have to be continuous . The only way it can be guaranteed is by making $A=0$ but then it will be 0 everywhere inside the box also which is not physically possible . So can position be measured for a particle ina box?
EDIT:-
I recently noticed an issue with the phenomenon of wave function collapse . After collapse the wavefunction collapses to a single eigenstate of its respective observable like position or momentum or something else. This means that the wavefunction takes the form of a delta function in that observable space . But we all know that Delta functions are not continuous thus failing the law of QM that wavefunction needs to be continuous