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 is a required field validation control?
Rank Answer Posted By  
 Question Submitted By :: Raghu_113
This Interview Question Asked @   Six-Sigma
I also faced this Question!!   © ALL Interview .com
Answer
first drag the requiredfieldvalidator from validator
(Toolbax). after that ,we can goto properties  and change 
the properties of requiredfieldvalidator.
1.Id
2.controltovalidate:nametextbox
3.errormessage:Required Field
 
0
Dsr
 
 
Answer
This is used for validating the user entered values are 
correct, for eg you can use this for checking a user enterd 
email address. it won't allow any other type of string 
enter there. This required field validation control has 
reduced the usage of regular expression, but it is worth to 
use regular expression to validate ,because you can decide 
how the validation should be and it will be a client side 
action. but a regular field validator's code will be 
working in server side after posting the page.
 
0
Subru
[Techno Labs]
 
 
Question
how windows applications different from the console 
applications?
Rank Answer Posted By  
 Question Submitted By :: Raghu_113
This Interview Question Asked @   Six-Sigma
I also faced this Question!!   © ALL Interview .com
Answer
console programs are comiple and run in the console.windows 
programs are compile in console and run in windows format.
 
0
Dsr
 
 
 
Question
Navigation controls in ASP.net,explain each control in 
brief?
Rank Answer Posted By  
 Question Submitted By :: Raghu_113
This Interview Question Asked @   Six-Sigma
I also faced this Question!!   © ALL Interview .com
Answer
There are total 4 Navigation controls are there in asp.net 
2.0
There are 
1.Pointer 2.SiteMapPath  3.Menu   4.TreeView

The purpose of these controls are

In ASP.NET 2.0, a menu can be stored in a file to make it 
easier to maintain. This file is normally called web. 
sitemap, and is stored in the root directory of the web.
 
0
Bhanu Prasad
 
 
Question
How many types of validation controls are provided by 
ASP.NET?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
I also faced this Question!!   © ALL Interview .com
Answer
ther are five type validation controll that i know 
1.reguiral filed validation 
2.compareValidator
3.rangValidator
4.reguralExpressionValidator
5.customvalidator
 
0
Deepak
 
 
Answer
ther are six type validation controll that i know 
1.reguiral filed validation 
2.compareValidator
3.rangValidator
4.reguralExpressionValidator
5.customvalidator
6.validation summery
 
0
Amulya Kumar Panda
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
Six type of  validation control

1.Required field validator 
2.Compare Validator
3.Range Validator
4.Regular Expression Validator
5.Custom validator
6.Validation summary
 
0
Srikanth
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
1.Required field validator 
2.Compare Validator
3.Range Validator
4.Regular Expression Validator
5.validation summary
6.Custom validator
 
0
Vennilaashok
[Emantras Interactive Technologies Pvt Lt]
 
 
Question
Where is ViewState information stored?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
This Interview Question Asked @   HCL
I also faced this Question!!   © ALL Interview .com
Answer
view satate information is sotred in satate bag ,is object 
that hold valu when a form is posted
 
0
Deepak
 
 
Answer
cookies
 
0
Aaa
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
ViewState information is Stored in The Hidden Fields.
 
0
Kotu
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
Storage Options

Because it implements the Provider Pattern, you have at your
disposal two ways of storing ViewState (with more to come):

    * Save To Cache: save ViewState in Cache, on the server
    * Save To XML: saves ViewState into an XML file on the
server

The storage option you choose, depends on your requirements
as well as the constraints of your hosting environment.

Save To Cache: it is recommended for those situations where
you have a moderate volume of visitors. Pages will be served
faster (since we are accessing memory to retrieve
information). Since Chache is recycled automatically by the
server when memory is needed, it is important to know what
your hosting provider memory limits are, and what volume of
users you expect at any given time.
The Cache solution, allows you to specify the number of idle
minutes that you want the viewstate to be kept in memory
before being recycled (cacheMinutes attribute).
In case of premature recycling, the page will not fail, but
be redirected to itself, thus instantiating a new caching cycle.

Save To XML: it is recommended for high volume sites. Pages
will be served fast, and viewstate stored and retrieved from
xml files saved in a directory of your choice (virtualPath
attribute) that will require r/w permission.
There will be one file per user, and files will be deleted
at a configurable interval (fileCacheMinutes attribute).
Since there could be multiple ViewState in any given file
(if for example a user opens a pop-up), you can also specify
the number of minutes that any given ViewState entry can be
idle before being deleted (recordCacheMinutes attribute). If
you have a lot of pop-ups in your site, recordCacheMinutes
should be set to few minutes.
In case of premature recycling, the page will not fail, but
be redirected to itself, thus instantiating a new caching
cycle.
 
0
Suresh.k
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
_VIEWSTATE [a html hidden field]
 
0
Surendra Sharma
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
hiddenfiled
 
