M
Mark Fitzpatrick
Your best bet is to wire up an event to the linkbutton. Basically, you can
set a variable in the viewstate, and whenever the click event of the button
fires you fetch that variable from the viewstate, increment it, then you can
set the text of that linkbutton. You'll probably have to set the text of the
link button during the ItemCreated event of the datalist. You'll have to
also handle an initial testing so that when the viewstate variable is
null(as is the case with the initial viewing) it will set the variable to
zero or 1.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
set a variable in the viewstate, and whenever the click event of the button
fires you fetch that variable from the viewstate, increment it, then you can
set the text of that linkbutton. You'll probably have to set the text of the
link button during the ItemCreated event of the datalist. You'll have to
also handle an initial testing so that when the viewstate variable is
null(as is the case with the initial viewing) it will set the variable to
zero or 1.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage