Blackpresident
New Member
I'm trying to use this post but, this (System.Web.UI.IPostBackEventHandler.RaisePostBackEvent) is keeping giving me an error.can u tell me whats wrong in it.To call a server side method on a client side event you need to do the following:1- Create the server side method:\[code\]void DoSomething(...) { ... }\[/code\]2- Implement the System.Web.UI.IPostBackEventHandler.RaisePostBackEvent which take one string argument (You can assign the name to the value of this argument).:\[code\]public void RaisePostBackEvent(string eventArgument) { DoSomething(...);}\[/code\]3- Write a script to trigger post back:\[code\]function TriggerPostBack(control, arg){ __doPostBack(control, arg);}\[/code\]4- Call the PostBack trigger function when needed:\[code\]<a .... onclick="TriggerPostBack('control', 'arg')" .. /> \[/code\]POST SOURCE: How to trigger server-side event from javascript?