在设计视图中使用html超链接从服务器端调用void方法

时间:2011-04-18 16:18:57

标签: javascript jquery asp.net serverside-javascript

您好我有一个简单的查询,我无法从html超链接标签调用该方法,下面是代码:

<a href="#" id="startUploadLink">Start Upload</a>

     $("#startUploadLink").click(function () {
         $('#<%=FileUpload1.ClientID%>').uploadifyUpload();
          //I want to call a method here which is on server side which is bindData()
           return false;
     });

aspx.cs:

protected void bindData()
 { caravans.InsertImages() }

1 个答案:

答案 0 :(得分:0)