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?

  1. Attributes("Event","Javascript_Code();")
  2. Attributes.Add("Event","Javascript_Code();")
  3. Attributes.Handle("Event","Javascript_Code();")
  4. 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();")

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.