ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Microsoft-Related
 
  Visual-Basic (595)  C-Sharp (528)  ASP.NET (1113)  VB.NET (112)  COM+ (37)
  ADO.NET (173)  IIS (64)  MTS (2)  Crystal-Reports (48)  BizTalk (17)
  Exchange-Server (75)  SharePoint (2)  Microsoft-Related-AllOther (41)
 


 

Back to Questions Page
 
Question
Please explain about "this" object
Rank Answer Posted By  
 Question Submitted By :: Anitha
This Interview Question Asked @   CTS
I also faced this Question!!   © ALL Interview .com
Answer
It is the reference for the current class.
 
0
Satya Narayan Sahoo
 
 
Answer
object is an instance of class
 
0
Kavitha M.s.
 
 
Question
Hi please tell me what is
ISNOTPOSTBACK,POSTBACK,AUTOPOSTBACK and also the extensions
of aspx,asmx,ascx its urgent plz reply me soon....
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
PostBack means Entire Page will be Refreshed.
NotPstBack means Page willnot be Refreshed.
AutopstBack means Page will be Refreshed by itself.

Extensions:
aspx : WebApplication
ascx : UserControl
asmx : Webservices
 
2
Prashanthi
 
 
 
Answer
!ispostback is to find that the page has posted for first 
time or subsequent requests.for intialisation of controls 
this is used.
autopostback renders javascript function _dopostback which 
submits the page to the server automatically.
postback means submiting the page to server
aspx---active server pages xtention
ascx---active server control xtension
asmx---active server method xtension
 
5
Srikanth
 
 
Answer
!ispostback is to find that the page has posted for first 
time or subsequent requests.for intialisation of controls 
this is used.
autopostback renders javascript function _dopostback which 
submits the page to the server automatically.
postback means submiting the page to server
AutopstBack means Page will be Refreshed by itself
aspx---active server pages xtention,web application
ascx---active server control xtension,user control
asmx---active server method xtension,web services
 
1
Lakshmi
 
 
Question
what is unit testing
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Unit testing is a software development process in which the 
smallest testable parts of an application, called units, 
are individually and independently scrutinized for proper 
operation. Unit testing is often automated but it can also 
be done manually. This testing mode is a component of 
Extreme Programming (XP), a pragmatic method of software 
development that takes a meticulous approach to building a 
product by means of continual testing and revision.
 
0
Sridevi
 
 
Answer
in simple
testing every individual control in the application 
individually
 
0
Kiran
 
 
Question
how to store the value in textbox using delegates if we have
two user control. the value will be called from one user
control to another user control. Loading and unloading will
be done through delegates.
Rank Answer Posted By  
 Question Submitted By :: Mohdahmedali_msa
I also faced this Question!!   © ALL Interview .com
Answer
first user control 
---------------------------

Create an event in the first user control
     public delegate void ctrlchanges(object sender, 
DelegateArgs e);
     public event ctrlchanges ctrlChange;

in the first usercontrols button click
 1) set values to DelegateArgs properties id and name

 2)  then Invoke the delegates
   if (ctrlChange != null)
        {          
            ctrlChange(this, args);
        }

/*
  DelegateArgs  is a class having properties to set and get 
id and name.
  here id and name are set from first user ctrol and get at 
second user control
this is to reflect changes in the first control to second 
control
*/

second user control
--------------------------

in the seccond user control
  write a function to get the DelegateArgs members and set 
to textBoxes

 public void ChangeDetails(object sender, DelegateArgs 
args) 
    {
        txt1.Text = args.Id.ToString();
        txt2.Text = args.Name;
    }


Aspx.cs
---------------
 write the code in the page load
   to access function of second user control from first 
user control

protected void Page_Load(object sender, EventArgs e)
{
               
 ((DelegateCtrl_1)DelegateCtrl_1_1).ctrlChange += new 
DelegateCtrl_1.ctrlchanges(((DelegateCtrl_2)
DelegateCtrl_2_1).ChangeDetails);

}

