Your Ad Here

Monday, March 2, 2009

Which is the default Data types in VBScript

Question :Which is the default Data types in VBScript?
Answer :Variant.

When inserting strings into a SQL table in ASP what is the risk and how can you prevent it

Question :When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?
Answer :SQL Injection, to prevent you probably need to use Stored Procedures instead of inline/incode SQL

What is a class in CSS

Question :What is a class in CSS?
Answer :Answer1 A class allows you to define different style characteristics to the same HTML element. Answer2 class is a child to the id, id should be used only once, a css class can be used multiple times: div id=”banner” p class=”alert”

How do you get the value of a combo box in Javascript

Question :How do you get the value of a combo box in Javascript?
Answer :Answer1. document.forms[’formName’].elements[’comboName’].options[i].value Answer2. document.form_name.element_name.value

What is string concatenation function in VBScript

Question :What is string concatenation function in VBScript?
Answer :the ampersand symbol and ampersand space underscore across multiple lines

What variable can you use to share info across the whole application for one user

Question :What variable can you use to share info across the whole application for one user?
Answer :Use the sessions object

How can you have different number of cells for each row of a table in HTML

Question :How can you have different number of cells for each row of a table in HTML?
Answer :using colspan and rowspan