How to realize concatenation string in ASP.NET
This article mainly explains "how to concatenate strings in ASP.NET". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to achieve concatenation strings in ASP.NET".
The code process is as follows
1. Page source code:
Response.Write ("
< script language=javascript>Confirm ('delete')
< /script"); //这里缺少一个">"/ / concatenate the string Response.Write (" display information ")
Execution result: no response
two。 Page source code:
Response.Write ("
< script language=javascript>Confirm ('delete')
< /script"); //这里缺少一个">"/ / concatenate the string Response.Write (" > display information "); / / there is a" > "here.
Execution result: the prompt message pops up first, and after confirmation, the word "display information" is displayed.
3. Page source code:
Response.Write ("display information"); / / concatenate the string Response.Write ("
< script language=javascript>Confirm ('delete')
< /script"); //这里缺少一个">"
Execution result: the character is displayed first, and then a prompt box pops up. Although a ">" is missing, the result is still correct.
Thank you for your reading, the above is the content of "how to concatenate strings in ASP.NET". After the study of this article, I believe you have a deeper understanding of how to achieve concatenation strings in ASP.NET, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!