|
Greetings,
I am using a DataGrid to display advertisements on a ad board. All works great, except on day 2, the links that were visited show visited today.
The culprit is that the control links that are really a ButtonColumn are rendered with;
href=__doPostBack('DataGrid1$_ctl7$_ctl0','')" and the next day there are mor of these same links.
Ideally I would like to set the eventArgument parameter, to a unique ID to have something like...
href=__doPostBack('DataGrid1$_ctl7$_ctl0','37452')"
In this way each Item would be Unique.
I have thought about modifying the Render which seems like it would be simple enough but I have heard there are problems with ButtonColumns rendering properly.
I also tried to set the "OnClick" event manually myself for a while, but that did not help as the control still showed href=__doPostBack('DataGrid1$_ctl7$_ctl0','')". I also can replace it with a Web Link, but the way my code works that would generate a lot of overhead.
Thoughts?
Is there a way to set the eventArgument?
|