Reputation: 722
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?.
Upvotes: 0
Views: 301
Reputation: 6859
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
Upvotes: 0
Reputation: 12334
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.
Upvotes: 0