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 9089961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:15:56+00:00 2026-06-16T22:15:56+00:00

I’m using a control from my company’s shared User Control library that implements an

  • 0

I’m using a control from my company’s shared User Control library that implements an AutoCompleteExtender.

I have placed this control inside an update panel.

The problem I am having is that the “OnClientItemSelected” property of the AutoCompleteExtender is being set dynamically on the initial page load. At this point the property sets without a problem as the dynamic code in the codebehind is executed in an if(!IsPostback) wrapper.

After a partial postback the autocompleteextender “forgets” what to do on an “OnClientItemSelected” event and stops working.

If I hard code one of the two options for which jScript function to execute OnClientItemSelected it does work, superficially but the ScriptResource.axd keeps chucking errors about invalid arguments, I assume because I’m trying to wire up something the page thinks is already wired up, even though it’s not.

Either way if I force the setting of the OnClientItemSelected to happen regardless of whether there’s a postback or not the control does work but the silent dropping of javascript errors is both ugly and worrying. Also I don’t want to “break” a shared control if I can possibly avoid it.

So, how do I get the ScriptResource.axd to play nice with the autocompleteextender rebinding its OnClientClick on every partial postback?

  • 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-16T22:15:57+00:00Added an answer on June 16, 2026 at 10:15 pm

    It turned out that the rebinding code just needed to go further down in the page_load. I discovered this whilst explaining the problem to one of my colleagues. He asked to see the error and got me to cut and paste the code out of the if(!IsPostback) wrapper like I had on Friday. I did this, but on Friday I moved the code up before the wrapper. He just pointed underneath the wrapper and, without thinking about it, I pasted it below the wrapper. The code then worked consistently with no errors.

    Just goes to show… a problem shared is sometimes a problem resolved…

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have a small JavaScript validation script that validates inputs based on Regex. I
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.