Browse by Tags
All Tags »
JavaScript (
RSS)
Let's say I have a page with some kind of image on it. Suppose we want to create a control which performs zoom on the image according to a user defined borders (User drags the mouse from one point on the image to another and creates a box). In order to do this we need to use events and scripts so we could know what area in the image the user selected. When adding event handlers to client events in a Html or ASP.NET page you can use an object called event . Among it's properties there are a couple...
One of the tools provided with Visual Studio 2005 is the Script Explorer. This tool can be used to view all the JavaScript that have been loaded so far, accessing the functions and objects and debug the script simply by using breakpoints. You can use it when you are debug mode in Visual Studio : The explorer looks like this : You can see the pages that have been loaded so far and the script files.Here you can see I have a JavaScript file named "testscripts.js" that already have been loaded. Clicking...
Suppose you a have a text box in an ASP.NET page. This text box needs to contains calculated values from other inputs that will be received from the user (other text boxes). The user can not change the text in the text box directly. How do you implement that ? By using the ReadOnly property in the text box. That's what one of the programmers on my team did a long time a go. Recently a bug in his page was found : After a post-back the values in the read-only text box have been reset, which is a problem...