jung1975
asked on
display the output from method on a label
I have created a method in BLL and try to execute it when the use click the submit button.
I am trying to display the result of method on a label : i.e you have generated a new ticket sucessfully : Ticket number 4009. how can I display the output on a labe control?
result = Add.AddNewTicket(create_da te, callbackinfo, clinic_id, requestor, status_id, priority_id, issuetype_id, agent_id, issuedesc, RequestMethod_ID, followup, Log);
--Here is a method in BLL
public void AddNewTicket(DateTime create_date, string callbackinfo, int clinic_id, string requestor, int status_id, int priority_ID, int issuetype_id, int agent_id, string issuedesc, int RequestMethod_ID, DateTime followup, string log)
{
Ticket_HeaderTableAdapter AddNewTicket = new Ticket_HeaderTableAdapter( );
try
{
AddNewTicket.FillAddNewTic ket(create _date, callbackinfo, clinic_id, requestor, status_id, priority_ID, issuetype_id, agent_id, issuedesc, RequestMethod_ID, followup, log);
}
catch (Exception ex)
{
}
}
--Here is the code behind
protected void Submit_Click(object sender, EventArgs e)
{
TicketBLL Add = new TicketBLL();
string result;
DateTime create_date = Convert.ToDateTime(Label1. Text);
string callbackinfo = TextBox2.Text;
int clinic_id = Convert.ToInt32(DropDownLi st1.Select edValue);
string requestor = TextBox1.Text;
int status_id = Convert.ToInt32(DropDownLi st11.Selec tedValue);
int priority_id = Convert.ToInt32(DropDownLi st3.Select edValue);
int issuetype_id = Convert.ToInt32(DropDownLi st7.Select edValue);
int agent_id = Convert.ToInt32(DropDownLi st2.Select edValue);
string issuedesc = TextBox4.Text;
int RequestMethod_ID = Convert.ToInt32(DropDownLi st6.Select edValue);
DateTime followup = Convert.ToDateTime(Complet ionDate.Te xt);
string Log = TextBox6.Text;
Add.AddNewTicket(create_da te, callbackinfo, clinic_id, requestor, status_id, priority_id, issuetype_id, agent_id, issuedesc, RequestMethod_ID, followup, Log);
}
}
I am trying to display the result of method on a label : i.e you have generated a new ticket sucessfully : Ticket number 4009. how can I display the output on a labe control?
result = Add.AddNewTicket(create_da
--Here is a method in BLL
public void AddNewTicket(DateTime create_date, string callbackinfo, int clinic_id, string requestor, int status_id, int priority_ID, int issuetype_id, int agent_id, string issuedesc, int RequestMethod_ID, DateTime followup, string log)
{
Ticket_HeaderTableAdapter AddNewTicket = new Ticket_HeaderTableAdapter(
try
{
AddNewTicket.FillAddNewTic
}
catch (Exception ex)
{
}
}
--Here is the code behind
protected void Submit_Click(object sender, EventArgs e)
{
TicketBLL Add = new TicketBLL();
string result;
DateTime create_date = Convert.ToDateTime(Label1.
string callbackinfo = TextBox2.Text;
int clinic_id = Convert.ToInt32(DropDownLi
string requestor = TextBox1.Text;
int status_id = Convert.ToInt32(DropDownLi
int priority_id = Convert.ToInt32(DropDownLi
int issuetype_id = Convert.ToInt32(DropDownLi
int agent_id = Convert.ToInt32(DropDownLi
string issuedesc = TextBox4.Text;
int RequestMethod_ID = Convert.ToInt32(DropDownLi
DateTime followup = Convert.ToDateTime(Complet
string Log = TextBox6.Text;
Add.AddNewTicket(create_da
}
}
ASKER
yes.. the query regult in data access layer returns something like "you have sucessfully created a new ticket: 4 "
and I 'd like to display this result on the labe control ...
and I 'd like to display this result on the labe control ...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bob