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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories >> Software >> Microsoft-Related
 
  Visual-Basic (584)  C-Sharp (457)  ASP.NET (949)  VB.NET (89)  COM+ (37)
  ADO.NET (151)  IIS (61)  MTS (2)  Crystal-Reports (41)  BizTalk (14)
  Exchange-Server (61)  Microsoft-Related-AllOther (26)
 


 

Back to Questions Page
 
Question
How do you hide the columns in datagrid?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
In the html source of datagrid, add "visible=true" to the 
item template of corresponding row.
 
0
Surya
 
 
Answer
DataGridTableStyle Dts1=new DataGridTableStyle();
	datagrid1.TableStyles.Add(Dts1);
					
	Dts1.GridColumnStyles[0].Width=0;
	Dts1.GridColumnStyles[1].Width=390;
	Dts1.GridColumnStyles[1].HeaderText="Title";
 
5
S
 
 
Question
How do you customize the column content inside the datagrid?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
1.Right click on the datagrid
2.click property builder
3.A datagrid properties window is opened.u will find few 
options on left side like general,column,paging,format.
4.double click on coloumn u will get boundcolumn,button 
coloumn ,hyperlink column,template coloumn.
5.right click on template column of datagrid u will get 
edit template and go for coloumn(0).
6.  drag & drop the control from the toolbox u needed in 
edit template.
 
0
Bhanu
 
 
 
Answer
We will add a function signature of OnItemDataBind in 
DataGrid or by creating an event handler in code file for 
DataGrid Binding. Now in the definition of function we will 
check that is DataGrid Item type is of ListItemType or 
AlternatingItemType then we will costomize the column by 
setting the property of particular column in code window.
 for eg.
event handler of funcion:
this.DataGrid.ItemDataBound += new 
system.Web.UI.WebControls.DataGridItemEventHandler(this.DataGrid_ItemDataBound);
definition of function:

private void DataGrid_ItemDataBound(object sender, 
DataGridItemEventArgs e)
		{				
			if (e.Item.ItemType == 
ListItemType.Item || e.Item.ItemType == 
ListItemType.AlternatingItem)
			{
				
e.Item.Cells[1].Font.Bold;				
	
			}			
		}
 
5
Ashutosh Rai
 
 
Question
What is datagrid?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
Datagrid is a server control to display retrieved values 
from database in Formated way
 
0
Surya
 
 
Answer
DataGrid is a control to hold the Database data. It will 
display th number of records.
 
0
Sesu
 
 
Answer
Datagrid is a server control to display retrieved values 
from database  or xml file in tabler format
 
0
Vasu
 
 
Answer
the  datagrid webserver control is power tool displaying 
information from datasource
.it is easy to use.
you can display  editable data in a professional looking 
grid by setting properties
 
0
Nagaraj
 
 
Answer
The DataGrid Web server control is a full-featured data-
bound control that displays data in tabular format, and 
provides the ability to sort, select, edit, and delete 
records from its associated data source.
 
0
Nilofer
 
 
Question
Integer & struct are value types or reference types 
in .NET? 
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
valuetype,becuase they r allocated on stack..
 
1
Kondapallysantoshkumar
 
 
Question
What is Global Assembly Cache (GAC) and what is the purpose 
of it?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
Each computer where the common language runtime is installed
has a machine-wide code cache called the global assembly
cache. The global assembly cache stores assemblies
specifically designated to be shared by several applications
on the computer.  You should share assemblies by installing
them into the global assembly cache only when you need to.
Steps
- Create a strong name using sn.exe tool
eg: sn -k keyPair.snk
- with in AssemblyInfo.cs add the generated file name 
eg: [assembly: AssemblyKeyFile("abc.snk")]
- recompile project, then install it to GAC by either
drag & drop it to assembly folder (C:\WINDOWS\assembly OR
C:\WINNT\assembly) (shfusion.dll tool)
or
gacutil -i abc.dll 
 
0
Guest
 
 
Answer
GAC is a repository of all the .net shared assembly.The 
assemblies stored in GAC can be shared by all the .NET 
application.
 
0
Zeenat
 
 
Question
How will you load dynamic assembly? How will create 
assemblies at run time?
Rank Answer Posted By  
 Question Submitted By :: Pvr
This Interview Question Asked @   MGL , Lancesoft
I also faced this Question!!   © ALL Interview .com
Answer
using reflection
 
0
Rajesh Kr Misra
 
 
Answer
Assembly.loadFrom("filepath")
 
