Sharepoint WebPart Button Click
-
I have an *extremely* basic question. Much of the code below has been lifted from Scott Hilier's book on MOSS. I have also asked him this question with no response as yet. When I click on a button in a sharepoint web part, I think it should run the method I associate: protected override void CreateChildControls() { m_button = new Button(); m_button.Text = "Push Me!"; m_button.Click += new EventHandler(m_button_Click); Controls.Add(m_button); } protected override void RenderContents(HtmlTextWriter writer) { m_button.RenderControl(writer); } void m_button_Click(object sender, EventArgs e) { m_report += "Button Click
"; } ...The problem is that "Button Click" is never reached. It does post back, but it does not reach my breakpoint and does not write the text. Ideas appreciated.Cheers, Daaron