Extruding curve and editing non destructively
I don't think you can directly assign two different textures to a curve.
But as a workaround, you can use a Gradient texture.

I'm just mixing two colors, but you can mix any number of shaders/textures...