I've seen this myself, but I played around with it and got it working.
I think the problem may be that your event is not hooked correctly. Look at the hidden Web form designer code in Roles.aspx.cs (assuming C# version) and look for this:
this.NewRoleButton.Click += new System.EventHandler(this.NewRoleButton_Click);
this.Load += new System.EventHandler(this.Page_Load);
If you have these 2 lines, then something else is messing up your event handling. Put a breakpoint in the handler for NewRoleButton_Click. See if this breakpoint is hit when you press the button. If your event handling is messed up, then this handler is not being called.
I wish I could remember exactly what caused my problem, but I can't remember the details right now.
Eric
|