开发者

Pass through more then one argument with a Javascript .NET postback

开发者 https://www.devze.com 2022-12-31 07:02 出处:网络
I have implemented the javascript function that allows me to do a .NET (4.0) postback Javascript __doPostBack(\'__Page\', argument)

I have implemented the javascript function that allows me to do a .NET (4.0) postback

Javascript

__doPostBack('__Page', argument)

C#

pu开发者_如何学Goblic void RaisePostBackEvent(string eventArgument) { //something happens }

Is it possible to pass through more then one argument?


You can pass a string of items separated with, for example, comma and in your code-behind extract them with eventArgument.Split(',')

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号