J
Jules
Hi
I am dynamically creating LinkButton controls (to represent breadcrumb
trails) and am having problems with their events.
I specify the CommandName property, the Command Argument property and call
either one of these 'hookups':
lBtn.Command += new System.Web.UI.WebControls.CommandEventHandler (
this.BreadCrumb_OnClick ) ;
lBtn.Click += new System.EventHandler ( this.BreadCrumb_Click ) ;
I would have thought that this would tell the control how to parameterise
its call to __doPostBack, and in part it does, however, I get the post back
but with no event definition, the anchor tags href is like this:
href="javascript:__doPostBack('_ctl0','')
How can I properly use the Command, the CommandName and CommandArgument
properties to make this work correctly?
I do not care about the controls' state being persisted as they are created
on every hit of the page, all I want is the event handler to be called to
change server state.
Any help would be greatly appreciated!
Thanks in adv.
I am dynamically creating LinkButton controls (to represent breadcrumb
trails) and am having problems with their events.
I specify the CommandName property, the Command Argument property and call
either one of these 'hookups':
lBtn.Command += new System.Web.UI.WebControls.CommandEventHandler (
this.BreadCrumb_OnClick ) ;
lBtn.Click += new System.EventHandler ( this.BreadCrumb_Click ) ;
I would have thought that this would tell the control how to parameterise
its call to __doPostBack, and in part it does, however, I get the post back
but with no event definition, the anchor tags href is like this:
href="javascript:__doPostBack('_ctl0','')
How can I properly use the Command, the CommandName and CommandArgument
properties to make this work correctly?
I do not care about the controls' state being persisted as they are created
on every hit of the page, all I want is the event handler to be called to
change server state.
Any help would be greatly appreciated!
Thanks in adv.