10-26-04 10:48 PM
Hi Folks,
I've come across some strange behaviour in a UserControl. Basically, I've
added a standard Web user control to a CMS template (it just allows the user
to select info from a database that sits on the same server - kind of
integrating CMS with an external app).
So, I have two repeaters (to list the first letters of the external data)
and two buttons.
Here's some code:
this.rpLetters.ItemCommand += new
System.Web.UI.WebControls.RepeaterCommandEventHandler(this.rpLetters_ItemCom
mand);
this.rp2Letters.ItemCommand += new
System.Web.UI.WebControls.RepeaterCommandEventHandler(this.rp2Letters_ItemCo
mmand);
this.cmdSubmit.Click +=new EventHandler(cmdSubmit_Click);
this.cmdReset.Click +=new EventHandler(cmdReset_Click);
Now, the first two items - repeater item commands - cause explicit postbacks
via the javascript:__doPostback(...) calls.
But the cmdSubmit and cmdReset don't do anything - clicking the button gives
no response. These commands are in the Page_Load block of my UserControl and
I can step through the code to confirm that they're being executed (the fact
that the repeater itemcommands are working is proof of that).
Any ideas?
The usercontrol is in a CMS aspx template file.
[ Post a follow-up to this message ]
|