views:

33

answers:

1

Hi,

I have an ASP.Net site, in which I am using a ListView with a Datapager. Apparently there is a bug with the Datapager, where it crashes if there is an empty ampersand (&) in the querystring. This is a known issue: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=357344&wa=wsignin1.0#tabs

I see that there is a workaround given, but did not understand how to implement it. Can somebody point me in the right direction?

Also, I see that this issue is marked as resolved. Any idea where I can find the updated version of this control?

Wild Thing

+2  A: 

To implement the workaround, you need to subclass the DataPager control. In other words, create a new class that descends from DataPager. Then paste the code that mysterious.e-theorrigional wrote in the workaround into the class.

Then, instead of using DataPager, you use this new class. That should solve your issues.

As to the second part of your question, how to get the updates: It was most likely fixed in .Net 4.0. In order to use that, you'll need VS2010. I can't guarantee that's where it was fixed, but given the work item status, that makes the most sense.

Chris Lively
Wild Thing
@Wild Thing: you might want to look at http://www.4guysfromrolla.com/articles/100103-1.aspx and http://www.beansoftware.com/ASP.NET-Tutorials/Custom-Server-Controls.aspx
Chris Lively
It worked! It worked! Thanks for the help and the links, Chris!
Wild Thing