Lord. I don’t know ASP.NET at all, but I have an idea about HTML and write normally in C #.

I wanted to do this: in the Default.aspx.cs in the Page_Load() method, I get a complex page that I made in my own C # method, with all the divs, styles and other content. Then in that place in the Default.aspx I just find the <body> </body> , and I insert my own line in this place - something like this: <body> <%=myString%> </body>

Anyway, in the days of the usual ASP, without any .NET, this worked fine. But now something is not working.

    1 answer 1

    Hooray! Earned! I read the error message: "Compiler Error Message: CS0122: 'Default.myString' is inaccessible due to its protection level". Made a public line - and everything was inserted!