Passing more event arguments on postback

Jun 4, 2012 at 3:16 PM

Hi all, 

After searching all over the internet over the past 2 days on how to wire post back events to a button control on the ribbon, I landed up here and fluent ribbon seems to be a savior. 

However, I still have a problem of not able to pass more than 1 event arguments over postback. I have 2 textboxes and a button in the ribbon and I want to use the values of these text boxes and perform some operation in the button click event.

Please share your thoughts on how this can be done!

Regards

kothand

Jun 4, 2012 at 3:20 PM

Hello,

What I do is am pasing multiple arguments in string separated by "|".

Hope this helps.

Ivan Bondy

Jun 5, 2012 at 9:52 AM
Edited Jun 5, 2012 at 9:54 AM

hi, kothand!

I agree with Ivan, the only way to manage multiple arguments is to serialize them on client, pass through eventparam and deserialize back on server side.

For this purpose, I would use Sys.Serialization.JavaScriptSerializer and System.Web.Script.Serialization.JavaScriptSerializer on client and on server side correspondingly.

Though, for simple scenarios, separating by "|" will do.