麻烦告诉帮我把下面的代码该好...<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Net" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
public string aa = "11";
aa = re();
public string re()
{
return "1111";
}
%>
<script language="C#">
public string bb = "22";
bb = "222222";
private void Page_Load(object sender, System.EventArgs e)
{
bb = HttpContext.Current.Request.Url.PathAndQuery.ToString();
}
</script><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
</head>
<body>
<%=aa%>
<%=bb%>
</body>
</html>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Net" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
public string aa = "11";
aa = re();
public string re()
{
return "1111";
}
%>
<script language="C#">
public string bb = "22";
bb = "222222";
private void Page_Load(object sender, System.EventArgs e)
{
bb = HttpContext.Current.Request.Url.PathAndQuery.ToString();
}
</script><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
</head>
<body>
<%=aa%>
<%=bb%>
</body>
</html>
解决方案 »
- C#与ACESS的插入,更新与读取
- 用c#求三角形夹角
- 请问一个窗口全屏(fullscreen)时,是否会给其他窗口发消息?给哪些窗口发消息?发什么消息?谢谢!在线等啊
- 求救-DataGridViewCheckBoxColumn的值该怎么取
- 学生注册系统应该如何分析??帮帮忙阿 谢谢阿
- 请教一个关于文档转换为XML的问题
- 基于http协议在windows mobile 无法运行 在控制台中可以
- 关于正则表达式
- Delphi7 调用C#写的com组件(其中调用了webservice)问题
- 请问如何访问并修改arraylist中对象元素的属性值?
- des加密问题
- 打包工具tiger的使用(图标问题)
public string bb = "22";
bb = "222222";
.net的优势似乎体现不出来
public string bb = "22";
bb = "222222";
=======================
改成
<script runat="server" language="C#">
public string bb = "22";
//bb = "222222";去掉===================
<%
public string aa = "11";
aa = re();
public string re()
{
return "1111";
}
%>
=========================
有这样的写法吗??没这样的写法哦!!!