Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoViewDataRenderer Class : HandleClientRequest Method |
Hashtable
that holds name/value pairs from parsing the evtargs string
'Declaration Public Overridable Sub HandleClientRequest( _ ByVal evtargs As String, _ ByVal parameters As Hashtable _ )
public virtual void HandleClientRequest( string evtargs, Hashtable parameters )
Hashtable
that holds name/value pairs from parsing the evtargs stringPage
or other context in which to define a Updated event handler. By default this method does nothing. You can override this method to handle "request" queries in much the same manner that RaisePostBackEvent does for queries such as "zoom" and "act". For example, if you had a JavaScript function that wanted to change the brush color of the current selection:
function changeSelectionColor(colorname) { goRequest('MyView', 'color=' + colorname); }And you invoked this function, for example by using a button:
Then you could override this method to handle the request:
public override void HandleClientRequest(String evtargs, System.Collections.Hashtable parameters) { String color = (String)parameters["color"]; if (color != null) { Color c = Color.FromName(color); foreach (GoObject obj in this.View.Selection) { GoShape shape = obj as GoShape; if (shape != null) { shape.BrushColor = c; } } } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2