this is a little bit difficult question
I have asp:button ,inside a repeater
<asp:button id="tdb1" commandname="update" text=update runat=server ></asp:button>
under this button there is a jquery line script, that determine the classes of the button.
like this:
<script type="text/javascript">
$("#<%=tdb1.ClientID%>").button({icons:{primary:"ui-icon-refresh"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");
</script>
I am getting error from the compailer : Name ‘tdb1’ is not declared.
if I change the button to regular button(not asp)the jquery works just fine ,but then I can’t capture the event of the button, on server side.
What can I do?
Thanks for any help
One thing I’ve learned using .NET is that you’re better of using class names for everything. Using IDs will drive you mad because .NET wants to own them all.