calling a void method from serverside using html hyperlink in design view
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().
精彩评论