Link to home
Start Free TrialLog in
Avatar of dipster307
dipster307

asked on

How to use document.getElementById(StgElementName) in C#

How do use "document.getElementById(StgElementName)" in C#, I tried the following but not working.

                        HtmlGenericControl myControl1 = (HtmlGenericControl)FindControl(StgElementName);
                        myControl1.InnerText = stgElementContent;
ASKER CERTIFIED SOLUTION
Avatar of Eduard Ghergu
Eduard Ghergu
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dipster307
dipster307

ASKER

Thanks Eduard, school boy error, I realised I wasn't passing the elementID, kicking myself I didn't see that.
Hi! My pleasure! If you need more help, please, let me know.