Professional Documents
Culture Documents
NET Q&A
Which property specifies primary key for Datagrid?
Ans1. Primarykey
Ans2. DataFieldKey
Ans3. DataKey
Ans4. IndexKey
Correct Answer : 2
How do you read value of ID column from current row in SQLDataReader object
called SDR
Ans1. sdr("id")
Ans2. sdr.columns("id")
Ans3. sdr.row("id")
Ans4. sdr.Items("id")
Correct Answer : 1
How do you send control to page in such a way after the page is executed
control is returned to caller page?
Ans1. Response.Redirect
Ans2. Server.Transfer
Ans3. Server.Execute
Ans4. Response.Include
Correct Answer : 3
1: <form>
4: </form>
Which property can be used to identify the first request of the client
Ans1. Request.IsNewSession
Ans2. Request.NewSession
Ans3. Request.IsFirstRequest
Ans4. Request.IsNew
Correct Answer : 1
I want to have two textboxes in the same page with corresponding buttons.
But only one of these two textboxes should be validated.
Which feature of ASP.NET 2.0 do you use?
Ans1. Custom validation
Ans2. Validation Summary
Ans3. RegualExpressionValidator control
Ans4. Validation Grouping
Correct Answer : 4
If you have to use data retrieved from database and use it even after
disconnecting from database which object do you use?
Ans1. DataReader
Ans2. Command
Ans3. DataSet
Ans4. DataSource
Correct Answer : 3