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;
ASP.NETC#

Avatar of undefined
Last Comment
Eduard Ghergu

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Eduard Ghergu

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
dipster307

ASKER
Thanks Eduard, school boy error, I realised I wasn't passing the elementID, kicking myself I didn't see that.
Eduard Ghergu

Hi! My pleasure! If you need more help, please, let me know.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck