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 |
Can u any body send the DotNet Interview questions and answers to my mail please....... mindukuru@yahoo.com
What does jit do?
What is the concept of inheritance in .net?
Can you write a class without specifying namespace?
I'm having some trouble with cas. How can I troubleshoot the problem?
How Can Creating Installation Components in .Net?
Is there any attempt system for microsoft technology papers?
Can you configure a .NET Remoting object via XML file?
How can I tell if .net 3.5 is installed?
How viewstate is being formed and how it is stored on client in .net?
Describe ways of cleaning up objects.
Please send me the latest asp.net,c#,sql server interview questions .my email id is ramtryin@gmail.com