|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
帮助用户快速实现各种应用服务,ASP商有整合各方面资源的能力,可在短期内为用户提供所需的解决方案。例如,典型的ERP安装,如果要在客户端安装的话需要半年到二年的时间,但是美国的一些ASP商如USI和CORIO能在90—120天内提供ERP应用方案。request|工具Whenyoupostalargeformfield,youmayreceivethefollowingerrormessage:
ErrorType:
Requestobject,ASP0107(0x80004005)
Thedatabeingprocessedisovertheallowedlimit.
InMicrosoftInternetInformationServer(IIS)4.0,youmayreceivethefollowingerrormessage:
RequestobjecterrorASP0107:80004005
StackOverflow
/projectname/page.asp,lineXX
Thedatabeingprocessedisovertheallowedlimit.
CAUSE
ThesizelimitofeachformfieldthatisretrievedintheRequestobjectis102,399bytes.Theerroroccurswhenyouexceedthislimit.
RESOLUTION
Toresolvethisproblem,useoneofthefollowingmethods:
InsteadofreadingformvariablevalueswiththeRequest.Formcollection,useRequest.BinaryRead(Request.TotalBytes),andparsetheformvaluesfromtheoutputofRequest.BinaryRead.
UseaFileUploadscheme,suchasMicrosoftPostingAcceptor.
BreaktheHTMLformvariablesintomultipleformvariablesbeforeyousubmittheform.The102,399bytelimitisforeachformvariable,soyoucanhavemultipleformvariablesof102,399charactersorless.Thefollowingsamplecodeillustratesthis:
WARNING:ANYUSEBYYOUOFTHECODEPROVIDEDINTHISARTICLEISATYOUROWNRISK.Microsoftprovidesthiscode"asis"withoutwarrantyofanykind,eitherexpressorimplied,includingbutnotlimitedtotheimpliedwarrantiesofmerchantabilityand/orfitnessforaparticularpurpose.
<FORMmethod=postaction=LargePost.aspname=theFormonsubmit="BreakItUp()">
<Textarearows=3cols=100name=BigTextArea>Abunchoftext...</Textarea>
<inputtype=submitvalue=go>
</form>
<SCRIPTLanguage=JavaScript>
functionBreakItUp()
{
//Setthelimitforfieldsize.
varFormLimit=102399
//Getthevalueofthelargeinputobject.
varTempVar=newString
TempVar=document.theForm.BigTextArea.value
//Ifthelengthoftheobjectisgreaterthanthelimit,breakit
//intomultipleobjects.
if(TempVar.length>FormLimit)
{
document.theForm.BigTextArea.value=TempVar.substr(0,FormLimit)
TempVar=TempVar.substr(FormLimit)
while(TempVar.length>0)
{
varobjTEXTAREA=document.createElement("TEXTAREA")
objTEXTAREA.name="BigTextArea"
objTEXTAREA.value=TempVar.substr(0,FormLimit)
document.theForm.appendChild(objTEXTAREA)
TempVar=TempVar.substr(FormLimit)
}
}
}
</SCRIPT>
ThereceivingActiveServerPage(ASP)pagereconstructsthevariable:
<%
DimBigTextArea
ForI=1ToRequest.Form("BigTextArea").Count
BigTextArea=BigTextArea&Request.Form("BigTextArea")(I)
Next
%>
</p>对于中小型web应用来说,php有很强的竞争力,linux+apache+mysql+php(lamp)的组合几乎可以胜任绝大多数网站的解决方案,对于大型应用来讲,对于系统架构要求更高,需要有成熟的框架支持,jsp的struts是个不错的框架,国内介绍它的资料也非常多,应用逐渐广泛起来。asp就不用说了, |
|