How do I find an html control on a form running on client side?

  • Thread starter Thread starter sweetcheeks
  • Start date Start date
S

sweetcheeks

Guest
I have some textareas that are on client side with Javascript to make them Rich Text Editors (using TinyMCE).

How do I find this control in my c# codebehind so I can find the values inserted in the boxes?

Thanks!
 
If they exist in your .aspx page tag to include runat="server" you should be able to reference them directly then.

Aint too sure about the Tiny MCE thing tho aint used that for many years...

Beyond that if you're adding them at runtime as they don't actually exist in your aspx page unless you've run the page. I'd normally do it in javascript.

Hope this helps.

PS: There's quite a few ways depends which you find easiest and\or which is more appropriate. Email me if you want more info...
 
If they exist in your .aspx page tag to include runat="server" you should be able to reference them directly then.

Aint too sure about the Tiny MCE thing tho aint used that for many years...

Beyond that if you're adding them at runtime as they don't actually exist in your aspx page unless you've run the page. I'd normally do it in javascript.

Hope this helps.

PS: There's quite a few ways depends which you find easiest and\or which is more appropriate. Email me if you want more info...
 
Back
Top