منتدى قسم تكنولوجيا المعلومات في مدرسة الدوحة الثانوية المستقلة للبنين
علمت أن رزقي لن يأخذه غيري فاطمأن قلبي

قم وذق طعم الصلاة في دجى الليل الطويل

قم وجاهد في الحياة ان مثوانا قليل

منتدى قسم تكنولوجيا المعلومات في مدرسة الدوحة الثانوية المستقلة للبنين

من أفضل مدارس قطر
 
الرئيسيةمكتبة الصوربحـثالتسجيلدخولاليومية
قال الامام احمد بن حنبل: إن لنا إخوان لانراهم إلا مره كل سنه , نحن اوثق بمودتهم ممن نراهم كل يوم .أسعد الله قلوبا طاهره إن وصلناها شكرت وإن قصرنا عذرت
من العظماء من يشعر المرء فى حضرته أنه صغير ولكن العظيم بحق هو من يشعر الجميع في حضرته بأنهم عظماء
كم في المقابر من يحسدونك على هذه الأيام والليالي التي تعيشها يتمنون لو تسبيحة أو استغفار ينفعهم عند ربهم أو سجدة تنير قبورهم أو صدقة تظلهم بين يدي الملك الجبار .. فقط تذكر .. ولا تضيع الفرصة التي بين يديك

شاطر | 
 

 Asp.Net Interview 2

استعرض الموضوع السابق استعرض الموضوع التالي اذهب الى الأسفل 
كاتب الموضوعرسالة
A.Tamimi
Admin
avatar

Posts : 1593
أهمية العضو : 16
Join date : 13/11/2008
Age : 32
Location : Jordan

مُساهمةموضوع: Asp.Net Interview 2   الجمعة نوفمبر 14, 2008 1:43 am

ASP. NET


(I) Do session use cookies?

(I)How can we force all the validation control to run?

(B)How can we check if all the validation control are valid and proper?

(A) If client side validation is enabled in your Web page, does that mean server side code is not run.

(A)Which JavaScript file is referenced for validating the validators at the client side?

(B)How to disable client side script in validators?

(A)How can I show the entire validation error message in a message box on the client side?

(B)You find that one of your validations is very complicated and does not fit in any of the validators, what will you do?

(B) How can we kill a user session?

(I) How do you upload a file in ASP.NET?

(I) How do I send email message from ASP.NET?

(A)What are different IIS isolation levels?

(A)ASP used STA threading model, what is the threading model used for ASP.NET.

(A)What is the use of <%@ page aspcompat=true %> attribute?

(B) Explain the differences between Server-side and Client-side code?

(I)Can you explain Forms authentication in detail?

(A)How do I sign out in forms authentication?

(A)If cookies are not enabled at browser end does form Authentication work?

(A)How to use a checkbox in a data grid?

(I)What are the steps to create a windows service in VB.NET?

(A) What is the difference between “Web farms” and “Web garden”?

(B) What is the main difference between Grid layout and Flow Layout?

(I) What’s the difference between trace and debug in ASP.NET?

(A) How do you enable tracing in on an ASP.NET page?

(B) Which namespace is needed to implement debug and trace ?

(A) Can you explain the concept of trace listener?

(I) What are trace switches?

Introduction

In this section we will touch base on one of important concepts in
ASP. Net. You can download my .NET Interview Question PDF from http://www.questpond.com/SampleDotNetInterviewQuestionBook.zip .

I have also put all these design patterns in a video format and uploaded on http://www.questpond.com/FreeDesign1.htm . You can visit http://www.questpond.com and download the complete architecture interview questions PDF which covers SOA , UML , Design patterns , Togaf , OOPs etc.

You can download the software architecture interview questions PDF

Download Software Architecture Interview Questions

Previous parts of my Interview questions series for Architects

Part 1 - SoftArchInter1.aspx

Part 2 - SoftArch2.aspx

Part 3 - SoftArch3.aspx

Part 4 - SoftArch4.aspx

UML interview questions part 1 SoftArch5.aspx

Happy job hunting......

(I) Do session use cookies?

Twist:- How can we make session to not to use cookies ?
Left to the user, you will enjoy to find this answer.

(I)How can we force all the validation control to run?

Page.Validate

(B)How can we check if all the validation control are valid and proper?

Using the Page.IsValid () property you can check whether all the validation are done.

(A) If client side validation is enabled in your Web page, does that mean server side code is not run.

When client side validation is enabled server emit’s JavaScript
code for the custom validators. However, note that does not mean that
server side checks on custom validators do not execute. It does this
redundant check two times, as some of the validators do not support
client side scripting.

(A)Which JavaScript file is referenced for validating the validators at the client side?

WebUIValidation.js JavaScript file installed at “aspnet_client”
root IIS directory is used to validate the validation controls at the
client side

(B)How to disable client side script in validators?

Set ‘EnableClientScript’ to false.

(A)How can I show the entire validation error message in a message box on the client side?

In validation summary set “ShowMessageBox” to true.

(B)You find that one of your validations is very complicated and does not fit in any of the validators, what will you do?

Best is to go for CustomValidators. Below is a sample code
for a custom validator, which checks that a textbox should not have
zero value

