I can relate to the frequent UTI's. I get them often, too.
I was told it was retention that causes them. I have taken Bactrim to the point I think I have a tolerance to it now.
Mine are different in that I don't have pain. My MS sx are what tells me I have a UTI. They go through the roof when I have one.
Have they checked for kidney stones? The urologist I went to a year or more ago told me I had kidney stones! I've never had any pain or problems with them and forgot I had them.
I hope you're able to find out what's causing your pain. I know how frustrating it is to go to the ER and have them find nothing. ER doctors really know nothing about MS and the last time I went to the ER I felt like I was giving a seminar on MS to them! They were really happy to learn what MS can do to a person and I hope that they at least learned to be a little more accepting of folks who come in with MS related problems.
Please keep us updated on your condition and what the doctors ultimately learn the problem is.
Hope you feel better.