Click here to Skip to main content
15,926,857 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionis there a way to loop throught the webpages in my application ? Pin
kimo code1-Aug-07 7:55
kimo code1-Aug-07 7:55 
AnswerRe: is there a way to loop throught the webpages in my application ? Pin
N a v a n e e t h3-Aug-07 22:08
N a v a n e e t h3-Aug-07 22:08 
Questioncan i load Dropdownlist with all pages in my asp project? Pin
kimo code1-Aug-07 7:53
kimo code1-Aug-07 7:53 
AnswerRe: can i load Dropdownlist with all pages in my asp project? Pin
Pete O'Hanlon1-Aug-07 9:58
mvePete O'Hanlon1-Aug-07 9:58 
GeneralRe: can i load Dropdownlist with all pages in my asp project? Pin
kimo code1-Aug-07 10:02
kimo code1-Aug-07 10:02 
GeneralRe: can i load Dropdownlist with all pages in my asp project? Pin
Malcolm Smart1-Aug-07 10:56
Malcolm Smart1-Aug-07 10:56 
GeneralRe: can i load Dropdownlist with all pages in my asp project? Pin
Pete O'Hanlon1-Aug-07 21:44
mvePete O'Hanlon1-Aug-07 21:44 
Questionreading special characters. Pin
deepaks31-Aug-07 7:03
deepaks31-Aug-07 7:03 
Hi,
I am reading the contents of a file and displaying it in a lable on a web page.
There are also some special characters in the file such as :
à
é

The problem is that these chars are converted to square blocks like this in display.

And this the the code i am using to read the file:
 <br />
        FileStream file = new FileStream(FilePath, FileMode.Open, FileAccess.Read);<br />
       // Create a new stream to read from a file<br />
        StreamReader sr = new StreamReader(file);<br />
<br />
        // Read contents of file into a string<br />
        string s = sr.ReadToEnd();<br />
        <br />
        // Close StreamReader<br />
        sr.Close();<br />
<br />
        // Close file<br />
        file.Close();<br />
<br />
<br />


And this is the code whihc i am using to display the contents:
<br />
lblStaticContent.Text = s.ToString();<br />


Please help.


Deepak Surana

AnswerRe: reading special characters. Pin
Guffa1-Aug-07 15:31
Guffa1-Aug-07 15:31 
QuestionValidator in Firefox Pin
Jollyguy1-Aug-07 5:35
Jollyguy1-Aug-07 5:35 
AnswerRe: Validator in Firefox Pin
Pete O'Hanlon1-Aug-07 9:56
mvePete O'Hanlon1-Aug-07 9:56 
QuestionWeb.Config Authentication Mode Pin
RadioButton1-Aug-07 5:20
RadioButton1-Aug-07 5:20 
AnswerRe: Web.Config Authentication Mode Pin
kubben1-Aug-07 6:53
kubben1-Aug-07 6:53 
AnswerRe: Web.Config Authentication Mode Pin
kubben1-Aug-07 6:58
kubben1-Aug-07 6:58 
QuestionGridview datakey Pin
Hasan Ali1-Aug-07 3:53
Hasan Ali1-Aug-07 3:53 
AnswerRe: Gridview datakey Pin
Hasan Ali1-Aug-07 3:56
Hasan Ali1-Aug-07 3:56 
QuestionDisabling the browser back button Pin
Mr.Sam1-Aug-07 3:30
Mr.Sam1-Aug-07 3:30 
AnswerRe: Disabling the browser back button Pin
BasharatAli1-Aug-07 3:55
BasharatAli1-Aug-07 3:55 
GeneralRe: Disabling the browser back button Pin
Mr.Sam1-Aug-07 4:03
Mr.Sam1-Aug-07 4:03 
AnswerRe: Disabling the browser back button Pin
Blue_Boy1-Aug-07 4:26
Blue_Boy1-Aug-07 4:26 
GeneralRe: Disabling the browser back button Pin
Mr.Sam1-Aug-07 4:30
Mr.Sam1-Aug-07 4:30 
GeneralRe: Disabling the browser back button Pin
Blue_Boy1-Aug-07 4:35
Blue_Boy1-Aug-07 4:35 
GeneralRe: Disabling the browser back button Pin
Mr.Sam1-Aug-07 5:15
Mr.Sam1-Aug-07 5:15 
AnswerRe: Disabling the browser back button Pin
Abisodun1-Aug-07 6:51
Abisodun1-Aug-07 6:51 
QuestionSession Timeout problem Pin
koolprasad20031-Aug-07 2:51
professionalkoolprasad20031-Aug-07 2:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.