using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Xml.Xsl; public partial class paramotsing : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { XsltArgumentList parameetrid = new XsltArgumentList(); // parameetrid.AddParam("aasta", "", "2007"); if (TextBox1.Text.Trim().Length == 0) { parameetrid.AddParam("aasta", "", DateTime.Now.Year.ToString()); } else { parameetrid.AddParam("aasta", "", TextBox1.Text); } Xml1.TransformArgumentList = parameetrid; } }