C#後台加入script語法,並做button click動作(postback)

摘要: C#後台加入script語法,並做button click動作(postback)

 後台加入script語法,並做button click動作(postback)
 
ClientScript.RegisterStartupScript(Page.GetType(),
    "AutoPostBackScript", "<script>document.getElementById('btnQuery').click();</script>");