ASP.NET : Using ClientID in external JavaScript files(reducingcomplexity.com)

submitted by edindedind(95) 2 years, 9 months ago

In the past year I have been writing a lots of JavaScript code. Mostly because I have been working on same ASP.NET WebForms application for more then 10 months by now. We use JavaScript for things like validation, async HTTP requests etc. To keep our code clean,we try to keep all of our JavaScript in external files. The problem with external JavaScript files is that you cannot use server tags in them, so you cannot obtain ClientID of ASP.NET controls by using <%= control.ClientID %> syntax...

1 comment |category: |Views: 96

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by BognitBognit(2125) 2 years, 9 months ago 0

I think ASP.NET 4.0 is going to take care of this? Cool article :-)

Reply

information Login or create an account to comment on this story