I'm having two connected web parts, the consumer has a button that when I click refreshs the 开发者_运维技巧page, which in turns kills the connection. I need to use the passed value from the provider in the btn_Click event. How can I do that?. Is this possbile?.
Create the event handler in the provider and register it as the handler for the button in the consumer. What you describe reminds me of how custom web part editors work, which happens to be what I'm coding right now.
Take a look at this MSDN magazine article. It's not specific to SharePoint but all the principles apply
Introducing ASP.NET Web Part Connections http://msdn.microsoft.com/en-us/magazine/cc188696.aspx
精彩评论