Home »
MCQs »
ASP.Net MCQs
Which is the correct syntax to add an event handler in ASP.Net?
51. Which is the correct syntax to add an event handler in ASP.Net?
- Attributes("Event","Javascript_Code();")
- Attributes.Add("Event","Javascript_Code();")
- Attributes.Handle("Event","Javascript_Code();")
- None of the above
Answer: B) Attributes.Add("Event","Javascript_Code();")
Explanation:
The correct syntax to add an event handler in ASP.Net is:
Attributes.Add("Event","Javascript_Code();")