UpdatePanel not working?

I have a control on an update panel.

The control has a bunch of child controls that are added dynamically at runtime.

The child controls each have a radio button, that, when clicked, causes a postback by calling the javascript method __doPostback(  )  that ASP .NET provides.

When I click the radio button in a control the page does a full postback.


Why is the UpdatePanel not working?

Does __doPostback(  )   defeat what the UpdatePanel does?
<asp:UpdatePanel ID="UpdatePanelCaptchaRepeater" runat="server">
					<ContentTemplate>
						<uc2:CaptchaRepeater ID="CaptchaRepeater" runat="server" />
					</ContentTemplate>
				</asp:UpdatePanel>

Open in new window

LVL 5
Tom KnowltonWeb developerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gyanendra SinghArchitectCommented:
I am sure you were not setting of id of any child control .... Please set the ID and test ...
0
Gyanendra SinghArchitectCommented:
putting one example for your help

 LinkButton lnkAnyName = new LinkButton();

lnkAnyName .Text = Any Title;


lnkAnyName .ID= Any Unique Id; //This you need to set


lnkAnyName .Click += new EventHandler(lnkAnyName_Click);

PlaceHolderName.Controls.Add(lnkAnyName );
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom KnowltonWeb developerAuthor Commented:
Still checking on this.


More info....here is the markup for the rendered page:
<table width="100">
    <tr>
        <td align="center" class="style1">
	        <img id="ctl00_ctl00_bodyContent_mainContent_CaptchaRepeater_CaptchaImageDisplay_ImageCaptcha" title="http://www.freeurldirectory.com/captcha.php" src="http://www.freeurldirectory.com/captcha.php" style="border-width:2px;border-style:Solid;height:100px;width:100px;" />
        </td>         
        <td>
					&nbsp;</td>
    </tr>
    <tr>
        <td align="center" class="style1">
            <input id="ctl00_ctl00_bodyContent_mainContent_CaptchaRepeater_CaptchaImageDisplay_ValueRadioButtonCaptchaSelected" type="radio" name="ctl00$ctl00$bodyContent$mainContent$CaptchaRepeater$CaptchaImageDisplay$ValueRadioButtonCaptchaSelected" value="4" onclick="RadioChecked(this);" />
        </td>
    		<td></td>
    </tr>
</table>

Open in new window

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tom KnowltonWeb developerAuthor Commented:
RadioChecked( this  )  looks like this:
        function RadioChecked(current)
        {               
           for(i = 0; i < document.forms[0].elements.length; i++)
           {
              elm = document.forms[0].elements[i];
                          
              if (elm.type == 'radio')      
              {           
                    if(elm != current)
                    {
                        elm.checked = false;                                                              
                    }
              }
           }   
						__doPostBack(current.value,'CAPTCHARADIO');              
        }

Open in new window

0
Gyanendra SinghArchitectCommented:
please paste your code where you are creating radio button
0
Tom KnowltonWeb developerAuthor Commented:
UPDATE:

The issue got resolved by taking another approach.

But I think you were on the right track.

Tom
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.