I would like to add a few paragraphs or new lines or words dynamically, but I want to make spaces between each part and the other. How can this be done on a C # code page?
You can use LiteralControl to add HTML tags:
Page.Controls.Add(new LiteralControl("<p>New<br />Line</p>"));
I was able to do this with lblMessage.Text, and then replaced the character with the "character 'in the HTML code ...
lblMessage.Text
"
'
lblMessage.Text = "<a href='javascript:history.go(-1)'>Go Back</a>";
. , HTML <p> . , .
<p>
You can do this using the HttpModule . The HttpModule can intercept the request and respond and modify as necessary.
Perhaps this is the correct way: http://msdn.microsoft.com/en-us/library/620b4fzf(VS.71).aspx
So, if you want to add a paragraph with a break inside:
HtmlGenericControl paragraph = new HtmlGenericControl("p"); paragraph.Controls.Add(new HtmlGenericControl("br")); Page.Controls.Add(paragraph );
Source: https://habr.com/ru/post/1711807/More articles:Is there a relationship between integers and register sizes? - c ++Where on Windows is a Javascript file that contains functions for executing PAC files? - javascriptI would like to call the Windows C ++ function WinHttpGetProxyForUrl from Python - can this be done? - c ++How can I call the Acrobat OCR feature with C #? - c #What is the correct way to use win32inet.WinHttpGetProxyForUrl - pythonSeparating a string by semicolons when considering escaped characters - stringto access integer and string globally in iphone? - objective-chttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1711810/view-all-revision-numbers-that-made-changes-to-a-particular-file-in-mercurial&usg=ALkJrhgEmU28Z6OvTXDkT4wVyf4-8xPZUAРазвертывание приложений Compojure/Sinatra - rubyImproving image print quality - c #All Articles