Ê
ʹÃûÑï
In vs.net2003£¬there is a code like this
admin_left.aspx
<%if(CanSee(1,14))
{
%>
<tr>
<td align="center" background="images/home_40.gif"><A
href="admin_list.aspx?boardid=78" target="main">Health</A></td>
</tr>
<%}%>
admin_left.cs
protected void Page_Load(object sender, EventArgs e)
{
}
public bool CanSee(int pid, int rightid)
{
return true;
}
and it works ok
but in
vs.net 2005 in admin_left.aspx IDE return a error
"Class, struct, or interface method must have a return type"
why?
how to solve this problem
admin_left.aspx
<%if(CanSee(1,14))
{
%>
<tr>
<td align="center" background="images/home_40.gif"><A
href="admin_list.aspx?boardid=78" target="main">Health</A></td>
</tr>
<%}%>
admin_left.cs
protected void Page_Load(object sender, EventArgs e)
{
}
public bool CanSee(int pid, int rightid)
{
return true;
}
and it works ok
but in
vs.net 2005 in admin_left.aspx IDE return a error
"Class, struct, or interface method must have a return type"
why?
how to solve this problem