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 (526)  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
What are the differences between Marshal by value and 
Marshal by reference?
Rank Answer Posted By  
 Question Submitted By :: Swapna
This Interview Question Asked @   Verizon
I also faced this Question!!   © ALL Interview .com
Answer
Marshal-by-value objects are copied by the remoting system 
and passed in their entirety to the caller's application 
domain. Once copied to the caller's application domain (by 
the marshaling process), all method calls and property 
accesses are executed entirely within that domain. The 
entire object exists in the caller's domain, so there is no 
need to marshal accesses across domain boundaries. Using 
marshal-by-value objects can increase performance and 
reduce network traffic when used for small objects or 
objects to which you will be making many accesses. However, 
because the object exists entirely in the caller's 
application domain, no state changes to the object are 
communicated to the originating application domain, or from 
the originator back to the caller. Marshal-by-value is not 
a good choice for very large objects with many accesses. It 
makes little sense to marshal an entire large object across 
domain boundaries when all you need is access to a single 
field, method, or property.
 
0
J's
 
 
Answer
Remoting makes an object in one process (the server) 
available to code in another process (the client). This is 
called marshalling, and there are two fundamentally 
different ways to marshal an object

-->Marshal by value: the server creates a copy of the 
object passes the copy to the client. 
-->Marshal by reference: the client creates a proxy for the 
object and then uses the proxy to access the object.
 
0
Rashmi Tiwari
 
 
Answer
MBV:the server creates a value and send it to the Client .
MBR:The Server sends the reference of that value to the Client.
 
0
Bolisettyvaas
 
 
 
Question
Give the Hierarchial description of remoting?
Rank Answer Posted By  
 Question Submitted By :: Swapna
This Interview Question Asked @   Satyam
I also faced this Question!!   © ALL Interview .com
Answer
.Net remoting is replacement of DCOM.
Step 1:Build a proxcy which is looks like a real obj.
Step 2:By useing proxcy U can make method calls on remoting 
       objs.
Step 3:These method calls know as "Messages", messages can 
be serialized by Formater.
Step 4:It send to client channel.
Step 5:Client channel communicate with sever channel. And 
Deserialized the Messages.
Step 6:Sever send the exact remot obj.
 
0
Madhu
 
 
Question
How to perform Remoting?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
Remoting Performance and Auto Web Proxy .

The .Net Framework 2.0 has significant changes to its 
support for proxies including support for connection-
specific proxy settings, automatic proxy configuration and 
the ability to automatically refreshing proxy settings 
whenever the active connection changes. These features can 
be very useful in .Net Remoting but the auto web proxy 
feature can also affect performance. If you do not need 
these settings in your client it might be useful to disable 
them.

There are a number of ways to disable this:

 

1.       In Internet Explorer Open Internet Options, 
(either through control panel or the Internet Explorer™ 
tools menu), switch to the connections tab, and select LAN 
settings. Clear all checkboxes under automatic 
configuration. This will disable automatic proxy settings 
for the current user (note that this will not work for 
ASP.NET sites making outgoing web service calls because 
they run under a different user).

2.       Imperatively disable it by setting 
System.Net.WebRequest.DefaultWebProxy = null;

3.       In your config file bypass the proxy for your web-
server. You can also disable the default proxy altogether.
 
0
Ramakrishna Pidugu
 
 
Question
When we use web service and when we use Remoting?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
.NET remoting is specifically used when you are using only 
Microsoft platform. Remoting cannot be used between .net 
client and non .NET clients.
Web services though can be used for communication on 
MIcrosoft technologies, but their main feature is Platform 
Interoperability.
So if you are using client and server supporting .NET 
framwork,  iwould recommend to use .NET remoting because 
you can customise it to great detail and also its faster.
If you are developing for cross platform technologies, you 
cannot use .NET remoting. So the only option you have is ot 
use web services
 
3
Ankit Dass
 
 
Answer
WebService is Platform,Object ,Programming Language
indepedent while remoting depends on platform means client
to be built using .NET Framework or other framework that
supports .NET Remoting
webservice can be accessed on http protocol and soap based
message formating while remoting supports tcp/http with
binary and soap based formating.
webservice is based on singlecall method means for every
request remote object is loaded, while remoting supports
singlecall and singleton method.
webservice lies under unbrella of Remoting.
 
0
Ganesh
 
 
Question
What r new things introduced in ASP.NET 2.0 in comparision
to ASP.NET 1.1
Rank Answer Posted By  
 Question Submitted By :: Prabir
I also faced this Question!!   © ALL Interview .com
Answer
There is lot of new feature include in ASP.Net 2.0 
1. Role and membership Management .  
   It is create tricky mathod for create an application 
