Hi,
I am could not imagine what the purpose of your code…
I fixed the error as mention above...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class listboxinsert : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ASPxButton1_Click(object sender, EventArgs e)
{
ASPxListBox1.Items.Add(ASPxTextBox1.Text);
ASPxTextBox1.Text = "";
}
protected void ASPxButton2_Click(object sender, EventArgs e)
{
ASPxListBox1.Items.Remove(ASPxTextBox1.Text);
}
}