is it possiable to call our server side(like gridview events) event from javascript
<pre><code>&lt;img src='&lt;%# "ThumbNailImage.ashx?ImID="+ Eval("ImageID")  %&gt;' id="ImgShow" runat="server"
                                                align="top" style="border: solid 1px Gray;" height="150"  
                                                width="170"  onclick="javascript:myFunction();" &gt;


protected void gvImages_SelectedIndexChanged(object sender,  EventArgs e)
    {

        string s = gvImages.SelectedValue.ToString();
        SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString);
        SqlCommand command = new SqlCommand("SELECT imagename,ImageID from [Image2] where ImageID='"+s+"' ", connection);
        SqlDataAdapter ada = new SqlDataAdapter(command);
        ada.Fill(dt);
        this.dvCustomerDetail.Visible = true;
        dvCustomerDetail.DataSource = dt;
        dvCustomerDetail.DataBind();
        this.updPnlCustomerDetail.Update();
        this.mdlPopup.Show();

    }

 &lt;script  type ="text/javascript" &gt;
    function myFunction()
    {
    debugger ;
document.getElementById('&lt;%=gvImages.ClientID%&gt;').SelectedIndexChanged();
//__doPostBack('Button1','OnClick');

}
    &lt;/script&gt;
</code></pre>

<p>now in  control i a calling my javscript function from there  i need to call my gvImages_selected index change event.</p>

<p>which is not happening is there any issue in my javscript
any help would be great thank  you</p>
