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 is the default value of CHAR type?in C# using asp.net?
What are situations when you register .NET assembly in GAC ?
What is .NET Framework?
How is threading done in .net?
Explain the two different types of typecasting?
Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?
What is the difference between a debug and release build?
What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?
What is Custom attribute? How to create? Namespace? If I'm having custom attribute in an assembly, how to say that name in the code? What is Reflection in .NET?
3 Answers Accenture, CC Soft, Infosys,
What are the providers available with VS.NET ?
What is meant by globalization?
What are the different types of memory in .net?