postback __EVENTTARGET ID in Page.Request.Form has $ not _ in ASP.NET

Posted by Industry86 on Stack Overflow See other posts from Stack Overflow or by Industry86
Published on 2010-04-07T22:05:25Z Indexed on 2010/04/07 22:13 UTC
Read the original article Hit count: 165

Filed under:

I am using the ToolkitScriptManager from the Ajax tool kit and I am having a problem finding my button's ID.

My ID's on my controls come back with $ symbols instead of _ symbols, like the following:

Grid$ctl06$insertButton

This obviously causes problems when attempting to find the control from the Page.Request.Form keys. I cannot seem to find the determining factor that would cause this.

Now, I know this is the name and in my source I see that the ID is with the _, so why is the Page.Request.Form showing up with the $ symbol instead? Anybody encounter this before?

© Stack Overflow or respective owner

Related posts about ASP.NET