Intersoft WebCombo Documentation
How-to: Display message box if unable to add a row
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Advanced Features > ClientAction Engine How-to Topics > How-to: Display message box if unable to add a row

Glossary Item Box

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

  1. Add the following code in WebCombo's AddItem server side event:

    C# Copy ImageCopy 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);
       }
    }                        

  2. Run the project.

See Also