OnClick="TestBtn( <%#Eval("A_ID")%>,<%#Eval("A_Questionid")%>)"方法是
protected void TestBtn(string a, string b)
{
//temp = this.Label1.ToString();
//estr = e.CommandArgument.ToString().Split(',');
int reviewid = Convert.ToInt32(a);
int isconfirm = Convert.ToInt32(b);
//string A_id = e.CommandArgument.ToString();
//string cmd = e.CommandName;
string[] Columns = { "Q_Status", "Q_Isthebest" };
object[] Values = { 1, true };
//if (cmd == "deal")
//{
if (Iqist.updateQuestions(Columns, Values, "where Q_ID=" + isconfirm))
{
string[] col = { "A_Isthebest" };
object[] value = { true };
Ialist.UpdateAnswer(col, value, "a_id=" + reviewid); Response.Write(reviewid.ToString());
}
}
protected void TestBtn(string a, string b)
{
//temp = this.Label1.ToString();
//estr = e.CommandArgument.ToString().Split(',');
int reviewid = Convert.ToInt32(a);
int isconfirm = Convert.ToInt32(b);
//string A_id = e.CommandArgument.ToString();
//string cmd = e.CommandName;
string[] Columns = { "Q_Status", "Q_Isthebest" };
object[] Values = { 1, true };
//if (cmd == "deal")
//{
if (Iqist.updateQuestions(Columns, Values, "where Q_ID=" + isconfirm))
{
string[] col = { "A_Isthebest" };
object[] value = { true };
Ialist.UpdateAnswer(col, value, "a_id=" + reviewid); Response.Write(reviewid.ToString());
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货