파일 업로드 버튼이있는 webform이 있습니다.asp.net jquery newbie question
버튼을 클릭하여 파일을 업로드 할 때 C# 코드 뒤에 jquery를 실행하기 전에 첫 번째을 실행하려는 이벤트 처리기의 일부 코드가 들어 있습니다.
<script>
$(document.ready() {
$('.uploadButton').click(function() {
// do some additional processing *AFTER* code behind stuff executes
});
}
</script>
// In my ASP.NET C# code behind
protected void uploadButton_Click(object sender, EventArgs e)
{
// Code to fire off here *FIRST* before jquery executes
}
이렇게 할 수 있나요? 자바 스크립트에서 jquery 게시물을 구현할 수 있다는 것을 알고 있지만 대부분의 코드가 이미 레이아웃되어 있으므로 (클라이언트 요청에서이 코드를 변경하고 있기 때문에)이 같은 것이 가능한지 궁금합니다.