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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net General
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is the raise event used for?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the raise event used for?
Answer
# 1
it is used to raise an application.
 
Is This Answer Correct ?    1 Yes 4 No
Manav
 
  Re: What is the raise event used for?
Answer
# 2
It is used for raising the error from sql statement 
Eg shown below

  IF @@TRANCOUNT>0 ROLLBACK TRANSACTION    
                   Raise an error with the details of the
exception    
                  DECLARE @ErrorMessage NVARCHAR    
                  (    
                          MAX    
                          )    
                          DECLARE @ErrorSeverity INT;    
                  DECLARE    
                          @ErrorState INT;    
                          SELECT    
                          @ErrorMessage=ERROR_MESSAGE    
                          (    
                          )    
                          ,    
                          @ErrorSeverity=ERROR_SEVERITY    
                          (    
                          )    
                          ,    
                          @ErrorState=ERROR_STATE    
                          (    
           )    
                          ;    
                          -- Use RAISERROR inside the CATCH
block to return error    
                          -- information about the original
error that caused    
                          -- execution to jump to the CATCH
block.    
                          RAISERROR    
                          (    
                                  @ErrorMessage,-- Message
text.    
                                  @ErrorSeverity,--
Severity.    
                                  @ErrorState -- State.    
                          )    
                          ;
 
Is This Answer Correct ?    1 Yes 3 No
Vini778
 
 
 
  Re: What is the raise event used for?
Answer
# 3
Raise Event is used for raising events. ex raising control 
event from main page .
 
Is This Answer Correct ?    3 Yes 2 No
Dhananjay Yadav
 
  Re: What is the raise event used for?
Answer
# 4
The RaiseEvent statement raises an event previously declared
with the "Event" statement. Since only classes can raise
events, usage of this keyword is reserved for class modules,
forms and user controls.
 
Is This Answer Correct ?    3 Yes 0 No
Nagasaichand
 

 
 
 
Other Dot Net General Interview Questions
 
  Question Asked @ Answers
 
What are the contents of assembly? Ksb4
What does the "EnableViewState" property do?  1
How can you clean up objects holding resources from within the code? Wipro1
What?s a Windows process?  1
How do you create threading in .NET? What is the namespace for that?  2
What is a Strong Name?  1
Difference b/w dataset.clone and dataset.copy ? Protech1
What are Satellite Assemblies? How you will create this? How will you get the different language strings?  3
What security mechanisms to enforce for Authenticating and authorizing the users?  1
what are the controls used to upload a file from client to server?  2
What is RunTime Polymorphism? Deloitte2
What is smart navigation?  2
i have an array of 10 objects whose values are from 1-10 randomly inserted. i have deleted one array object. tell me what is that value? write the logic of it. Deloitte1
What application do you use to install a Windows service?  1
How is development of a Windows service different from a Windows Forms application?  1
What are the features of UIP Application Block?  1
syntax for binding the data from database Satyam1
How can we convert XML data into DataBase table IN .Net? Wipro2
what is event inheritance and event delegation?  1
What is MSIL, IL, CTS?  2
 
For more Dot Net General Interview Questions Click Here 
 
 
 
 
 
   
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