asp.net页面用response在后台输出代码 response.write("");
head="<!DOCTYPEhtmlPUBLIC\"-//W3C//DTDXHTML1.0Transitional//EN\"\"http://www.w3.org/T...
head = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
head += "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
head += "<head runat=\"server\">\n";
head +="<title>"+ title +"</title>\n";
head += "<meta name=\"keywords\" content=\"" + keywords + "\"/>\n";
head += "<meta name=\"description\" content=\"" + description + "\"/>\n";
head += "<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
response.write("head");
然后 我在后台中实例化gridview 后用response.write输出好像不对.前台显示
System.Web.UI.WebControls.GridView 好像用的方法不对...不知道怎么整?我是一个新手麻烦会的DX提示一下谢谢 展开
head += "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
head += "<head runat=\"server\">\n";
head +="<title>"+ title +"</title>\n";
head += "<meta name=\"keywords\" content=\"" + keywords + "\"/>\n";
head += "<meta name=\"description\" content=\"" + description + "\"/>\n";
head += "<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
response.write("head");
然后 我在后台中实例化gridview 后用response.write输出好像不对.前台显示
System.Web.UI.WebControls.GridView 好像用的方法不对...不知道怎么整?我是一个新手麻烦会的DX提示一下谢谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询