社区
C#
帖子详情
请问Response.Write(System.Convert.ToInt64(202*256*256*256))这样会报错呢
suhuoqiang
2004-08-29 07:19:47
如题,,要怎么转换才能得到结果呢?
...全文
77
2
打赏
收藏
请问Response.Write(System.Convert.ToInt64(202*256*256*256))这样会报错呢
如题,,要怎么转换才能得到结果呢?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
13880079673
2004-08-29
打赏
举报
回复
Response.Write((System.Convert.ToInt64(202*256))*(System.Convert.ToInt64(256*256)))
这样就行了,你的语句是因为int*int得到的临时对象也是int型,如果乘的时候越界的话还没到计算出结果就会发生异常
mulintaomulintao
2004-08-29
打赏
举报
回复
不回是结果太大了把
python microbit typeerror_TypeError:无法转换为
int
- Micropython(TypeError: can't
convert
to
int
- Micropy...
TypeError:无法转换为
int
- Micropython(TypeError: can't
convert
to
int
- Micropython)我有使用micropython的算术问题。from microbit import *counter = 0while True:display.show('8')if accelerometer.was_gesture('shake'):d...
Response
.
Write
File无法下载大文件的解决办法
以前用
Response
.
Write
File(filename),但当遇到大文件时无法完整下载。 该方法最大的问题,它不是直接将数据抛到客户端,而是在服务器端(IIS)上缓存。当下载文件比较大时,服务器压力
会
很大,iis虽然支持2G大小的文件下载,但当文件上了很多M时,由于服务器以及网络等因素的影响,异常概率相当大。所以当需要下载大文件时就不能使用上面的方法了。 微软推荐以下方法代替之: ■将
Response
.AddHeader实现下载,解决乱码问题
asp.net实现文件下载,修改文件名称,解决乱码问题,分块下载,缓解服务器压力。多种下载方法
C#开发web程序中关于 一般处理程序中的context.
Response
.ContentType = "text/plain"
简单的静态页面calculator.html:<!DOCTYPEhtml> <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/> &l...
asp.net
response
.ContentType 下载文件的四种方法
protected void Button1_Click(object sender, EventArgs e) 2 { 3 //TransmitFile实现下载 4 5 /* 6 微软为
Response
对象提供了一个新的方法TransmitFile来解决使用
Response
.Binary
Write
7 下载
C#
110,538
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章