Robert Koritnik wrote:
> *When you create your lb object. Do this:
>
> lb.Command += new CommandEventHandler(this.LinkButton_Command);
>
> This will make the appropriate link between the event and the even
> handler
> via __doPostback...
>
> --
> RobertK
> { Clever? No just smart. }
>
> [/vbcol] *
Please help me, I have a similar problem:
I create dynamical template for Repeater and in this template I need t
use LinkButton, so the code is smth like this:
This is InstantiateIn method of the ITemplate interface
LinkButton lbEdit=new LinkButton();
lbEdit.ID="btnEdit";
lbEdit.CommandName="Edit";
lbEdit.CommandArgument="Edit";
lbEdit.Text="Edit";
lbEdit.Command += new CommandEventHandler(btnCommandEdit_Click);
container.Controls.Add(lbEdit);
But when I render the control LinkButon does not generate hre
attribute in the HTML. I do not understand why !!! I've assigne
Command event
-
BR.Z
-----------------------------------------------------------------------
Posted via
http://www.mcse.m
-----------------------------------------------------------------------
View this thread:
http://www.mcse.ms/message758961.htm