谁帮我看看下面这段代码,运行后提示 int xwid = Convert.ToInt32(Request.QueryString["xwid"]); 输入
字符串格式不正确。可在另外一个网站运行时没出现这种错误啊!publicpartialclass_gzgk:System.Web.UI.Page{publicstringf...
字符串格式不正确。可在另外一个网站运行时没出现这种错误啊!
public partial class _gzgk : System.Web.UI.Page
{
public string flashadd;
protected void Page_Load(object sender, EventArgs e)
{
int xwid = Convert.ToInt32(Request.QueryString["xwid"]);
string sql0 = "select * from xwkd where xwid=" + xwid;
DataRow dr = Class1.dr(sql0);
flashadd = dr["remarks"].ToString();
}
} 展开
public partial class _gzgk : System.Web.UI.Page
{
public string flashadd;
protected void Page_Load(object sender, EventArgs e)
{
int xwid = Convert.ToInt32(Request.QueryString["xwid"]);
string sql0 = "select * from xwkd where xwid=" + xwid;
DataRow dr = Class1.dr(sql0);
flashadd = dr["remarks"].ToString();
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询