asp with javascript
<p>Hi guys i have a javascript function:</p>

<pre><code>function saveClose()
    {
        getSelectedDates();
        var test = document.getElementById('&lt;%=hiddenInput.ClientID%&gt;');
        if (test.value != 'false')
        {
            showYesNo('Save/Close', 'Would you like to save and close this Campaign?');
            document.getElementById('popupControl').style.display = 'block';
            document.getElementById('divEntryMain').style.display = 'none';
            document.getElementById('divBuilderMain').style.display = 'none';
        }
        else
        {
            showOk('Save/Close', 'Please fill in all mandatory fields');
            document.getElementById('popupControl').style.display = 'block';
            document.getElementById('divEntryMain').style.display = 'none';
            document.getElementById('divBuilderMain').style.display = 'none';
        }
    }
</code></pre>

<p>and i want to execute this function in my code behind button click even..but it has to be executed after the code in the code behind..please assist..
My code behind button click..</p>

<pre><code>protected void btnSaveClose_Click(object sender, EventArgs e)
    {

        if (Page.IsCallback || Page.IsPostBack)
        {
            string[] arguments = Request.Params["__EVENTARGUMENT"].Split(',');
            if (arguments.Length == 2)
            {
                GetDataFromFileds(Request.Params["__EVENTARGUMENT"].Split(','));
            }
            return;
        }

    }
</code></pre>

<p>Thanks guys!</p>
