0
我需要10M字符粘貼到文本框中。從我讀過的內容來看,System.int32是可能的,但由於某些原因,我的代碼將會執行4百萬個字符,但會掛起在大約2^22的4.1M字符處。asp文本框在4.1M字符處掛起。需要更多cowbell
通過hang,我的意思是它沒有得到Page_Load(),也沒有得到btnPressed_Click()。相反,它什麼都不做。我不知道如何弄清楚它在做什麼......
附加的代碼。感謝閱讀和任何線索!
Option Strict On
Imports System.Data
Imports System.Runtime.InteropServices.ComTypes
Imports Class1
Imports Oracle.ManagedDataAccess.Client
Partial Class _Default
Inherits MyPage
'Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.PreLoad
Beep()
End Sub
Protected Sub Page_PreRender(sender As Object, e As EventArgs) Handles Me.PreRender
End Sub
Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadComplete
validate_user()
End Sub
Public Class TempIsZeroException : Inherits ApplicationException
Public Sub New(ByVal message As String)
MyBase.New(message)
End Sub
End Class
Protected Sub btnPressed_Click(sender As Object, e As EventArgs) Handles btnPressed.Click
modalLoading.Hide()
End Sub
Protected Sub btnPressed_PreRender(sender As Object, e As EventArgs) Handles btnPressed.PreRender
End Sub
End Class
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" validaterequest="false" %>
<%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="<%=Application("styleurl")%>" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=Application("scripturl")%>"></script>
<style type="text/css">
.auto-style1 {
width: 544px;
}
#txtAreaInfo {
height: 116px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<uc1:header ID="Header1" runat="server" />
<div id="MainDiv" runat="server">
<asp:updatepanel runat="server">
<ContentTemplate>
<script type="text/JavaScript">registerEndRequest();</script>
<table>
<tr>
<td>
<table width="300px">
<tr>
<td style="width: 80px"></td>
<td class="auto-style1">
<asp:TextBox ID="txtEntry4" TextMode="multiline" runat="server" Width="240px" Height="141px" Style="margin-top: 0px" spellcheck="false" />
</td>
</tr>
<tr>
<td style="width: 80px"></td>
<td class="auto-style1">
<asp:Button ID="btnPressed" runat="server" CssClass="purplebutton" Width="246px" Text="Drop, Create and Load Table" ToolTip="Creates table in EDW" Height="25px" OnClientClick="javascript:showPopup('modalLoading');txtEntry5.value='';" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</ContentTemplate>
</asp:updatepanel>
</div>
<asp:Panel ID="pnlPopup" runat="server" CssClass="progress" Style="display: none;">
<div class="Progresscontainer">
<div class="Progressheader">
Loading, please wait...</div>
<div class="Progressbody">
<img id="loader" src="images/ajax-loader.gif" alt="" />
</div>
</div>
<cc1:ModalPopupExtender ID="modalLoading" runat="server" TargetControlID="pnlPopup"
PopupControlID="pnlPopup" BackgroundCssClass="modalBackground">
</cc1:ModalPopupExtender>
</asp:Panel>
</form>
</body>
</html>
您可能會遇到默認的最大請求長度限制 - 也許[this](http://stackoverflow.com/q/3853767/2278086)會有幫助嗎? – Mark
就是這樣!謝謝馬克。你應該刪除你的隱形空氣的小費! – jim