35 Microsoft Web-based dialogs To display a message to user: private void cmdViewInfo_Click(...) { if (this.ListBox1.SelectedItem == null) { // nothing selected this.lblErrorMsg.Text = Please select an attendee! ; return; }.