<< < 1 2 3 4 5 > >>   Sort: Rank

You have an ASP.NET web application running on a web-farm ...
You have an ASP.NET web application running on a web-farm that does not use sticky sessions - so the requests for a session are not guaranteed to be served the same machine. Occasionally, the users get error message Validation of viewstate MAC failed. What could be one reason that is causing this er...
2008-11-11, 4354👍, 0💬

What does the term sticky session mean in a web-farm scenario?
What does the term sticky session mean in a web-farm scenario? Why would you use a sticky session? What is the potential disadvantage of using a sticky session? Sticky session refers to the feature of many commercial load balancing solutions for web-farms to route the requests for a particular sessi...
2008-11-04, 4512👍, 0💬

What is "this" keyword?
What is "this" keyword? It refers to the current object.
2008-11-04, 4596👍, 0💬

What’s a quick way to append a value to an array?
What’s a quick way to append a value to an array? arr[arr.length] = value;
2008-10-28, 4365👍, 0💬

How do you assign object properties?
How do you assign object properties? obj["age"] = 17 or obj.age = 17.
2008-10-28, 4479👍, 0💬

How do you create a new object in JavaScript?
How do you create a new object in JavaScript? var obj = new Object(); or var obj = {};
2008-10-21, 4393👍, 0💬

What does JavaScript null mean?
What does JavaScript null mean? The null value is a unique value representing no value or no object. It implies no object, or null string, no valid boolean value, no number and no array object.
2008-10-21, 4367👍, 0💬

Name the numeric constants representing max, min values
Name the numeric constants representing max, min values Number.MAX_VALUE Number.MIN_VALUE
2008-10-14, 4182👍, 0💬

How to comment JavaScript code?
How to comment JavaScript code? Use // for line comments and /* */ for block comments
2008-10-14, 4288👍, 0💬

How to hide JavaScript code from old browsers that does not support JavaScript?
How to hide JavaScript code from old browsers that does not support JavaScript? Use the below specified style of comments: &lt;script language=javascript> &lt;!-- javascript code goes here // --&gt; &lt;/script> or Use the &lt;NOSCRIPT> and &lt;/NOSCRIPT> tags and code the di...
2008-10-07, 4331👍, 0💬

How to put a close window link on a page?
How to put a "close window" link on a page? &lt;a href='javascript:window.close( )'class='mainnav'> Close &lt;/a>
2008-10-07, 4373👍, 0💬

What looping structures are there in JavaScript?
What looping structures are there in JavaScript? for, while, do-while loops, but no foreach.
2008-09-30, 4557👍, 0💬

How to Accessing HTML Elements using javascript?
How to Accessing HTML Elements using javascript? To do something interesting with HTML elements, we must first be able to uniquely identify which element we want. In the example below: &lt;body> &lt;form action=""> &lt;input type="button" id="useless" name="mybutton" value="doNothing" />...
2008-09-23, 4982👍, 0💬

What does the EnableViewStateMac setting in an aspx page do?
What does the EnableViewStateMac setting in an aspx page do? Setting EnableViewStateMac=true is a security measure that allows ASP.NET to ensure that the viewstate for a page has not been tampered with. If on Postback, the ASP.NET framework detects that there has been a change in the value of viewst...
2008-09-23, 4774👍, 0💬

What is the difference between Session State and ViewState?
What is the difference between Session State and ViewState? ViewState is specific to a page in a session. Session state refers to user specific data that can be accessed across all pages in the web application.
2008-09-16, 4752👍, 0💬

How about 2+5+8?
How about 2+5+"8"? Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.
2008-09-16, 4858👍, 0💬

What Web sites do you feel use JavaScript most effectively
What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst? The best sites are the ones that use JavaScript so transparently, that I'm not aware that there is any scripting on the page. The worst sites are those that try to impress me with how much scripting...
2008-09-09, 4721👍, 0💬

Taking a developer’s perspective, do you think that that JavaScript is easy to learn and use?
Taking a developer’s perspective, do you think that that JavaScript is easy to learn and use? I think JavaScript is easy to learn. One of the reasons JavaScript has the word "script" in it is that as a programming language, the vocabulary of the core language is compact compared to full-fledged prog...
2008-09-09, 4779👍, 0💬

Can JavaScript code be broken in different lines?
Can JavaScript code be broken in different lines? Breaking is possible within a string value by using a backslash \ at the end of the line. But this technique can not be used within any other values. For example: document.write("Hello \ world");
2008-09-03, 4763👍, 0💬

What is a prompt box?
What is a prompt box? A prompt box allows the user to enter input by providing a text box.
2008-09-03, 4738👍, 0💬

What is the difference between an alert box and a confirmation box?
What is the difference between an alert box and a confirmation box? An Alert box displays only one button which is the OK button, whereas a Confirm box displays two buttons namely OK and Cancel.
2008-08-26, 5249👍, 0💬

How to access an external JavaScript file that is stored externally and not embedded?
How to access an external JavaScript file that is stored externally and not embedded? This can be achieved by using the following tag between head tags or between body tags. &lt;script src="MyScripts.js">&lt;/sc ript>where MyScripts.js is the external JavaScript file to be accessed.
2008-08-26, 4858👍, 0💬

How to set the focus in an element using JavaScript?
How to set the focus in an element using JavaScript? Use the "focus()" method of the element object: &lt;script> function setFocus() { if(focusElement != null) { document.forms[0].elements["my elementname"].focus();} } &lt;/script>
2008-08-19, 4599👍, 0💬

How to determine the state of a checkbox using JavaScript?
How to determine the state of a checkbox using JavaScript? Use the "checked" property of the checkbox object. For example: var checkedP = window.document.getElementById ("myCheckBox").checked;
2008-08-19, 4789👍, 0💬

<< < 1 2 3 4 5 > >>   Sort: Rank