Hi i am trying to fill a listbox with a dataset i have this code in the code behind when a person press a button:
protected void BtnReport_Click(object sender, EventArgs e)
{
try
{
OFAC strName = new OFAC();
if (inputName.Text != "")
{
nameReport = strName.Report(inputName.Text);
LstBoxUsers.DataSource = nameReport.Tables[0];
LstBoxUsers.DataBind();
}
else
Response.Write("<script type='text/jscript'> alert('" + strName.GetResource("res002") + "') </script>");
}
catch (Exception exp)
{
Response.Write("<script type='text/jscript'> alert('" + exp.Message + "') </script>");
}
}
a ...
Go to the complete details ...