You can display a message box during AddItem event.
In this topic, you will learn how to display message box if unable to add a row.
To display message box if unable to add a row
- Add the following code in WebCombo's AddItem server side event:
C# Copy Code protected void WebCombo1_AddItem(object sender, ISNet.WebUI.WebCombo.RowEventArgs e) { if (e.Row.Value == "ABC" || e.Row.Value == "abc") { WebCombo1.GetClientAction().Alert("Unable to add " + e.Row.Value); } }
- Run the project.