GeekInterview.com
Answered Questions

Displaying leading/trailing zero in text box

Asked By: sriram_tvs | Asked On: Jan 25th, 2008

Hi, I have many text boxes to input numeric values in the form. The problem is when my text box lost its focus , if any numeric value entered in text box without any dismal place will automatically display 2 dismal zero. Else if no values entered in the text box it should display 0.00 value in it ....

Answered by: lijoklouis on: Sep 20th, 2009

Correct answer is
Text1.Text = Format(Text1.Text, "0.00")

Answered by: madhu3768 on: Jun 18th, 2008

Write the below code in the lost focus event

text1,text = format(val(text1.text), "0.00")

What is diffrence between debug.Trace and trace.Write?Where is the information of debug stored?

Asked By: Shimab | Asked On: Sep 26th, 2007

Answered by: kirangiet on: Oct 23rd, 2009

Debug and Trace both are used to display messages. However Debug won't work in Release mode.
Debug information stores in .pdb file.
PDB stands for Project DataBase.


 

Answered by: Lavanyaaru on: Feb 5th, 2008

Debug.write is not compiled and they are meant only for debug builds.
Trace.write is compiled and can be used in Debug and Release builds of the Applications

Explain about rowstate in a dataset table?

Asked By: jashuvad | Asked On: Sep 14th, 2007

Answered by: Lavanyaaru on: Jan 29th, 2008

contd...A newly created DataRow has its RowState set to Detached until it is added to the DataRowCollection via the DataRowcollection::Add method. The RowState is initialized to Added until ...

Answered by: Lavanyaaru on: Jan 29th, 2008

It is the current state of the row w.r.t. its relationship to the DataRowCollection.THe value of Rowstate is dependent on the method DataRow.AcceptChanges

What is meant my datarow versioning in ADO.Net. Where it is used?

Asked By: guruprasad | Asked On: May 11th, 2007

Star Read Best Answer

Editorial / Best Answer

Answered by: Lavanyaaru

View all questions by Lavanyaaru   View all answers by Lavanyaaru

Member Since Jan-2008 | Answered On : Jan 29th, 2008

There are 3 versions for each DataRow object.
1.Original
2.Current
3.Proposed

The HasVersion( ) method of the DataRow can determine whether a specific version of the row exists. If the version exists, column values for it can be retrieved using one of the three overloads of the DataRow indexer


The Original version contains the values that were loaded into the row.

The Current version contains the latest version of the data, including the changes made since the data was originally loaded. The Original version isn't available for newly created rows.

A Proposed row version is made available while the row is in edit mode and contains the changes that have been made to the row while it was in edit mode

If CancelEdit( ) , RejectChanges() methods are called, the values in the Proposed version are simply discarded

Answered by: Lavanyaaru on: Jan 29th, 2008

There are 3 versions for each DataRow object.1.Original2.Current3.ProposedThe HasVersion( ) method of the DataRow can determine whether a specific version of the row exists. If the version e...

How many records can take clustured index in SQL server

Asked By: Aryan Khan | Asked On: Mar 29th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: vvijaychandra

Answered On : Jun 22nd, 2006

a clustered index is a special type of index that reorders the way the records in the table are physically stored . therefore the table can have only one clustered index.

Answered by: Pendurti on: Sep 14th, 2008

FYI..Clustered index is something that deals with the columns but not the records.These define the physical sorting of the rows in the database in the storage media.A database table can have utmost on...

Answered by: ushalakshmi on: Apr 17th, 2008

A clustered index is a special type of index that reorders the way records in the table are physically stored. Clustered index is created by default when we create a primary key on a column.Everyone k...

What is the difference between excute query and excute nonquery.?

Asked By: Interview Candidate | Asked On: Jul 22nd, 2005

Answered by: sheetal maheshwari on: Nov 24th, 2011

: execute query is used for DDL commands whereas execute nonquery for DML.

Answered by: Vimlesh Kumar on: Sep 8th, 2011

In ADO.net for Command Object you have 3 methods
1.ExecuteReader - Select statements
2.ExecuteNonQuery - DML statements(Insert,Update and Delete) - Returns Number of rows affected
3.ExecuteScalar - Returns a single value from Aggregate functions like SUM,AVG,COUNT etc

Name some of the asp components?

Asked By: Interview Candidate | Asked On: Sep 12th, 2004

• ad rotator component – a way to manage advertisements on the web site. • content linker component – a technique to direct users through a set of pages on a web site by creating a list of urls and description of the next and previous pages. • browser capabilities component – allows to customize the...

Answered by: Lavanyaaru on: Sep 16th, 2008

Content RotatorThe ASP Content Rotator component creates a ContentRotator object that displays a different HTML content string each time a user enters or refreshes a page. A text file, called the Cont...

Answered by: shriramesh on: Jul 22nd, 2006

uploading

email

encryption

pdf

data-bound grids

image

resizing

What type of recordsets are available in ADO?

Asked By: Interview Candidate | Asked On: May 3rd, 2005

Answered by: Rajkumar on: Dec 11th, 2011

Dynaset
Snapshot
Dynamic
Table type
Forward only

Answered by: vidyajnath on: Jun 22nd, 2010

dynaset
Snapshot
dynamic
table type

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: