C#




C#. Add new line symbol to string

Each time I forget how to add new line symbol to string. I decided to add to memories. Below how to add new line symbol to string in C#.

string message = Label1.Text;
message = message.Replace("<br />", System.Environment.NewLine);

 

 

Add hyperlink to GridView programmatically

GridView is a powerful and easy in use tool in Asp.net, especially if you know how to use it. There are a lot of tutorials how to add dynamic hyperlink column to GridView not programmatically, but this tutorial is about how to add hyperlink to GridView programmatically (in code-behind). (read more...)


MarkiMarta.com. Notes of web-specialist
Since 2009
18+