0
Srinivasulu
[Emantras Interactive Technologies Pvt Lt]
 
 
Question
What is the use of SmartNavigation property?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
I also faced this Question!!   © ALL Interview .com
Answer
even when page is refreshed the cursor remains in same position
 
0
Shamli
 
 
Answer
No.
The correct answer is that, even when page is refreshed the scroll bar remains in same position.
 
0
Ritz
[Emantras Interactive Technologies Pvt Lt]
 
 
Question
What is the use of @Register directives?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
I also faced this Question!!   © ALL Interview .com
Answer
Directives in ASP.NET are used to set attributes for a 
page. The @Register directive is a directive used to 
register user defined controls on a web page
 
0
Varun Paliwal
 
 
Question
What is the use of command objects?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
I also faced this Question!!   © ALL Interview .com
Answer
In order to execute Sql commands and stored procedures we 
need command objects
 
0
Rajesh
 
 
Answer
Command object is used to connect the connection object to 
data reader or dataset. and is used to execute queries and 
stored procedures which are defined in the commandtext 
property.

the main methods for command object property are....

1. ExecuteNonQuery()
2.ExecuteReader()
3.ExecuteScalar()
 
0
Sandyni
[Emantras Interactive Technologies Pvt Lt]
 
 
Question
What are major difference between classic ADO and ADO.NET?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
I also faced this Question!!   © ALL Interview .com
Answer
ADO is a com base library that supports only connected 
data. This means that when we access the data (view, edit 
and update) it is affected in real-time,since the 
connection is being used all the time. ADO uses the objects 
as reference data known as Recordset object. Hence it 
basically gives a single table view of the data. We can 
also join tables to create a new set of records in ADO.ADO 
allows to create only client-side cursors. Using ADO we can 
persist records in XML format and XML integration is not 
possible. 

ADO.NET is a CLR based library that supports disconnected 
recordsets. This means that When we access data, ADO.NET 
makes a copy of the data using XML and holds the connection 
to pull down the data or to make any requested updates as 
long as we need. The best method to follow is 
ADO.NET.ADO.NET uses various objects known as Dataset that 
allow to access data in various methods. Hence it allows to 
store the relational model of the database and helps us to 
access /update the data in each related table individually. 
ADO.NET supports both client-side and server-side cursors. 
Also the cursors are handled as classes in ADO.NET 
providing a way to create efficient applications. Using 
ADO.NET we can manupulate records in XML format. Also 
ADO.NET 2.0 provides Multiple Active ResultSets (MARS) 
which allows to have two datareader on one connection open 
at sametime.
 
0
Subramaniam
 
 
Answer
In ADO, the in-memory representation of data is the 
recordset. In ADO.NET, it is the dataset. There are 
important differences between them.
 
0
Pranshu Sharma
[Emantras Interactive Technologies Pvt Lt]
 
 
Question
What are the two fundamental objects in ADO.NET?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
I also faced this Question!!   © ALL Interview .com
Answer
Dataset,dataprovider
 
0
Pankaj Kumar
 
 
Answer
DataSet and DataReader are the tow funadamental object in
ADO.NET
 
0
Nandini
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
Dataset which is disconnected and DataReader which is 
connected are the two main fundamental objects of ADO.Net
 
0
Sandyni
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
#1 is wrong remaings are correct
DataSet and DataReader are the tow funadamental object in
ADO.NET
 
0
Spvarma
[Emantras Interactive Technologies Pvt Lt]
 
 
Question
What is the namespace in which .NET has the data 
functionality classes?
Rank Answer Posted By  
 Question Submitted By :: Karvendhan
This Interview Question Asked @   eMantras
I also faced this Question!!   © ALL Interview .com
Answer
System.Data.dll
 
0
Prerna Gupta
 
 
Answer
System.Data
 
0
Sdfds
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
System.Data.OleDB
System.Data.SqlClient
System.XML
 
0
Sangeeta
[Emantras Interactive Technologies Pvt Lt]
 
 
Answer
following are the namespaces for .net functionality classes 
are

system.data
system.data.oledb
system.data.sqlclient
system.data.xml
 
0
Sandyni
[Emantras Interactive Technologies Pvt Lt]
 
 
Question
What is "out" parameter how it is used in methods?
Rank Answer Posted By  
 Question Submitted By :: Senthil Murugan Ramalingam
This Interview Question Asked @   Polaris
I also faced this Question!!   © ALL Interview .com
Answer
we get the value the value.
 
0
Sujata
 
 
Answer
if we want something from that method/procedure to return 
then use out parameter
1st we call that method with out parameter. then give some 
value to that out parameter in procedure and then use that 
value...
so to get the required value we use out parameter
 
0
Somnath Nanekar
 
 
Answer
A out parameter is a parameter option to pass value to the 
calling function. If a function needs to return multiple 
values to the calling function the it is best to use out 
parameter whereas return parameter can be used for 
returning only one value.

An out parameter should be marked with an out keyword, and 
the parameter should be initialized inside the function.
 
