0
我在asp.net webforms中創建了一個表單,但每次嘗試提交表單時都會收到以下錯誤消息。ASP.NET c#提交表單時發生錯誤404.15
此請求的查詢字符串長度超過配置的 maxQueryStringLength值。
我試過增加這個值,但我似乎無法得到它提交。
這是查詢字符串的形式創建
http://localhost:3819/accidentreportform.aspx?__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTkwNDY0NTE1Mw9kFgJmD2QWAgIDD2QWAgIBD2QWDAIFDxAPFgYeDURhdGFUZXh0RmllbGQFBE5hbWUeDkRhdGFWYWx1ZUZpZWxkBQROYW1lHgtfIURhdGFCb3VuZGdkEBUFEDxTZWxlY3QgU3ViamVjdD4QSmFzb24gVmVhcm5jb21iZQ1CcnVjZSBIYXJ0bGV5DVNhcmFoIEhhd2tpbnMLTGVhbm5lIFBvcnQVBQAQSmFzb24gVmVhcm5jb21iZQ1CcnVjZSBIYXJ0bGV5DVNhcmFoIEhhd2tpbnMLTGVhbm5lIFBvcnQUKwMFZ2dnZ2dkZAIpDxBkDxYfZgIBAgICAwIEAgUCBgIHAggCCQIKAgsCDAINAg4CDwIQAhECEgITAhQCFQIWAhcCGAIZAhoCGwIcAh0CHhYfEAUBMQUBMWcQBQEyBQEyZxAFATMFATNnEAUBNAUBNGcQBQE1BQE1ZxAFATYFATZnEAUBNwUBN2cQBQE4BQE4ZxAFATkFATlnEAUCMTAFAjEwZxAFAjExBQIxMWcQBQIxMgUCMTJnEAUCMTMFAjEzZxAFAjE0BQIxNGcQBQIxNQUCMTVnEAUCMTYFAjE2ZxAFAjE3BQIxN2cQBQIxOAUCMThnEAUCMTkFAjE5ZxAFAjIwBQIyMGcQBQIyMQUCMjFnEAUCMjIFAjIyZxAFAjIzBQIyM2cQBQIyNAUCMjRnEAUCMjUFAjI1ZxAFAjI2BQIyNmcQBQIyNwUCMjdnEAUCMjgFAjI4ZxAFAjI5BQIyOWcQBQIzMAUCMzBnEAUCMzEFAjMxZ2RkAisPEGQPFgxmAgECAgIDAg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82uRW5wDrUB6A4pB5AoeU6lYdkSU43tWDlDKEuVBS%2BAyow7t%2BaOQlJ%2BrpluCTaRNafRGUwSsEfw%2F3O5Dqj%2B2TYZaXI%2B0udxFUXY%2Bczpj7AFwQ%3D%3D&ctl00%24ContentPlaceHolder1%24CompleteByInj=on&ctl00%24ContentPlaceHolder1%24colname=fgh+fgh&ctl00%24ContentPlaceHolder1%24HNumber=78&ctl00%24ContentPlaceHolder1%24Street=jk&ctl00%24ContentPlaceHolder1%24Town=hjk&ctl00%24ContentPlaceHolder1%24County=hjk&ctl00%24ContentPlaceHolder1%24Postcode=hjk&ctl00%24ContentPlaceHolder1%24jobTitle=hjk&ctl00%24ContentPlaceHolder1%24dd=1&ctl00%24ContentPlaceHolder1%24mm=1&ctl00%24ContentPlaceHolder1%24yy=2012&ctl00%24ContentPlaceHolder1%24hh=0&ctl00%24ContentPlaceHolder1%24mmm=0&ctl00%24ContentPlaceHolder1%24AccLocation=hk&ctl00%24ContentPlaceHolder1%24AccEquipment=hjk&ctl00%24ContentPlaceHolder1%24AccDetails=hjk&ctl00%24ContentPlaceHolder1%24AccRecommendations=hjk&SubmitTimeDate=%40DateTime.Now&ctl00%24ContentPlaceHolder1%24Button1=Submit
你爲什麼要使用視圖/事件狀態變量進行GET?做一個POST。 –
Ehr。你有沒有設置你的表單通過GET提交,而不是POST? –
帶查詢字符串的URL長度爲7158個字符。改變你的表單做一個'POST',而不是'GET'。 – CodeCaster