/*
   DelegateCtrl_1  is the first user control and its id is 
DelegateCtrl_1_1 	
   
  <uc1:DelegateCtrl_1 ID="DelegateCtrl_1_1" 
runat="server" />
*/
 
0
Thomasjoseph Valiyamattam
 
 
Question
how to change a value of particular cell in a data grid
Rank Answer Posted By  
 Question Submitted By :: Mohdahmedali_msa
I also faced this Question!!   © ALL Interview .com
Answer
e.Item.Cells[i].Text="Something"
 
0
Ajaujan
 
 
Answer
private void dataGridView1_CellClick(object sender, 
DataGridViewCellEventArgs e)
        {
             //Edit cell value
             this.dataGridView1[e.ColumnIndex, 
e.RowIndex].Value="Any Thing";

             //find column name of cell
             string strCulumnName = dataGridView1
[e.ColumnIndex, e.RowIndex].OwningColumn.Name;
        }
 
0
Amit Kumar Sharma
[IA Software Services]
 
 
Answer
GridView1.Rows[2].Cells[1].Text = "something";
 
0
Vijay Saxena
[IA Software Services]
 
 
Question
How do you handle unhandled exceptions in ASP.NET?.
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
By giving 
Try
{
   any thing u want to give without exception
}

catch
{
     here exception takes
}
 
0
Madhu
 
 
Answer
try
{
  here u have to write ur code
}
catch (Exception ex)
{
 here if u get any error it was handled by Exception ex
}
 
0
S
 
 
Answer
usually we handle exceptions in an appication using try ...
catch block.....If this structured exception too failed (as 
you said the case of unhandled exception)Then we can define 
user defined execeptions by creating a class which inherits 
the application exception.The exception that contained in 
the method of the class will automatically handled by the 
throw new exception statement ,which contains the error 
message.
 
0
Raviraj
 
 
Question
give the feature of .net2.0 over .net1.1
Rank Answer Posted By  
 Question Submitted By :: Uppalashiva
I also faced this Question!!   © ALL Interview .com
Answer
In .net 2.0, no need to write excess code for the control 
function instead we can set the properties which are 
available directly on the control by right clicking the
control.
In .net 1.0, we need to write code for every of the 
property.
In .net 2.0,GridView control is added with advanced 
features.
 
0
Prashanthi
 
 
Answer
Generics types are introduced in 2.0, Nullable data types
are introduced.IDE is changed drastically for dynamic help.
 
0
Suresh
[Inteq Solution Pvt. Ltd]
 
 
Answer
There are some new features in .Net2.0 are-
there are more then 40 types of new controls are added in
.net 2.0,
like Master page,
Navigation controls-tree view,
login coltrols
Virtul Class concepts
No need to create virtual directory
 
