simple updatepanel question

  • Thread starter Thread starter WISEMANOFNARNIA
  • Start date Start date
W

WISEMANOFNARNIA

I surrounded some controls in my page with an asp:UpdatePanel. They
were also sandwiched between 'contentTemplate' tags.
The problem is that the controls are not recognized in the code-behind
page once I do this.
They are underlined in the code-behind page, and when I hover my mouse
over the references to the controls, I'm told they are not found.
Why is this?
On a related topic, I didn't put my 'updatemode' as conditional,
because I thought any control should be able to update any other
control within the panel. When would I use "conditional"?
Thanks,
Marvin
 
Hello WISEMANOFNARNIA,


W> I surrounded some controls in my page with an asp:UpdatePanel. They
W> were also sandwiched between 'contentTemplate' tags.
W> The problem is that the controls are not recognized in the
W> code-behind
W> page once I do this.
W> They are underlined in the code-behind page, and when I hover my
W> mouse
W> over the references to the controls, I'm told they are not found.
W> Why is this?

check that such controls exist in .designer.cs file. it could be editor bug,
or maybe you forgot closing " or >

Are you able to compile your site?

W> On a related topic, I didn't put my 'updatemode' as conditional,
W> because I thought any control should be able to update any other
W> control within the panel. When would I use "conditional"?

You can find the detailed explanation of conditional behavior of updatepanel
there http://msdn.microsoft.com/en-au/library/bb155262.aspx

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://msmvps.org/blogs/laflour
:: http://twitter.com/laflour

"Tis nothing good or bad, but thinking makes it so" (c) W.Shakespeare
 
Back
Top