Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8536831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:45:31+00:00 2026-06-11T10:45:31+00:00

This one has me perplexed. I have a web app that does many functions,

  • 0

This one has me perplexed. I have a web app that does many functions, but the part that it is bombing out is when doing a Search function which calls a webservice and returns results back from DB2.

The odd thing, is the error doesn’t always occur and only seems to occur when accessing my web app through a vip(which is on a load balancer, round-robin on 2 IIS Servers). The error doesn’t come up when accessing the web app when using the direct URL for one of the servers.

Which leads me to believe, something with my web.config?

Also I searched my javascript code, and I don’t use Length anywhere.

Please help, i’ve been banging my head against the wall on this.

UPDATED with code(I included the neccessary code below, omitted the rest):

//Javascript***

function ValidateSearch() {

if (Page_ClientValidate("TransSearch") == true) {              
                ShowWait();
                return true;
            }
            else {
                return false;
            }

}

function ShowWait() {

    target = document.getElementById('progress');
    document.body.appendChild(target);
    spinner.spin(target);
//This calls spinner.js from github

}

function searchComplete() {

//clear previous search textboxes
document.getElementById('<%# txtEmail.ClientID %>').value = "";
    document.getElementById('<%# txtPhone.ClientID %>').value = "";

spinner.stop();

}

//Markup***

    <div class="searchlabel">
    <label>Email Address</label><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator runat="server" ID="EmailReq"  
                ControlToValidate="txtEmail"  ValidationGroup="TransSearch"
            Display="None"  
            ErrorMessage="<b>Required Field Missing</b><br />Email is required." />  
        <asp:ValidatorCalloutExtender runat="Server" ID="EmailReqE"  
            TargetControlID="EmailReq"  
            HighlightCssClass="validatorCalloutHighlight"  />
</div>
<div class="searchlabel">
        <label>Phone</label><asp:TextBox ID="txtPhone" runat="server" Font-Size="Medium"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" ID="PhnReq"  
                ControlToValidate="txtPhone"  ValidationGroup="TransSearch"
                Display="None"  
                ErrorMessage="<b>Required Field Missing</b><br />Phone is required." />  
            <asp:ValidatorCalloutExtender runat="Server" ID="PhnReqE"  
                TargetControlID="PhnReq"  
                HighlightCssClass="validatorCalloutHighlight" /> 
    </div> 
<asp:Button ID="btnSearch" runat="server" Text="Search" Width="90px" OnClientClick="return ValidateSearch();" OnClick="Search_Click" />

//Codebehind***

public void Search_Click(Object sender, EventArgs e)
{

//passes search text to webservice
//fills gridview with returned data
//lastly calls javascript function to stop spinner
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "searchComplete", "<script type='text/javascript'>searchComplete();</script>", false);

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:45:32+00:00Added an answer on June 11, 2026 at 10:45 am

    Maybe your javascript function is not getting the textbox you are providing it with.

    document.getElementById('<%# txtEmail.ClientID %>').value
    

    Check the value using:

    alert(document.getElementById('<%# txtEmail.ClientID %>').value ) 
    

    if it is returning value. This maybe the reason your spinner.stop(); is not working.

    Use alert to see if it is entering your function. I use it every time I am stuck in javascript . It helps me to find after which line the function is giving error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This one has me scratching my head. I have an app with views that
It turns out that in order to do this one has to bind the
This one has been driving me nuts. I have a div that has it's
This one has really got me stumped. I have certain forms that are being
This one has been stumping me for a while. But I'm no expert. This
This one has me stumped. I've searched and found similar questions but I can't
This one has got me stumped. I'm deploying a Rails 3 app to Slicehost
So this one has me stumped; hopefully a kind soul can help me out.
This one has me pulling my hair out. I'm trying to implement a very
This one has me stumped, and none of the other related questions here have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.