avatar
d*e
1
就是what's HtmlInputFile's max size? Is it browser dependant?
I checked all docs regarding HtmlInputFile and HpptPostedFile but found
nothing.
It seems 4MB is the largest file size allowed.
any idea?
avatar
p*n
2
最大可以2GB, 不过缺省的设置是4MB
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q295626
SYMPTOMS
When you try to use the HtmlInputFile control to upload a large file, the file may not be uploaded.
CAUSE
This problem occurs because the default value for the maxRequestLength parameter in the section of the Machine.config file is 4096 (4 megabytes). As a result, files that are larger than this value are not uploaded by default.
RESOLUTION
To resolve this problem, use one of the following

【在 d******e 的大作中提到】
: 就是what's HtmlInputFile's max size? Is it browser dependant?
: I checked all docs regarding HtmlInputFile and HpptPostedFile but found
: nothing.
: It seems 4MB is the largest file size allowed.
: any idea?

avatar
d*e
3
that's so cool!
how can you find it?

file may not be uploaded.
parameter in the section of the Machine.config file is 4096 (4
megabytes). As a result, files that are larger than this value are not
uploaded by default.
configuration section to a larger value. This change affects the
whole computer.
application. For example, the following entry in Web.config allows files that
are less than or equal to 8 megabytes (MB) to be uploaded:maxRequestLength="8192"

【在 p***n 的大作中提到】
: 最大可以2GB, 不过缺省的设置是4MB
: http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q295626
: SYMPTOMS
: When you try to use the HtmlInputFile control to upload a large file, the file may not be uploaded.
: CAUSE
: This problem occurs because the default value for the maxRequestLength parameter in the section of the Machine.config file is 4096 (4 megabytes). As a result, files that are larger than this value are not uploaded by default.
: RESOLUTION
: To resolve this problem, use one of the following

avatar
E*s
4
一个非常小, 简单的程序.
server side: a small VB
...
Namespace TC
...
Public Function somefunc
...
compiled this piece of code to ClassLibrary.dll
Client : a small C#
using System;
using ClassLibrary.TC //here is the question point
...
Main()
{
...somefunc()...
}
I tried "using TC" instead of "ClassLibrary.TC", the client code doesn't
compile. ( I have also tried to put the dll file under the same directory
where the exe file remains, )
My question is: do I have to import this dll, namespace this way? What
avatar
a*y
5
I guess you have to keep the ClassLibrary.

should

【在 E*******s 的大作中提到】
: 一个非常小, 简单的程序.
: server side: a small VB
: ...
: Namespace TC
: ...
: Public Function somefunc
: ...
: compiled this piece of code to ClassLibrary.dll
: Client : a small C#
: using System;

avatar
d*t
6
add reference to the dll,
and then "using tc"

should

【在 E*******s 的大作中提到】
: 一个非常小, 简单的程序.
: server side: a small VB
: ...
: Namespace TC
: ...
: Public Function somefunc
: ...
: compiled this piece of code to ClassLibrary.dll
: Client : a small C#
: using System;

avatar
L*r
7
and check your project setting.
check the setting for names.

【在 d****t 的大作中提到】
: add reference to the dll,
: and then "using tc"
:
: should

avatar
m*e
8
Will that solve the problem?
I think I tried before, still need the ClassLibrary

【在 d****t 的大作中提到】
: add reference to the dll,
: and then "using tc"
:
: should

avatar
a*y
9
Hmm? How? Or simply add ClassLibrary as a default namespace?
avatar
L*r
10
Maybe the default namespace of your vb project is CLASSLibrary. I am not sure.
Just guess. So check the properties of your VB project.

【在 E*******s 的大作中提到】
: 一个非常小, 简单的程序.
: server side: a small VB
: ...
: Namespace TC
: ...
: Public Function somefunc
: ...
: compiled this piece of code to ClassLibrary.dll
: Client : a small C#
: using System;

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。