Calling a javascript method with arguments / values from code-behind
<p>Is there a way for me to call a javascript method from code-behind that takes two arguments/values? Please check the following code:</p>

<pre><code>private void ddl_Eval_SelectedIndexChanged (Object sender, System.EventArgs e)
{

    dtEval = new DataTable();
    dtEval = data.GetEvaluation2();
    DataView dvEval = dtEval.DefaultView;

    string xmlDoc = String.Empty;

    foreach (DataRowView drvEval in dvEval)
    {
        if (drvEval.Row["EvaluationID"].ToString() == ddl_Eval.SelectedValue.ToString())
        {
            xmlDoc = drvEval.Row["EvalAnswers"].ToString();
        }
    }

    XDocument xdoc = new XDocument();
    xdoc = XDocument.Parse(xmlDoc);

    foreach (XElement child in xdoc.Root.Elements("Answer"))
    {
        //Response.Write(child.Attribute("item").Value + " " + child.Value + "&lt;br /&gt;");

        //THIS IS WHERE I NEED TO PUT THE CODE SO I CAN SEND THE VALUE
        //OF THE ATTRIBUTE "item" AND THE VALUE OF THE child node itself.

    }

}
</code></pre>

<p>And here's the XML string:</p>

<pre><code>&lt;ANSWERS&gt;
  &lt;Answer item="ddl_3"&gt;A&lt;/Answer&gt;
  &lt;Answer item="ddl_8"&gt;A&lt;/Answer&gt;
  &lt;Answer item="ddl_13"&gt;Y&lt;/Answer&gt;
  &lt;Answer item="ddl_16"&gt;Y&lt;/Answer&gt;
  &lt;Answer item="ddl_19"&gt;Y&lt;/Answer&gt;
  &lt;Answer item="ddl_22"&gt;N&lt;/Answer&gt;
  &lt;Answer item="ddl_26"&gt;Y&lt;/Answer&gt;
  &lt;Answer item="ddl_30"&gt;N&lt;/Answer&gt;
  &lt;Answer item="ddl_34"&gt;Y&lt;/Answer&gt;
  &lt;Answer item="ddl_38"&gt;N&lt;/Answer&gt;
  &lt;Answer item="ddl_42"&gt;StarLight&lt;/Answer&gt;
&lt;/ANSWERS&gt;
</code></pre>

<p>And this is the page wherein I want javascript to change the selected values of the <code>select</code> controls. <a href="http://imgur.com/HB99v" rel="nofollow">Screenshot</a></p>

<p>Is it possible? I want to send those two arguments/values so that javascript can change the selected values of the <code>&lt;select&gt;</code> controls I have on the page.</p>
