Response.Redirect错了,怎么解决?
Response.Redirect错了,怎么解决?
系统提示
C:\Documents and Settings\Administrator\桌面\NetAlumni\Component\Fun.cs(80): “System.Web.UI.UserControl.Response”表示“属性”,此处应为“类”
代码:
using System;
using System.Data.OleDb;
using System.Text;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace NetAlumni
{
/// <summary>
/// Fun 的摘要说明。
/// </summary>
public class Fun : UserControl
{
protected string UserName;
protected string FullName;
protected string Password;
protected string Skin;
protected string Expires;
protected OleDbConnection Conn = new OleDbConnection(StrConn);
protected static void MyFS(string Url,string Msg)
{
Response.Redirect(Url);
}
}
}