0
点赞
收藏
分享

微信扫一扫

ASP.NET js代码块中写asp.net代码

松鼠树屋 2022-07-18 阅读 106


ASP.NET js代码块中写asp.net代码;无需重新生成

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Response</title>
<script language="C#" runat="server">
protected void Page_Load(object sender, EventArgs e)
{
double money = 1.5;
money = Convert.ToDouble(Convert.ToInt32(money));
Response.Write(money);
}
</script>
</head>
<body>
<form id="form1" runat="server">
</form>
</body>
</html>



举报

相关推荐

0 条评论