0
Japan Shah
 
 
Question
What are Satellite Assemblies? How you will create this?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
in multilingual application in .net support multilangual 
functionality you can have modules which are customaized 
for localization.
 
0
Kondapallysantoshkumar(m.c.a)h
 
 
Answer
HI santhosh can u explain in detail plz? and coding too?
 
0
Sharif
 
 
Answer
Developing a web application for different languages and 
courtries,we have to write code in different languages and 
different cultures(ex. date formate is different for 
different countries).So these functionality is developed in 
an assembly called as satelite assembly.
 
0
Kishore Maddineni
 
 
Question
What is the use of trace utility ?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
The Microsoft? Simple Object Access Protocol (SOAP) Toolkit
2.0 includes a TCP/IP trace utility, MSSOAPT.EXE. You use
this trace utility to view the SOAP messages sent by HTTP
between a SOAP client and a service on the server. 
Using the Trace Utility on the Server
To see all of a service's messages received from and sent to
all clients, perform the following steps on the server. 
0.	On the server, open the Web Services Description Language
(WSDL) file. 
1.	In the WSDL file, locate the <soap:address> element that
corresponds to the service and change the location attribute
for this element to port 8080. For example, if the location
attribute specifies <http://MyServer/VDir/Service.wsdl>
change this attribute to
<http://MyServer:8080/VDir/Service.wsdl>. 
2.	Run MSSOAPT.exe. 
3.	On the File menu, point to New, and either click
Formatted Trace (if you don't want to see HTTP headers) or
click Unformatted Trace (if you do want to see HTTP headers). 
4.	In the Trace Setup dialog box, click OK to accept the
default values. 
Using the Trace Utility on the Client
To see all messages sent to and received from a service, do
the following steps on the client. 
5.	Copy the WSDL file from the server to the client. 
6.	Modify location attribute of the <soap:address> element
in the local copy of the WSDL document to direct the client
to localhost:8080 and make a note of the current host and
port. For example, if the WSDL contains
<http://MyServer/VDir/Service.wsdl>, change it to
<http://localhost:8080/VDir/Service.wsdl> and make note of
"MyServer". 
7.	On the client, run MSSOPT.exe. 
8.	On the File menu, point to New, and either click
Formatted Trace (if you don't want to see HTTP headers) or
click Unformatted Trace (if you do want to see HTTP headers). 
9.	In the Destination host box, enter the host specified in
Step 2. 
10.	In the Destination port box, enter the port specified in
Step 2. 
11.	 Click OK.
 
0
Guest
 
 
Question
What is different between User Control and Web Control and 
Custom Control? 
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
user control 
1)created by user,easy to create difficult to use.
2)cannot be added to toolbar 
3)a seperate copy of the control is required each 
application
custom control:
1)they are predifined
2)can be added to toolbar
3)one single copy of control ia required
 
0
Santhi Sri
 
 
Question
What are the different authentication modes in the .NET 
environment?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
There are 4 types of Authentication mode.
Window, Form, Passport and None
 
4
Anil
 
 
Question
What is serialization in .NET? What are the ways to control 
serialization?
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
When developing smaller applications that do not have a 
database (or other formal storage mechanism) or data that 
doesn't need to be stored in a database (such as the state 
of a web application), you often still would like to save 
the data for later retrieval. There are many ways to do 
this, but many of them are subject to a lot of extra code 
(work) and extra time spent debugging. With .NET, there is 
now an easy way to add this functionality to your code with 
only a few lines of easily tested code. This easy way is 
called serialization.
 
0
Ragesh
 
 
Answer
Serialization is the process of converting an object into a 
stream of bytes. On the other hand Deserialization is the 
process of creating an object from a stream of bytes. 
Serialization/Deserialization is used to transport or to 
persist objects. Serialization can be defined as the 
process of storing the state of an object to a storage 
medium. During this process, the public and private fields 
of the object and the name of the class, including the 
assembly are converted to a stream of bytes. Which is then 
written to a data stream. Upon the object's subsequent 
deserialized, an exact clone of the original object is 
created.
 
0
Arijit Mandal
 
 
Question
What are the ways to show data grid inside a data grid for 
a master details type of tables? 
Rank Answer Posted By  
 Question Submitted By :: Pvr
I also faced this Question!!   © ALL Interview .com
Answer
If the Dataset consist of set of tables with Master Details 
relationship, Then association the Dataset with the 
Datagrid will automatically show the sub datagrid for the 
details table records.
 
0
Vaidyanathan R
 
 
 
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