Click here to Skip to main content
14,773,274 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to do a google search ,for this i have written code as

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" ViewStateMode="Disabled" EnableViewState="false" Inherits="MasterPage" %>


<form id="form1" name="myform" runat="server" method="get" action="http://www.google.com/search">


   <input type="text"  runat="server" id="field" name="q" size="25" class="Normal_Txt" style="  outline:0; color:#d2d2d2; width: 140px; height: 30px;  background-color: Transparent; border-color: Transparent; border-style: none; border-width: 0px"
maxlength="255" value="Google Site Search" onfocus="if(this.value==this.defaultValue)this.value=''; this.style.color='#d2d2d2';"  önblur="if(this.value=='')this.value=this.defaultValue; " />

                                   
<input type="hidden" name="sitesearch" value="http://data-pointonline.com/" />



$(function () {
    $("#field").keyup(function (event) {


        if (event.which == 13) {

            // document.myform.submit();

          $("form").submit();
        }
    });
});


I dont have submit button that why i have written jquery code to sumbit a form .
I am getting error as
414. That’s an error.
The requested URL /search... is too large to process. That’s all we know.

the url is as follow
http://www.google.com/search?ContentPlaceHolder1_TabContainer1_ClientState=%7B%22ActiveTabIndex%22%3A0%2C%22TabState%22%3A%5Btrue%2Ctrue%5D%7D&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=A64VnghwX7ariylFiRunhbMz1ff6JyL%2FOdfovbBE8tXJkIWp%2F7odzVi8ASIW3sztQ0j%2Fi1ljUidb0gosyNwxHC5SEgW%2FU5jOmQHI4R3ipU2nekqmx3Q0JdTYXnIdpbs%2B74Qio2XOUd8SgwqJpolQhTDbOgDlMk5THsRFBZJpTYHxqIrxNZRvna8Vplg0L5V9MRgRsIxF8bgGSQegiQ8qCk%2F6Hp6%2BF2xvNKLfAT1BblYEduEm%2F2G8dGoIkg3iWj1PvFfzToYtWOglQGzdotWULOQUvUt1xfu3fmU114LRA7bL9zn3mCP2XV7CHg1s4JK8S9kDIZVtZEPnGUjTBD0vJlCtjLBIYwsPwpOMAN5eicW%2BYY9RuAeT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Tzl%2FSCTxRd0s2AwCraXvqI93A%2FNZOL7be9jrgKVei6KT9Aj0Qp9hyaHCDmL0%2BLkoFHv5Ixkfo8EWeq5ZwCXrJiRfTNUbGkz1XhqeOCGLZl9QXfIapu4CrbTxi4ua5LFfI7JmbA0V8a4LX8V3sSLpMaTFFMzaGZR%2BVVvbBdc9JnsWyzkIoC0ddbcoKGbw0nfXVlrVC9evZiG58ZlPFcLGYtlrtDJiwgY44J4ATQBI%2BKqkygl3r0CKQtK%2BuDaU3AnS6loINO5diEmJ6oCFPky1a%2BMg36XunwleFp46ue8cvxFMw6ultMLRVjKHXc%2Bm6o24Qi0trdWw5wCrLJjDB314VD13%2FP56wGDsM%2FodY3O7zQJdMxlqC6M59dWD1BVFCG5y2mTERtkfIrlozg%2FoWPJAMCAnBtK4m3ozuFQFNGj



what have to do to solve this issue ??
Posted

1 solution

As mentioned in the error, check your URL length.
See the details of HTTP Error 414 Request URI too long[^]

Here is the FAQ section on url length. Hope this will help you:
http://code.google.com/apis/chart/image/faq.html#url_length[^]

Also see a similar thread : 414. that's an error.[^]


--Amit
   
v2
Comments
aassaahh 7-Jun-13 1:07am
   
disabling viewstate is working for me .
_Amy 7-Jun-13 1:18am
   
But that is not a good solution. You should not disable it. You should check for URL length.
--Amit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900