good day all.
I have a question and if someone now i be grateful.
I have a txt file and i wright in some data from multiline textbox
and the data are wright in, in multiple line.
this data I display in literal control but the data are display in one line.
FileStream fs = new FileStream(Server.MapPath("baza.txt"), FileMode.Open);
StreamReader sr = new StreamReader(fs);
string txt = sr.ReadToEnd();
sr.Close();
fs.Close();
Literal1.Text = txt;
txh aleksandar!
Loading
VulpesPosted Jan 11, 2012, 5:49 AM
tags so that it will render correctly.
aleksandar rubaPosted Jan 11, 2012, 6:06 AM
under this, link button displayed fine,this solution is fine for me because the paragraf may be fixed in design of page.
thank you very much for you engagment and your speed of answers.
aleksandar rubaPosted Jan 11, 2012, 4:43 AM
I wont to do litlle cms for practice,
in one page put some text from multi line textbox in txt.file and in another page display this text from txt.file in literal or label
The value is irrelevant,must be a text.
If you have another sugestion for do this I be grateful because I am a beginner in asp and sorry for my english.
Suthish NairPosted Jan 9, 2012, 6:19 AM
VulpesPosted Jan 8, 2012, 11:04 AM
So there must be some other reason why the LinkButton is getting overwritten by the text though, sorry, I can't think of anything else at present.
When I tried it myself, it just moved down the page - no matter how much text I put in the Literal - as you'd expect it to do.
aleksandar rubaPosted Jan 8, 2012, 9:02 AM
and
I think do in this way,what you mean?and how to put data in literal?
VulpesPosted Jan 8, 2012, 8:28 AM
aleksandar rubaPosted Jan 8, 2012, 8:02 AM
I have one link button under this literal and this is not display anymore,
if I put this link button upper literal then is work fine.
can you explane to me and thank you .
VulpesPosted Jan 8, 2012, 7:42 AM
Literal1.Text = txt.Replace("\r\n", "
");