Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MasterPage.Args Property

A convenience, case-insensitive table that may be used to e.g. pass data into SpEL expressions"/>.

[Visual Basic]
Public ReadOnly Property Args() As IDictionary
   Public Get
   End Get
End Property
public IDictionary Args { public get; }


By default, e.g. SetResult passes the control instance into an expression. Using Args is an easy way to pass additional parameters into the expression // config: <property Name="Results"> <dictionary> <entry key="ok_clicked" value="redirect:~/ShowResult.aspx?result=%{Args['result']}" /> </dictionary> </property> // code: void OnOkClicked(object sender, EventArgs e) { Args["result"] = txtUserInput.Text; SetResult("ok_clicked"); }

See Also

MasterPage Class | Spring.Web.UI Namespace