0
Bharani
 
 
Answer
out parameter option to pass value to the 
calling function. for array it can used in a flexible way...
 out can be used as calling function in methods
 
0
Sai Ranganath
 
 
Answer
methods cannot have out parameters only parameters with ref 
or value can be passed to method/function

When we talk about procedures in Sql server we can have out 
parameters. They are mainly used when you want to return 
multiple values and non numeric values from the sql 
procedures

They are usefull when you are calling a procedure from 
another procedure and need some specfic values
 
0
Sendhil Vel
 
 
Answer
Out Parameter: Used to pass a parameter as a reference so
that the function called will set the value. This could be
used to return more than 1 value by a function.
e.g.

public int AddMuliply( int a int b out int c)
{
c a*b;
return ( a+b);
}
 
0
Bhavnasweet04
 
 
Question
How to store jpeg / gif / bmp image in database and how to
retrieve them? The most stressful condition is database is
distributed and stored images can be retrive  from any
computer in network and any one can store images from other
computer!! plss help its urgent.......RAHUL RATHOD
Rank Answer Posted By  
 Question Submitted By :: Rahulrathod
I also faced this Question!!   © ALL Interview .com
Answer
Hi Rahul,
if you want to save image in SQL Server DataBase,
first we have to convert that image into bytes(BCoz SQL 
Server support byte format).
using system.io.iostream we can convert image into stream 
of bytes.

For example :

stfFilename is path that contain your image.

 Public Shared Function LoadImage(ByVal stfFilename As 
String) As System.Drawing.Image

Dim oStream As System.IO.Stream
Dim oAssembly As System.Reflection.Assembly
oAssembly = System.Reflection.Assembly.GetEntryAssembly
oStream = oAssembly.GetManifestResourceStream(stfFilename)
Return System.Drawing.Image.FromStream(oStream)
End Function

for retrieving image from DB just reverse concept.

 
0
Raj
 
 
Answer
For Save Images:

 Private Sub Save()
        Dim strConn, strQuery As String
        Dim cmd As SqlCommand
        Dim img As Image
        Dim imagedata As Byte()
        Dim imgFormat As Imaging.ImageFormat
        Dim myParameter As SqlParameter
        Try
            img = Image.FromFile(Me.txtImage.Text)
            imgFormat = img.RawFormat

            imagedata = ConvertImageToByteArray(img, imgFormat)

            strQuery = "Insert into TBL_STUDENT
(STUD_NAME,SUBJECT,NUMBER,IMAGES) values ('" & txtName.Text
& "','" & txtSubject.Text & "'," & txtNumber.Text & ",@Image)"
            strConn = //Your Connection String
            conn = New SqlConnection(strConn)
            cmd = New SqlCommand(strQuery, conn)

            myParameter = New SqlParameter("@Image",
SqlDbType.Image, imagedata.Length)
            myParameter.Value = imagedata
            cmd.Parameters.Add(myParameter)


            conn.Open()
            cmd.ExecuteNonQuery()
 
            MsgBox("Saved Successfully", MsgBoxStyle.OkOnly)
        Catch ex As Exception

        End Try
    End Sub

  Private Shared Function ConvertImageToByteArray(ByVal
imageToConvert As System.Drawing.Image, ByVal formatOfImage
As Imaging.ImageFormat) As Byte()
        Dim Ret As Byte()

        Try
            Using ms As New MemoryStream()
                imageToConvert.Save(ms, formatOfImage)
                Ret = ms.ToArray()
            End Using
        Catch generatedExceptionName As Exception
            Throw
        End Try

        Return Ret
    End Function

For Retrieve:

 Private Sub RetrieveImages()
        Dim strConn As String
        Dim cmd As SqlCommand
        Dim da As SqlDataAdapter

        Try
            strConn = //Connection string
            conn = New SqlConnection(strConn)
            cmd = New SqlCommand("Select * from
TBL_STUDENT", conn)
            da = New SqlDataAdapter(cmd)
            ds = New DataSet
            da.Fill(ds)
        Catch ex As Exception

        End Try
    End Sub
 
0
Debolina
 
 
Question
What security mechanisms to enforce for Authenticating and
authorizing the users?
Rank Answer Posted By  
 Question Submitted By :: Prgdeveloper
I also faced this Question!!   © ALL Interview .com
Answer
Security mechanism provided by the Global config file where
you can provide authentication and authorization
 
0
Imtiyaz
 
 
Question
How the framework differentiate between 2 version dlls?
eg Version 2.0 and 2.1 dlls are there. both are referred in
the code.but we are using only name of that dll not the
version number. in run time how the framework know which dll
has to be referred?
Rank Answer Posted By  
 Question Submitted By :: Nagalla.tulasi
This Interview Question Asked @   Deloitte
I also faced this Question!!   © ALL Interview .com
Answer
http://msdn.microsoft.com/en-us/library/yx7xezcf.aspx
 
0
Sriram
 
 
 
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