I know how to calculate the magnetic field due to current inside the solenoid.
Obviously, when the current is varying, then the magnetic field will be time dependent. By the 3rd Maxwell's equation, an electric field will be created.
I'm wondering that, why can I still use Ampere's law to calculate the magnetic field within the solenoid? (in fact, can i?) I thought that the time varying electric field will also produce a magnetic field, meaning that the total magnetic field is not just that calculated from Ampere's law, but the sum of that calculated from Ampere's law and that produced by time varying electric field.