Without knowing exactly which line it is complaining about, it isn't that easy to see where your problem might be, but there is only one line that fragment which can be causing a null refenerce exception:
Repeater1.DataSource = dt;
All the lines above it declare objects and set them appropriately, or use variables which are declared and set in the fragment.
So,
Repeater1
is null - now you need to look at your other code to find out where it should be loaded with a value, and why it isn't. I can't do that for you - I don't have access to your code! :laugh: