asp.net代码分析
以下是一个易做图的后台代码!我想知道其中这句话那来的send s = new send();什么用?感觉是类或方法!但是是系统的还是? protected void Button1_Click(object sender, EventArgs e)
{
int length = GzwlCurrencyControl1.getvalue.Length;
if (length != 0)
{
string[] str = new string[length];
str = GzwlCurrencyControl1.getvalue;
string sss = str[0].ToString();
send s = new send();
try
{
s.Send("HWR", str, "1");
Page.RegisterStartupScript("dd", "<script language='javascript'>alert('信息已发送!');</script>");
}
catch (Exception ex)
{
Page.RegisterStartupScript("dd", ex.Source + ex.Message + ex.InnerException);
}
}
else
{
Page.RegisterStartupScript("dd", "<script language='javascript'>alert('请选择发送号码!');</script>");
}
}
追问:嗯!找到那个类了!不过我在类里还有个问题在类里有这么个段语句
SqlConnection scon = new SqlConnection(ConfigurationManager.ConnectionStrings["MAS_dataconfig"].ConnectionString);
SqlCommand scom = scon.CreateCommand();scom.CommandText = "Insert dailyawoke 。。。
然后我在Web.Config里找到了
<add name="MAS_dataconfig" connectionString="server=.;database=MAS;user id=sa;password=123" providerName="System.Data.SqlClient"/>
我想知道database=MAS;是什么意思?没这数据库啊?