好心人,给看一看this. 问题
public string GetClassZD_Nifox(int id, string ZhiDuan){
CMS.Model.ClassContent ci = new CMS.Model.ClassContent();
ci = this.getClassInfo_Nifox(id, this.Param_CurrentClassID);
if (ci != null)
{
str_ZD = ci.ClassCName;
return str_ZD;
}
else
return string.Empty;
}
str_ZD = ci.ClassCName
这个返回的要用变量表示,怎么表示 --------------------编程问答-------------------- 不明白说什么 --------------------编程问答-------------------- 楼主命名看着很不习惯,楼主你是怎么搞起得啊...看着比较痛苦.
public string GetClassZD_Nifox(int id, string ZhiDuan)
{
CMS.Model.ClassContent ci = null;//后面要赋值了这一就写成null吧
ci = this.getClassInfo_Nifox(id, this.Param_CurrentClassID);
if (ci != null)
{
str_ZD = ci.ClassCName;
return str_ZD;
}
else
return string.Empty;
}
写法太那个了,不好说得. --------------------编程问答--------------------
--------------------编程问答-------------------- - - --------------------编程问答-------------------- str_ZD这个好象没定义嘛!ZhiDuan这个定义了又没用到?
public string GetClassZD_Nifox(int id, string ZhiDuan)
{
string str_ZD;
CMS.Model.ClassContent ci = new CMS.Model.ClassContent();
ci = this.getClassInfo_Nifox(id, this.Param_CurrentClassID);
if (ci != null)
{
str_ZD = ci.ClassCName;
return str_ZD;
}
else
return string.Empty;
}
public string GetClassZD_Nifox(int id)
{
string ZhiDuan;
CMS.Model.ClassContent ci = new CMS.Model.ClassContent();
ci = this.getClassInfo_Nifox(id, this.Param_CurrentClassID);
if (ci != null)
{
ZhiDuan = ci.ClassCName;
return ZhiDuan;
}
else
return string.Empty;
}
--------------------编程问答-------------------- ...囧rz...
补充:.NET技术 , C#