aspnet中如何使一個button先執行后臺的Click再執行javascript的onclick?
可以在后臺代碼里鑲嵌JS前臺寫好代碼functionxxx(){------}Button事件:protectedvoidbutton_Click(objectsender,EventArgse){//////前面寫后臺代碼,后面鑲嵌JSClientScript.RegisterStartupScript(Page.GetType(),"","xxx();",true);}
aspnet中如何使一個button先執行后臺的Click再執行javascript的onclick?
可以在后臺代碼里鑲嵌JS前臺寫好代碼functionxxx(){------}Button事件:protectedvoidbutton_Click(objectsender,EventArgse){//////前面寫后臺代碼,后面鑲嵌JSClientScript.RegisterStartupScript(Page.GetType(),"","xxx();",true);}