HEy guys, I want to display a formatted string in my page. But instead of showing the string in proper format, the label instead is showing the whole string including the tags. I also tried putting in the string like this "<%=strWeatherAlert%>" in the code but it displays nothing. So how can I achieve what I am trying to do? Here is the code:
protected void Page_Load(object sender, EventArgs e)
{
if (!this.Page.IsPostBack)
{
WRMS.News objNews = new WRMS.News();
strWeatherAlert = objNews.getMWeatherAlert();
lblAlert.Text = strWeatherAlert;
}
}
...
Go to the complete details ...