Menu

#45 Request.Form ordering on LinkButton click

All
open
nobody
All (7)
5
2006-02-16
2006-02-16
Anonymous
No

I noticed a small bug on the ordering of items in the
Request.Form when doing a LinkButton click.

.NET automatically places the ID of the link button
in Request.Form[0], and then puts the view state in
Request.Form[1].

The NUnitAsp processing switches this order around,
so the view state is in Request.Form[0], and the link
button in Request.Form[1]. This caused me some
troubles when I was looking for a dynamically named
link button.

Discussion


Log in to post a comment.