Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > My Messages webpart won't delete View modes: 
User avatar
Member
Member
gatsby0121 - 10/21/2011 4:35:43 AM
   
My Messages webpart won't delete
I've added a custom webpart to create messages to specific groups using the webpart messaging api.

This works fine.

I've created a separate page, and added the My Messages module to it.

When I click on delete message or delete all messages, nothing happens. I've gone into debug mode, opened the inbox control for messaging and added a breakpoint on both methods, and they never fire. Is there something I need to do to accomplish this?

User avatar
Member
Member
kentico_michal - 10/24/2011 12:44:55 AM
   
RE:My Messages webpart won't delete
Hello,

It seems to be some kind of different page lige cycle based issue and because of that click events are not fired.

So, I would recommend you to use different approach. You could always check whether the Request.Form collection contains UniqueID information of a clicked button and take action acordingly, for example:

if (!String.IsNullOrEmpty(Request.Form[this.custombtn.UniqueID]))
{
// code ...
}
...
}


Best regards,
Michal Legen