J
Jackson_1990
Guest
Hi,
I've got Stacktrace of the exception below
mscorlib at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt32(String value) at Chat0._Default.Page_Load(Object sender, EventArgs e)
to code below
cmd = new SqlCommand("SELECT c_desc FROM chat_tab where c_id=@c_id and user_id=@u_id", conn);
cmd.Parameters.Add("@c_id", SqlDbType.Int).Value = Convert.ToInt32(lb_c_id.Text);
cmd.Parameters.Add("@u_id", SqlDbType.Int).Value = Convert.ToInt32(lb_user_id.Text);
Many Thanks & Best Regards, Jackson Chen
Continue reading...
I've got Stacktrace of the exception below
mscorlib at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt32(String value) at Chat0._Default.Page_Load(Object sender, EventArgs e)
to code below
cmd = new SqlCommand("SELECT c_desc FROM chat_tab where c_id=@c_id and user_id=@u_id", conn);
cmd.Parameters.Add("@c_id", SqlDbType.Int).Value = Convert.ToInt32(lb_c_id.Text);
cmd.Parameters.Add("@u_id", SqlDbType.Int).Value = Convert.ToInt32(lb_user_id.Text);
Many Thanks & Best Regards, Jackson Chen
Continue reading...