Newbie question: Creating a custom control
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 i开发者_C百科s marked as resolved. Any idea where I can find the updated version of this control?
Wild Thing
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.
精彩评论