The code below produced the error: OUT or INOUT argument 3 for routine mysql.getAuthentication is not a variable or NEW pseudo-variable in BEFORE trigger. Did I miss something?.
using System;
using System.Data.Odbc;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MySql.Data.MySqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string MyConString = "SERVER=localhost;" +
"DATABASE=mysql;" +
"UID=root;" +
"PASSWORD=12345;";
MySqlConnection connection = new MySqlConnection(MyConString);
MySqlCommand command = new MySqlCommand("getAuthentication", connection);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(new MySqlParameter("uname", "admbsa1"));
command.Parameters.Add(new MySqlParameter("pws", "$$!@!#*&"));
command.Parameters.Add(new MySqlParameter("@total",SqlDbType.Int));
command.Parameters.Add(new MySqlParameter("@pwsval",SqlDbType.VarChar));
command.Parameters.Add(new MySqlParameter("@logId",SqlDbType.VarChar));
command.Parameters.Add(new MySqlParameter("@grpname", SqlDbType.VarChar));
command.Connection.Open();
command.ExecuteNonQuery();
command.Connection.Close();
string t_return = command.Parameters["@total"].Value.ToString();
Console.Write(t_return);
}
protected void GridView1_SelectedIndexChanged1(object sender, EventArgs e)
{
}
}