0
Prabhat
[Inteq Solution Pvt. Ltd]
 
 
Answer
In .net 2.0 so many new features are added like:-
Master Pages, Theams & Skins, Advanced controls like Menu 
control, Datasource Controls,
and it provides enhancements towards Caching (disk caching, 
sql server cache invalidation),Profiles concept
Most Importantly "PARTIAL CLASSES"(even now code-behind is 
working based on this Partial Class only....
..............etc
 
0
Harika
[Inteq Solution Pvt. Ltd]
 
 
Answer
exception handing, and ..
 
0
Chinna Chowdary
[Inteq Solution Pvt. Ltd]
 
 
Question
why do you want to join deloitte, where do you exactly fit 
in.
Rank Answer Posted By  
 Question Submitted By :: Suren
This Interview Question Asked @   Deloitte
I also faced this Question!!   © ALL Interview .com
Answer
This is the main question in 2 business rounds, your ans 
will make u go to next level. be sure u hav done gud 
reaearch on company, and show them what they and and what 
you have for them.

do some gud homework, know ab't company surrent business 
status and dont forget to attend the induction program on 
the day of interview as the 80% questions for business 
round will be from that.
 
0
Suren
 
 
Question
you have a requirement from client, he has an XML file and 
you need to insert the data into 5-6 tables in database. 
explain me the procedure.
Rank Answer Posted By  
 Question Submitted By :: Suren
This Interview Question Asked @   Deloitte
I also faced this Question!!   © ALL Interview .com
Answer
first check with the Scheme provided, if you have scheme 
you can make use to serialise it.

The person will look for the technical feasibility and 
solution providing strength and your way of explanation. 
dont get stuck any where, shuld be very fluent using the 
technical terms and sametime shuld be thoughtful in 
understanding the requiement. 

The business rounds goes in the same way, asking you to 
explain your projects, architechture, DFD's protypes and 
other things.
 
0
Suren
 
 
Question
Explaing your project.
Rank Answer Posted By  
 Question Submitted By :: Suren
This Interview Question Asked @   Deloitte
I also faced this Question!!   © ALL Interview .com
Answer
the main points he will be looking is your architechture, 
DFD's and Page flow. be sure to use technical terms in your 
explanation coz the interviewer will be more keen on your 
terminalogy rather than the project you have done.
 
0
Suren
 
 
Question
i have an array of 10 objects whose values are from 1-10 
randomly inserted. i have deleted one array object. 
tell me what is that value? write the logic of it.
Rank Answer Posted By  
 Question Submitted By :: Suren
This Interview Question Asked @   Deloitte , Srp
I also faced this Question!!   © ALL Interview .com
Answer
its simple for guys 4m Engineering background.
if u have an idea with series of numbers, (n(n+1)/2)

first take the sum of all the objects in array, next 
subtrat the sum of arrays after deletion of object. this 
will give you the deleted object value.

1,2,3... 10; sum = 10(10+1)/2=55

suppose the value of object deleted is 6;

then sum of the array after deletion will be 49;

55-49=6 ANS:
 
3
Suren
 
 
Question
i have 2 functions, int add(int a,int b); 
double add(int a,int b); does this code implement 
overloading? if not what will be the error?
Rank Answer Posted By  
 Question Submitted By :: Suren
This Interview Question Asked @   Deloitte
I also faced this Question!!   © ALL Interview .com
Answer
That will throw an error coz in the second function the 
return type is double and result will be in double. to 
rectify it we need to convert the second function result as 
double, then the code executes correctly.
 
0
Suren
 
 
Answer
it will throw an error because the function overloading is 
acheived by
1) changing the number of parameters
2) changing the order of parameters of different datatypes

we can't acheive function overloading by changing the 
return type
 
0
Dhakir Hussain
 
 
Answer
it will throw compile error because of same parameter's 
data type in second overloaded function.
 
0
Manoj Gharat
 
 
Answer
C#: CIL supports overloading by return type

C# and most other languages that allow method overloading do
not allow overloading by return type. What this means is
that methods can be overloading only if they differ by
parameters. So the following code will not compile as the
methods differ only by return type

class Employee

{

//...

}

class Program

{

static int Func(Employee emp) {

return emp.Id;

}

static string Func(Employee emp) {

return emp.Name;

}

}
 
0
Ar Prabhakaran
 
 
Question
What is Delegate? Have ever used Delegates in your project.
Rank Answer Posted By  
 Question Submitted By :: Suren
This Interview Question Asked @   Deloitte
I also faced this Question!!   © ALL Interview .com
Answer
A delegate object encapsulates a reference to a method. In 
C++ they were referred to as function pointers.
 
0
Suren
 
 
Question
Write an StoredProcedure to get the values of a column 
within a date range.
Rank Answer Posted By  
 Question Submitted By :: Suren
This Interview Question Asked @   Deloitte
I also faced this Question!!   © ALL Interview .com
Answer
Example:

select col1 from table_name where 
(( convert(DateTime,Date_Column1,102) between coalesce
(@Date_Column1,convert(DateTime,Date_Column,102)) and 
coalesce(@Date_Column2,convert(DateTime,Date_Column,102))))

//Date_Column: Column in the Table
//Date_Column1: first value of date range
//Date_Column12: second value of date range
 
0
Suren
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com