ErrorMessage="Number not divisible by Zero"
ControlToValidate="txtNumber"
OnServerValidate="ServerValidate"
ClientValidationFunction="CheckZero" />

Input:

(B) How can we kill a user session?

Session abandon

(I) How do you upload a file in ASP.NET?

I will leave this to the readers … Just a hint we have to use System.Web.HttpPostedFile class.

(I) How do I send email message from ASP.NET?

ASP.NET provides two namespace SystemWEB.mailmessage class and
System.Web.Mail.Smtpmail class. Just a small homework creates a Asp.NET
project and send a email at shiv_koirala@yahoo.com. Do not Spam.(A)ASP used STA threading model, what is the threading model used for ASP.NET.

ASP.NET uses MTA threading model.

(A)What is the use of <%@ page aspcompat=true %> attribute?

This attribute works like a compatibility option. As mentioned
before ASP worked in STA model and ASP.NET works in MTA model, but what
if your ASP.NET application is using a VB COM component. In order that
VB COM runs properly in ASP.NET threading model, we have to set
attribute. After defining the ASPCOMPAT directive attribute ASP.NET
pages runs in STA model thus building the compatibility between ASP.NET
and old COM components that does not support MTA model.

(B) Explain the differences between Server-side and Client-side code?

Server side code is executed at the server side on IIS in ASP.NET framework, while client side code is executed on the browser.

(I)Can you explain Forms authentication in detail?

In old ASP if you where said to create a login page and do
authentication you have to do hell lot of custom coding. Now in ASP.NET
that has made easy by introducing Forms authentication. So let us see
in detail what form authentication is.
Forms authentication uses a
ticket cookie to see that user is authenticated or not. That means when
user is authenticated first time a cookie is set to tell that this user
is authenticated. If the cookies expire then Forms authentication
mechanism sends the user to the login page.
Following are the steps, which defines steps for Forms authentication:-

Configure Web.config file with forms authentication. As shown below in
the config file you can see we have give the cookie name and loginurl
page.



loginUrl="login.aspx"
protection="All"
timeout="30"
path="/" />


• Remove anonymous access to the IIS web application, following are changes done to web.config file.
• Create the login page, which will accept user information. You
will have create your login page that is the Login.aspx, which will
actually take the user data.
• Finally a small coding in the login button.
Let us assume that the login page has two textboxes TX name and txtapssword.
Also, import System.Web.Security and put the following code in login button of the page.
If Page.IsValid Then
If FormsAuthentication.Authenticate(txtName.Text, txtPassword.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtName.Text, False)
Else
lblStatus.Text = "Error not proper user"
End If
End If

(A)How do I sign out in forms authentication?

FormsAuthentication.Signout ()

(A)If cookies are not enabled at browser end does form Authentication work?

No, it does not work.

(A)How to use a checkbox in a data grid?

Twist: - How can I track event in checkbox, which is one of the columns of a data grid?
Note: - This is normally asked when the interviewer want to see that have you really worked practically on a project.

Following are the steps to be done:-
• In ASPX page you have to add Item template tag in data grid.

If you look at the Item template, we have “OnCheckChanged”
event. This “OnCheckChanged” event has “Check Clicked” subroutine is
actually in behind code. Note this method, which is in behind code,
should either be “protected” or “public”
Following below is the subroutine, which defines the method

Protected Sub Check Clicked (By Val sender As Object, By Val e As EventArgs)
‘Do something
End Sub

The
above steps should be defined in short to the interviewer, which will
give a quick feeling of your practical experience with ASP.NET’

(B) What is the main difference between Grid layout and Flow Layout?

Grid Layout provides absolute positioning for controls placed on
the page. Developers that have their roots in rich-client development
environments like Visual Basic will find it easier to develop their
pages using absolute positioning, because they can place items exactly
where they want them. On the other hand, Flow Layout positions items
down the page like traditional HTML. Experienced Web developers favor
this approach because it results in pages that are compatible with a
wider range of browsers.
If you look in to the HTML code created by
absolute positioning you can notice lot of DIV tags. While in Flow
layout, you can see more of using HTML table to position elements,
which is compatible with wide range of browsers.




ليتك تحلو والحياة مريره وليتك ترضى والغنام غضاب
وليت الذى بينى وبينك عامر وبينى وبين العالمين خراب
إذا صحّ منك الود فالكل هيّن وكل الذى فوق التراب تراب
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو http://falcons.aforumfree.com
M.ALS3OD

avatar

Posts : 854
أهمية العضو : 0
Join date : 13/09/2009
Age : 23
Location : AMMAN

مُساهمةموضوع: رد: Asp.Net Interview 2   السبت سبتمبر 19, 2009 2:37 am

مـــشـــكـــورررررررررررر

_________________
فــي تــوقــيــع بــس ......
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو
 
Asp.Net Interview 2
استعرض الموضوع السابق استعرض الموضوع التالي الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» Syed Sabih Rehmani Interview
» ادرب واشتغل فى شركة جيزة سيستمز
» Asp.Net Interview 1

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
منتدى قسم تكنولوجيا المعلومات في مدرسة الدوحة الثانوية المستقلة للبنين :: ----§§§§ المنتديات التقنية والبرمجية §§§§---- :: قسم الدوت نت لتطوير الويب والديسكتوب-
انتقل الى: