system.web.ui.webcontrols

Listview reference in a class library

I'm trying to access the ListView class from System.Web.UI.WebControls in my class library. So I added a reference to System.Web and expected it to then show up but unfortunately it didn't. Now I can only assume it is because the ListView is part of the 3.5 release not 2.0. So I checked my class library to make sure it is targeting 3.5 ...

Add row dynamically to table in ASP.NET?

I'm trying to add rows dynamically to a System.Web.UI.WebControls.Table control in ASP.NET. I found some sample code that does what I'm seeking, but it only adds a single row. It seems like the table row count does not carry from one page load to the next. The user should be able to add as many rows as desired, and I need to capture th...

How to enable ajax when deriving from System.Web.UI.WebControls.WebControl on controls that are created inside WebControl

I've built a class that derives from System.Web.UI.WebControl. It basically renders pagination links (same as what you see on top of GridView when enabled) for use above a repeater. I'm creating some anchor tags explicitly inside my nav control obviously, but they don't perform ajax postbacks. My understanding is that ajax requires POS...

Make Webcontrols.Calendar's SelectionChanged Event Fire when clicked on currently SelectedDate

Hi I have come with following solution but I'm not sure if it's the best one. What I specially dislike is the way I have to apply the style in the DayRender event, any comments? To overcome that problem what I did was to store the selected date in the viewstate and then reset the selected date. To preserve the marker on the selected da...