Please help me I am struggling with one issue that I am not very much familiar with that is using resource file in asp.net.
I am working on code in asp.net which is checking multiple if conditions in business layer class and on the basis of if conditions, it should display pargraphs of information text to users in either english or french. The text contains date formatting functions, anchor tags and onclick events of anchor tags.
Example is:
if((a=b)&&(c=a))
{
<p>
<b>mpus odio feugiat ac. Nulla blandit dolor vitae</b><br />
ccumsan in sit amet erat. Quisque ac nulla tempus, maximus risus sed, dapibus arcu. Nullam nec enim tellus.
<a href="/paycash">Click here </a>ctus aliquam, eu lacinia.
eget nibh est. In eu bibendum mi. Quisque quis est a risus tincidunt gravida. Morbi id finibus magna. Aene
</p>
<p>m et lectus aliquam, eu lacinia elit viverra. Donec a libero sed sem vestibulum posuere. Proin tristique enim purus <a href="http://a.a.com">click here</a>s est a risus tincidunt gravida. Morbi. m et lectus aliquam, eu lacinia elit viverra. Donec a libero sed sem vestibulum posuere. Pr</p>
<p>
<b><a name="dhjs"></a> Nulla blandit dolor vitae</b><br />
<a target="_blank" onclick="window.open('.a/c/c, '_blank','width=1257,height=895'); return false" href="s/d/d/dd.com">Click here</a> Donec a libero sed sem vestib
</p>
<p>tudin non lacus. In hac habitasse platea dictumst. Donec molestie efficitur ante eget <%= FormatDateTime(oRs("ExpiryDate"),1) %>tudin non lacus. In hac habitasse platea dictumst. Donec molestie efficitur ante eget
}
else if
{
}
I want to store this result text to resource file. Such that, if a condition is true, I should pass the keys of resource file to aspx file. But, I am sure how to achieve this? Should I store the complete paragraph into resource file and pass a single key back to label in aspx file then, how would anchor tag and functions would work? OR should I break it into parts? If I break it into different keys, how should I pass the resource keys back to aspx file and what should I do with date formatting functions and hyperlinks?
Another question is on passing back result to aspx file, should I display paragraphs of text in label text?
Please help.