botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Bot c#: How can i call method from button click and pass object

Open msBot1111 opened this issue 9 years ago • 6 comments

I'm creating Bot in c#, which will show to users some search results and after that i need to ask the user if the answer is ok or not, to get feedback from users. I want to have button yes/no and if user clicks yes to save the results from the search.

msBot1111 avatar Jan 05 '17 12:01 msBot1111

Have you looked at Forms? I guess what you are looking for is prompt.

maxpert avatar Jan 05 '17 17:01 maxpert

Actually, you can use Prompt.Confirm - much simpler - to collect a yes/no answer with buttons.

willportnoy avatar Jan 05 '17 21:01 willportnoy

yes, I've tried Prompt.Confirm but there i can't pass the result from search to call another method

msBot1111 avatar Jan 09 '17 08:01 msBot1111

@msBot1111 did that solve your issue?

maxpert avatar Jan 10 '17 07:01 maxpert

yes thanks

msBot1111 avatar Jan 10 '17 08:01 msBot1111

I'm going to close this issue for now, but feel free to open a new issue for further discussion.

willportnoy avatar Jan 17 '17 16:01 willportnoy