| Other ASP.NET Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| When a dropdownlist has been added by some records and it
has been binded why it is not executing i'm facing this
error pls help me ?
if (is!pageposback)
{
arraylist books = new arraylist;
books.add ("gone with the wind");
books.add ("rahulsriramprakash");
books.add ("vishal");
dropdowndisplay.datasource=books;
dropdowndisplay.databind();
}
The error is :
1) The dropdowndisplay does not exist.
| Netsweeper | 3 |
| what is session ?how sessions are handeled in application?
write the clauses of sql server in their order. | Olive-Tech | 2 |
| Can session variables be accessed from code-behind? | Microsoft | 2 |
| what is Disco?what it will do? | Microsoft | 1 |
| What property must you set, and what method must you call in
your code, in order to bind the data from some data source
to the Repeater control? | | 3 |
| Is it possible to use two versions of assembly at the same
time?If possible explain with code? | Tech-Mahindra | 2 |
| What is sequence of code in retrieving data from database? | Accenture | 3 |
| How to merge 2 tables fields in DataTable in asp.net | Wipro | 3 |
| IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE. | | 1 |
| which one is faster execute reader, scalar, execute non
query ? | Minecode | 13 |
| What is difference between machine.config and Web.Config? | Accenture | 3 |
| How do you perform validations ? | Microsoft | 1 |
| Can you edit data in the Repeater control? | | 8 |
| Is data can be edited in the Repeater control? | | 2 |
| what is the difference b/w .net 1.1 and 2.0 ? | Polaris | 1 |
| How do you register the .Net Component or Assembly? | Accenture | 1 |
| You are using the try? catch block seen in the following
code segment, but no exceptions are ever caught by the catch
block. What is the problem?
SqlConnection cn =new sqlConnection(strSQL);
SqlDataSet ds;
try
{
cn.open(); //perform the data processing steps
??..
} catch (OleDbException e) {
?..
}
a) The exception class is wrong; it should be sqlErrors.
b) The exception class is wrong; it should be
sqlSyntaxExceptios.
c) The exception class is wrong; it should be sqlExceptions.
d) The exception class is wrong; it should be sqlExcptions.
| Syntax-Softtech | 2 |
| What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other? | | 5 |
| What is the function of the CustomValidator?
a) It allows for custom C# client-side code to validate
entries in a control.
b) It allows for a custom mixture of validator controls to
use one central control for the display of messages.
c) It uses scripted client-side code to validate the entry
in a control.
d) It uses server-side code to validate the entry in a control.
| Syntax-Softtech | 1 |
| Compare and contrast between inline and code behind - which
one is best? | | 1 |
| |
| For more ASP.NET Interview Questions Click Here |