I created ASP.NET user control with javascript function :
<%@ Control Language=\"C#\" AutoEventWireup=\"true\" CodeBehind=\"TestControl.ascx.cs\" Inherits
You need to use this.id
this.id
$(document).ready(function () { load_v<%= this.ID %> }); function load_v<%= this.ID %>(fromclick) { alert('anything'); }
So that even if you need two or more same controls in the same page they will have different ids. Hope this Helps! cheers :)