What is the raise event used for?
Answers were Sorted based on User's Feedback
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 ? | 7 Yes | 0 No |
Answer / dhananjay yadav
Raise Event is used for raising events. ex raising control
event from main page .
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / vini778
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 | 4 No |
What are the new features of Framework 1.1 ?
What versions of .net are there?
Explain about the features and elements present in Visual studio.NET IDE?
Can we use data reader to bind gridview?
Explain security measures exist for .net remoting in system.runtime.remoting?
Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?
How is .net able to support multiple languages?
Describe the compilation process for .net code?
what is prototype design pattern in .net
What is Ajax? How it is related to your project?
How is development of a Windows service different from a Windows Forms application?
Explain how to produce an assembly?