with areas that are accesss by  only select user .
 Example 
 if(Membership.validateUser (userid,password))
{
}
2.Personalization :-  User can offer to setting there 
persnol setting .
3.Site Navigation :- We can create Site Map for application 
in XML file that  can easly inherite by specific co control
4. New Copilation System :-
   Page by Page Compilation with recomplilation whole 
appliction.
5.Master Page: - This is proide easy way to same loke and 
fill whole site . 
6.thems : - 
  providing way to change Thims of application. 
7.New Object For Accessing Data. Such as  <SqlDataSource>
8. New Server Control : -Such As GridView,FormView etc. 


  Thank you,
  Rahul Tripathi.

  rahultripathi@myway.com
 
1
Rahultripathi
 
 
Question
What is Difference between Callbacks and Postback in ASP.NET?
Rank Answer Posted By  
 Question Submitted By :: Prabir
I also faced this Question!!   © ALL Interview .com
Answer
This is " Cliet Site Call back to server site "

which won't require page refresh to execute a server call 
and its based on XMLHTTP protocol or so
PostBack is for Server Site 
 Rahul Tripathi.

  rahultripathi@myway.com
 
1
Guest
 
 
Answer
The difference between a callback and postback is that, as 
with a postback, a callback does not refresh the currently 
viewed page (i.e. does not redraw the page). You can think 
of it as a quick trip back to get some data etc. For 
example if there were two drop down boxes, the second 
dependant on the value of the first, when a user selects a 
value of a the first, rather then posting the whole page, 
doing some server side calculations and returning a new 
whole page to the client, a callback can enable you to only 
go fetch the required data. Obviously from this, View State 
is not updated with a callback (it's the same instance of 
the page just updated!!!).
 
0
Chandra Sekhar Dola
 
 
Answer
A callback is a special type of postback in which the 
entire page is not redrawn and also the view state remains 
the same....
 
0
Ahsan Raza
 
 
Answer
The Above all commands are wrong.Donot follow These.
 
0
Kilorf
 
 
Answer
The callBack and Postback is same.
 
0
Yhanng
 
 
Answer
Postback is something that happens whenever the server 
gets a request for this page from the second time onwards
It need not be mandatorily a submit button, probs even a 
click which requiers a server side validation is also 
results in a postback.
A callback function is a function which you register/ask to 
be called later, usually as a result of a particular event 
happening.
 
0
Kiran Varma
 
 
Answer
Callback : It is a way to send a request to the web page
from the client script. Postback is an expensive call with
processing overhead. In callback a client function sends a
request and a special marked method is invoked on the
server. It does the processing & returns the value which is
received by another client function to process the result.
To have client side callbacks, the page has to implement
ICallbackEventHandler & implement functions
RaiseCallBackEvent & GetCallBackResult.

PostBack: Postback is the event which sends the form data to
the server. The server processes the data & sends it back to
the browser. The page goes through its full life cycle & is
rendered on the browser. It can be triggered by using the
server controls.
 
4
Ziya
 
 
Answer
Callbacks :- It is a way to get data related to particular 
control which is implementing call back. Callback is 
nothing but asynchronous postback in which only data 
related to the control is came instead of whole page data.

Postback :- It is property of server controls in which 
whole page get refreshed. It sends data to server and then 
server process the data and after completion of life cycle 
process, result is rendered on browser.

Postback is heavyweight methods or execution is slow but 
callback is lightweight methods or execution is fast 
because here whole page is not getting refreshed or 
rendered.
 
0
Dhiraj Kumar
 
 
Question
What r Callbacks in ASP.NET?
Rank Answer Posted By  
 Question Submitted By :: Prabir
I also faced this Question!!   © ALL Interview .com
Answer
Call Back Mathod Allow us to call Server Site Method  
though Client Site java script  With out using Posting the 
Page. 

Rahul Tripathi
rahultripathi@myway.com
 
0
Rahultripathi
 
 
Question
How many Directives r in ASP.NET?
Rank Answer Posted By  
 Question Submitted By :: Prabir
I also faced this Question!!   © ALL Interview .com
Answer
assembly directive
register directive
page directive
implements directive
import directive
 
0
Senthil Kumar
 
 
Answer
@assembly : - Link assembly to current Page or user control 
directory . 
@control :- Define  control Spacific attributes  to  used 
by ASP.Net page parser and compiler included only in .ascx 
page. 
@ Impliment : - Indicates that a page or user control 
implements a specified .NET Framework interface 
declaratively
@ import :- import a namespace in Page or user control 
explicit.

@ Master :- Identifies a page as a master page and defines 
attributes used by the ASP.NET page parser and compiler and 
can be included only in .master files

@ Master Type:- Defining class or vartual Path used to type 
master page property of page.

