On Feb 1, 8:04 am, Doldrums <no_spam_for_me_doldr...@odonnell.tv>
wrote:
> I have a GridView on my Asp.net page where I've added a TemplateField
> that contains a CheckBox.
[quoted text clipped - 30 lines]
>
> Hugh O'Donnell
Hi,
you could use javscript to write the id of the checked record into a
hiddenfield(comma separated).
Important: Use the onclick-Event not the onchange-Event because
ASP.NET generates a span and an input(type checkbox).
On codebehind you only have to read the hiddenfield to get the
selected records.
Regards,
Tim
Doldrums - 01 Feb 2007 14:54 GMT
> Hi,
> you could use javscript to write the id of the checked record into a
[quoted text clipped - 6 lines]
> Regards,
> Tim
Tim,
Thanks for the idea. I have thought of that... but my spec requires no
JavaScript... so I'm looking for an aspx solution.
I believe I *should* be able to read back from the GridView on PostBack.
Hugh