저장 프로 시저에 commandType을 설정하려고하면 오류가 발생하므로 클래스에 'USING'문이 누락되었다고 생각합니다. CommandType을 =는 CommandType.StoredProcedure ', 인텔리는 찾는데 실패'(주 : 기능이 부분적으로 만 밖으로 거칠게) 사전에 감사저장 프로 시저 및 ADO.NET을 사용하여 DB 업데이트
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;
namespace LegacyForms.Personal
{
public partial class FormBuilder : System.Web.UI.Page
{
protected void btnSubmit_Click(object sender, EventArgs e)
{
//Get the DB connection:
string ConnString = ConfigurationManager.AppSettings["AssociatedBank2011ConnectionString"];
SqlConnection conn = new SqlConnection(ConnString);
SqlCommand cmd = new SqlCommand("uspInsertPersonalAccountApplcation", conn);
cmd.Commandtype = **get error here!**
cmd.Parameters.AddWithValue("@AccountType", AcctType);
cmd.Parameters.AddWithValue("@AccountSubType", AcctSubType);
cmd.Parameters.AddWithValue("@CheckingOption", CheckOption);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
}
}
을} 당신은 System.Data
를 참조 할 필요가
감사합니다 ..... 완벽한 !!!! – Susan