@OutPut Cache.
@Page.
@Privious Page Type.
@Reference .
@Register

Rahul Tripathi
rahltripathi@myway.com
 
5
Rahultripathi
 
 
Answer
There 9 Directives in ASP.Net
 
0
Paresh Rao + Jignesh Panchal
 
 
Answer
There r 11 types directives in asp.net,

1)@ Assembly
 Links an assembly to the current page or user control 
declaratively. 
 
2)@ Control
 Defines control-specific attributes used by the ASP.NET 
page parser and compiler and can be included only in .ascx 
files (user controls).
 
3)@ Implements
 Indicates that a page or user control implements a 
specified .NET Framework interface declaratively. 
 
4)@ Import
 Imports a namespace into a page or user control explicitly.
 
5)@ Master
 Identifies a page as a master page and defines attributes 
used by the ASP.NET page parser and compiler and can be 
included only in .master files.
 
6)@ MasterType
 Defines the class or virtual path used to type the Master 
property of a page.
 
7)@ OutputCache
 Controls the output caching policies of a page or user 
control declaratively.
 
8)@ Page
 Defines page-specific attributes used by the ASP.NET page 
parser and compiler and can be included only in .aspx files.
 
9)@ PreviousPageType
 Creates a strongly typed reference to the source page from 
the target of a cross-page posting.
 
10)@ Reference
 Links a page, user control, or COM control to the current 
page or user control declaratively.
 
11)@ Register
 Associates aliases with namespaces and classes, which 
allow user controls and custom server controls to be 
rendered when included in a requested page or user control
 
0
Ashish Tiwari
 
 
Question
what r arraylist?
what the use of Hashtables?
Rank Answer Posted By  
 Question Submitted By :: Prabir
I also faced this Question!!   © ALL Interview .com
Answer
array is a collection of elements of simlar type
hastable is a collection of elements of different types.
we can retrive data from hashtable in key-value pair manner
 
0
Prasad
 
 
Answer
arraylist is  a collection of objects of same type. It 
implements IList interface. it can grow dynamically, we can 
add elements in it at runtime. it should be used when we 
dont have information that how many elements will get 
stored in it. it also has facility of searching and sorting.


Hashtable is storing data in key-value pair, where key 
field will remain unique. Here elements can be searched 
using key value. It is serializable.
 
2
Kautilya
 
 
Answer
Everything told above is correct except that ArrayList can 
only contain "similar data type". 
Please compile and execute the following code:
using System;
using System.Collections;
public class SamplesArrayList  {

   public static void Main()  {

      // Creates and initializes a new ArrayList.
      ArrayList MyList = new ArrayList();
      MyList.Add("Hello");
      MyList.Add("World");
      MyList.Add(1);

      // Displays the properties and values of the 
ArrayList.
      Console.WriteLine( "MyList" );
      Console.WriteLine( "\tCount:    {0}", MyList.Count );
      Console.WriteLine( "\tCapacity: {0}", 
MyList.Capacity );
      Console.Write( "\tValues:" );
      PrintValues( MyList );
   }

   public static void PrintValues( IEnumerable myAL )  {
      System.Collections.IEnumerator myEnumerator = 
myAL.GetEnumerator();
      while ( myEnumerator.MoveNext() )
         Console.Write( "\t{0}", myEnumerator.Current );
      Console.WriteLine();
   }
}
 
0
Sharmin Jose
 
 
Answer
Arraylist is a collection of different datatypes.
 
0
Guest
 
 
Question
How do I debug an ASP.NET application that wasn't written 
with Visual Studio.NET and that doesn't use code-behind?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
Start the DbgClr debugger that comes with the .NET 
Framework SDK, open the file containing the code you want 
to debug, and set your breakpoints. Start the ASP.NET 
application. Go back to DbgClr, choose Debug Processes from 
the Tools menu, and select aspnet_wp.exe from the list of 
processes. (If aspnet_wp.exe doesn't appear in the 
list,check the "Show system processes" box.) Click the 
Attach button to attach to aspnet_wp.exe and begin 
debugging. 
Be sure to enable debugging in the ASPX file before 
debugging it with DbgClr. You can enable tell ASP.NET to 
build debug executables by placing a 
<%@ Page Debug="true" %> statement at the top of an ASPX 
file or a <COMPILATION debug="true" />statement in a 
Web.config file. 
 
0
Asra
 
 
Question
What data types do the RangeValidator control support?
Rank Answer Posted By  
 Question Submitted By :: Hydwhitehouse
I also faced this Question!!   © ALL Interview .com
Answer
String,Integer,Double,Date,Currency
 
0
Hydwhitehouse
 
 
Answer
Currency 
Date 
Double 
Integer 
String
 
