Obviously if you are offering to by a drink, you'd be somewhere were drinks are being served and flirting would be expected.
I don't think men should make habit of trying to get women's numbers just out and about, especially if the woman is at work. Women shouldn't be put in the position of having to turn down advances when they are just trying to go about their day.
This conversation doesn't have anything to do with Michael Irvin.