开发者

calling a void method from serverside using html hyperlink in design view

开发者 https://www.devze.com 2023-02-27 07:55 出处:网络
Hi I have got a simple query , i m not able to call the method from html hyperlink tab , below is the code:

Hi I have got a simple query , i m not able to call the method from html hyperlink tab , below is the code:

<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 bindDat开发者_开发技巧a()
 { caravans.InsertImages() }


Check out PageMethods, and jQuery's ajax().

0

精彩评论

暂无评论...
验证码 换一张
取 消