0
Sudhanshu Jain
[Asian Tech]
 
 
Question
What is the use of New Keyword
Rank Answer Posted By  
 Question Submitted By :: Hydwhitehouse
I also faced this Question!!   © ALL Interview .com
Answer
To allocate the memory to an object.
 
1
Ajay Kumar
 
 
Answer
The keyword New is used to create the object for the 
classes.using that object all the methods and properties 
are invoked.
 
0
Senthil Kumar
[Asian Tech]
 
 
Answer
as modern programming languages use this keyword 
extesively, it used to assign an object the memory on heap. 
and thus physically implements the class for that 
particular object.
 
0
Hafiz Usman Majeed
[Asian Tech]
 
 
Answer
Allocate or create dynamic memory to an object during the 
run time not compile time.
 
4
Kalidoss
[Asian Tech]
 
 
Answer
New is not used just to create objects of a class. It is 
also used for Shadowing a method in .NET, which means if 
Base class and Derived class have methods with same name 
and signature, You can precede the derived class method 
name with "new" keyword which makes the method a new one 
altogether. This is used in retaining old implementation of 
a method and you also want to introduce new implementation 
for same method in your assembly
 
4
Rajesh - Headstrong
[Asian Tech]
 
 
Answer
the new keyword is basically used in reference types to 
create a object and allocate memory to it.and it can also 
be used in value types to invoke the default constructor.
 
0
Sangita Patra
[Asian Tech]
 
 
Answer
that Allocates memory at runtime instead of compile time
 
0
Ashok
[Asian Tech]
 
 
Answer
To allocate memory
 
0
New
[Asian Tech]
 
 
Answer
The new keyword is used to an object of a class.And also it 
is used to hide Methods and variables
 
0
Deepak Bankar
[Asian Tech]
 
 
Question
How to add Primary key in DataSet
Rank Answer Posted By  
 Question Submitted By :: Hydwhitehouse
I also faced this Question!!   © ALL Interview .com
Answer
In eidt dataset designer right click on column name which u
want as primary key and set it as pk
 
0
R.prajapati
 
 
Answer
dim col() as new dt.datacolumn
col(0)=dt.column(1)
dt.primarykey=col
 
0
Shahil Singh
[Asian Tech]
 
 
Answer
If we use c#

DataTable dt=new DataTable();

DataColumn Dc1 = new DataColumn("No", Type.GetType
("System.Int32"));

dt.Columns.Add(Dc1);

 //Set Primary key
            DataColumn[] dc = new DataColumn[1];
            dc[0] = dt.Columns["No"];
            dt.PrimaryKey = dc;

Kamal..
 
0
Kamalakannan.a
[Asian Tech]
 
 
Answer
ds.Tables[0].Constraints.Add("pk_sid",
ds.Tables[0].Columns[0], true);
 
0
Gopi
[Asian Tech]
 
 
Answer
This is answer is great. its help me lot.


In eidt dataset designer right click on column name which u
want as primary key and set it as pk
 
0
Tamilan
[Asian Tech]
 
 
Question
How to sort the data in Datatable
Rank Answer Posted By  
 Question Submitted By :: Hydwhitehouse
This Interview Question Asked @   NetProphet
I also faced this Question!!   © ALL Interview .com
Answer
pass the datatable in dataview object and call the sort 
method on dataview
dataview dv=new dataview(dt)
dv.sort
that's it
 
0
Narayansahu
 
 
Answer
I think the above answer is correct.Another one method is 

DataTable dt=new DataTable();
DataRow[] dr=dt.Select("Filter Expression","Sort 
expression");

Here Sort expression is , for eg.Address is one of the 
field in dt.

Then DataRow[] dr=dt.Select("","Address ASC");

But in this method is have the Datarow array.So you can use 
another one method,I explain below.

DataView dv=new DataView(Datatable,Filter Exp,Sort 
Exp,Dataviewrowstate)


Eg is 

DataView dv=new DataView(dt,"","Address 
ASC,DataViewVowState.CurrentRows);


Here we can copy this Dataview to datatable or use this 
same dataview instead of datatable.

Kamal....
 
0
Kamalakannan.a
[Asian Tech]
 
 
Question
How to retrieve the third table value from the data set?
Rank Answer Posted By  
 Question Submitted By :: Burhan
This Interview Question Asked @   Network-Solutions
I also faced this Question!!   © ALL Interview .com
Answer
ds.Tables[2].Rows[SpecificRow][SpecificColumn].ToString();
// SpecificRow- is an Row Index
// SpecificColumn - is either DataColumn or Column Name in 
        string or Column Index
 
0
Bala.r
 
 
Answer
ds.tables[2].rows[w.rowindex].datacolumn.tostring();
 
0
Denial Gonzalvis
[Indicomm]
 
 
 
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