ASP.NET Interview Questions

Ques. How can you upload a file in

Ans. Using File-Upload control.

Ques. How will you hide an image which is inside a DataGrid, when you click on that?

Ans. The appropriate code should be written under RowValidating Event of DataGrid

Ques. What is Try and Catch Block and Finally? What kind of code you should write in Finally Block?

Ans. Try, Catch is used for Exception Handling where we write the code which may throw some exceptions in try block and exception is handled in Catch block. Code in Finally block is executed after the successful execution of Try/Catch Block. Usually the code r

Post Question