由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - 问个问题
相关主题
inherit from HtmlInputFilelistbox 的问题
A potentially dangerous Request.Form value was detected from the clientDoes .NET have built-in Cryptography?
visual studio为什么不加eclipse修改建议的功能website project
Named Parameters 心得:use XPath (+namespace)
HttpWebRequest小程序how to get reference.vb file?
关于SqlDataAdapter的初级问题求助webservice 只能定义一个函数吗?
一个xml的问题。请问关于shared cache
DALFactory in PetShop 3VB.Net question
相关话题的讨论汇总
话题: file话题: uploaded
进入DotNet版参与讨论
1 (共1页)
d******e
发帖数: 143
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?
p***n
发帖数: 635
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?

d******e
发帖数: 143
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

E*******s
发帖数: 42
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
a**y
发帖数: 335
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;

d****t
发帖数: 362
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;

L*******r
发帖数: 1011
7
and check your project setting.
check the setting for names.

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

m**********e
发帖数: 19
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

a**y
发帖数: 335
9
Hmm? How? Or simply add ClassLibrary as a default namespace?
L*******r
发帖数: 1011
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;

1 (共1页)
进入DotNet版参与讨论
相关主题
VB.Net questionHttpWebRequest小程序
xmldocument and webservice question 关于SqlDataAdapter的初级问题求助
Help , a entry level question about C#一个xml的问题。
(zuan)Bill Gates' New Year's Resolutions (转载)DALFactory in PetShop 3
inherit from HtmlInputFilelistbox 的问题
A potentially dangerous Request.Form value was detected from the clientDoes .NET have built-in Cryptography?
visual studio为什么不加eclipse修改建议的功能website project
Named Parameters 心得:use XPath (+namespace)
相关话题的讨论汇总
话题: file话题: uploaded