Asp.net interview questions

Source: Internet
Author: User

Part 1: questions about C # And Asp.net
1. Briefly describe the differences between private and protected

2. Differences between the following functions:
Private void test (string Str ){...}
Private void test (ref string Str ){...}
Private void test (out string Str ){...}

3. WriteCode: Get the server time and display it (in the pop-up message box). It must be fully implemented on the server side (Tip: Use the response. Write () method in C)

4. give reasons for the following errors or errors (written in this row)
Class Test
{
Int X;
Static int y;
Void F (){
X = 1; // OK
Y = 1; // OK
}
Static void g (){
X = 1; // Error
Y = 1; // OK
}
Static void main (){
Test T = new test ();
T. X = 1; // OK
T. y = 1; // Error
Test. x = 1; // Error
Test. y = 1; // OK
}
}

4. Briefly Talk about your understanding of polymorphism and a simple example of how to implement polymorphism.

Part 2: javascript-related

1. explain the meaning of the following statements:
A. V1 = opener. V1;

B. If (100 =" 100" ){...}

C. If (100 =" 100" ){...}

D. Function printblank (){
VaR coll = Document. All;
If (Coll! = NULL ){
For (I = 0; I <Coll. length; I ++ ){
If (Coll. Item (I). tagname = "input "){
Coll. Item (I). style. Visibility = "hidden ";
}
}
}
}

2. output results
A. var x = 0/0;
If (X! = X ){
Document. Write ("X! = X ");
} Else {
Document. Write ("x = x ");
}

B. var I = 1;
Switch (I)
{
Case 1:
Case 2: Alert ("good"); break;
Case 3: Alert ("end"); break;
}

3. If a page frequently interacts with the database, but the page cannot be refreshed too badly, what are your best methods?

Part 3: ms SQL Server

1. The following describes the index. Which of the following statements are true? ()
A. indexing can speed up queries
B. indexes may reduce the update speed of values.
C. create as many indexes as possible for the table

2. Use tsql to implement:
A. If a table (Table1) exists, delete it. Otherwise, create a table (assuming that the table has only one varcahr (50) field)
B. use the SELECT statement to return a table (sex char (2) based on the sex value in table 1 (sex bit). The rule is as follows: 'male' is returned when sex is 0 ', if the value is 1, 'femal' is returned '.

3. In the existing table Table1 Table2, the fields are the same ([name] varchar (10). To obtain the names not in Table2 in Table1, write an SQL statement.

4. To write a stored procedure, you must input a table name and return the number of records of the table (assuming that the input table exists in the Database)

1. Test A design model related: the factory mode or command works, which are commonly used.

2. Test A face object, including ref parameter transfer + collection class + serialization

3. Take a modeling test: design of the organization and permissions

4. Actual Operation: Use sqlserver + Asp.net to add, delete, and modify data in a table, and search by PAGE and sort.

How can I solve concurrency with stored procedures and triggers?

 

Let's give you two 8, two, three, and use addition, subtraction, multiplication, division, and calculation.Algorithm!

1. Describe the basic page access process of. Net and the difference between it and the general web access process (please
Describes the main events and processes returned from the web page request to the page );

2. How to understand Web ApplicationsProgram"Stateless programming "?

3. List the webcontrol you are most familiar with and their main functions;

6. In. net, describe the methods to prevent page refreshing from flashing local content (for example
A chat page is automatically refreshed every few seconds. How to Prevent flickering )?

7. Describe how to use the code in. Net Forms authentication mode (the user name is stored in a database
) To implement a role-based authorization?

8. How to configure database connection in vs.net to migrate the development environment to the application environment
Do not modify the program?

9. Assume that there is a database field name. Only the last name of this field needs to be displayed on the webpage, while the name is hidden.
Similar to "Zhang **". Write a custom expression for data binding.

10. Briefly describe the process of creating a user control.

11. Have you ever created a custom webcontrol (note that it is not a user control )? If yes, please
Describes the basic process of creating custom controls. Which methods are used to reload custom controls ?.

12. Describe the main objects that constitute ado.net and their functions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.