unwanted page redirection

Results 1 to 2 of 2

Thread: unwanted page redirection

  1. #1
    Join Date
    Dec 1969

    Default unwanted page redirection

    Hi! <BR>in my index page i have search text box and a image go button<BR>&#060;asp:textbox id="txtSrch" tabIndex="1" runat="server" class="input"&#062;&#060;/asp:textbox&#062;&nbsp;&#060;input id="imgSearch" tabIndex="2" type="image" alt="search" src="images/go.gif" align="absMiddle" border="0" name="submit" runat="server"&#062;<BR>now when i just hit enter without touching both of those components the go fuction calls this line<BR>Response.Redirect("PublicSearch.aspx?s=" & txtSrch.Text)<BR>as its getting a blank text and looking for it in my search page does any one have any idea how to avoid this useless navigation. thanks in forward<BR><BR>robin

  2. #2
    Join Date
    Dec 1969

    Default RE: unwanted page redirection

    Are you using a RequiredFieldValidator?<BR><BR>If not - use the validation to require some input before the button fires the event so that is won&#039;t submit blank results.<BR><BR>Chuke

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts