text in multiline.
-
Hi, One of my stored procedure returns a string, which is the combination of fields like 'Ship Name : Ship1 Port Name : Port1 City : London' and I want show this data in my Asp.Net page i.e in TextArea control as follows (i.e in multiline). Ship Name : Ship1 Port Name : Port1 City : London. I am adding the '\n' charector after each value like. 'Ship Name : Ship1 :XYZ \n Port Name : Port1 \n City : London'. And in C# i am using Server.HtmlDecode, but it is not working how can I display the data in multiline. Regards, Kalyan
-
Hi, One of my stored procedure returns a string, which is the combination of fields like 'Ship Name : Ship1 Port Name : Port1 City : London' and I want show this data in my Asp.Net page i.e in TextArea control as follows (i.e in multiline). Ship Name : Ship1 Port Name : Port1 City : London. I am adding the '\n' charector after each value like. 'Ship Name : Ship1 :XYZ \n Port Name : Port1 \n City : London'. And in C# i am using Server.HtmlDecode, but it is not working how can I display the data in multiline. Regards, Kalyan
-
Hi, One of my stored procedure returns a string, which is the combination of fields like 'Ship Name : Ship1 Port Name : Port1 City : London' and I want show this data in my Asp.Net page i.e in TextArea control as follows (i.e in multiline). Ship Name : Ship1 Port Name : Port1 City : London. I am adding the '\n' charector after each value like. 'Ship Name : Ship1 :XYZ \n Port Name : Port1 \n City : London'. And in C# i am using Server.HtmlDecode, but it is not working how can I display the data in multiline. Regards, Kalyan
Since you are using this in an ASP.NET application you can use the appropriate HTML tags (<br> or <p>). Using Environment.Newline in this case will be ignored by the Browser's HTML renderer.
My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
-
Hi, One of my stored procedure returns a string, which is the combination of fields like 'Ship Name : Ship1 Port Name : Port1 City : London' and I want show this data in my Asp.Net page i.e in TextArea control as follows (i.e in multiline). Ship Name : Ship1 Port Name : Port1 City : London. I am adding the '\n' charector after each value like. 'Ship Name : Ship1 :XYZ \n Port Name : Port1 \n City : London'. And in C# i am using Server.HtmlDecode, but it is not working how can I display the data in multiline. Regards, Kalyan