Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Server.Transfer vs Response.Redirect Pin
Christian Graus9-Nov-07 21:19
protectorChristian Graus9-Nov-07 21:19 
GeneralRe: Server.Transfer vs Response.Redirect Pin
danasegaranea9-Nov-07 22:11
danasegaranea9-Nov-07 22:11 
GeneralRe: Server.Transfer vs Response.Redirect Pin
John-ph9-Nov-07 22:16
John-ph9-Nov-07 22:16 
QuestionException on browsing a web form Pin
monafr819-Nov-07 12:37
monafr819-Nov-07 12:37 
AnswerRe: Exception on browsing a web form Pin
Michael Sync9-Nov-07 20:31
Michael Sync9-Nov-07 20:31 
QuestionCustomizing Web Form Designer Generated Code Pin
tsramkumar9-Nov-07 11:25
tsramkumar9-Nov-07 11:25 
QuestionNavigate to Html page How's a resource Pin
Epsilone39-Nov-07 8:38
Epsilone39-Nov-07 8:38 
QuestionPossibility of Exception? (With Code) Pin
Mitch F.9-Nov-07 8:05
Mitch F.9-Nov-07 8:05 
Hi,

Currently, in my ASP .Net project, I read text from a text file using a streamreader. The code I use is below:

<br />
<% <br />
    Dim sR As New IO.StreamReader(IO.Path.Combine(Server.MapPath("~"), "templates/menu.txt"))<br />
    Do<br />
        Dim line As String = sR.ReadLine<br />
        Response.Write(line)<br />
    Loop Until (sR.EndOfStream = True)<br />
    <br />
    sR.Close()<br />
%><br />


Will an exception be thrown if two separate people access the same page at the same time, thereby causing two streamreaders to try and access the same file?

Thanks in advance,
Mitch


-- modified at 14:15 Friday 9th November, 2007
AnswerRe: Possibility of Exception? (With Code) Pin
pmarfleet9-Nov-07 10:22
pmarfleet9-Nov-07 10:22 
GeneralRe: Possibility of Exception? (With Code) Pin
Mitch F.9-Nov-07 10:30
Mitch F.9-Nov-07 10:30 
Questionlog -in with administration tools ?? Pin
sofy20089-Nov-07 7:48
sofy20089-Nov-07 7:48 
AnswerRe: log -in with administration tools ?? Pin
Sam Xavier12-Nov-07 0:14
Sam Xavier12-Nov-07 0:14 
Questiondata grid ..edit n update !! Pin
rocky8119-Nov-07 5:41
rocky8119-Nov-07 5:41 
AnswerRe: data grid ..edit n update !! Pin
Michael Sync9-Nov-07 20:24
Michael Sync9-Nov-07 20:24 
GeneralRe: data grid ..edit n update !! Pin
rocky81114-Nov-07 5:50
rocky81114-Nov-07 5:50 
GeneralRe: data grid ..edit n update !! Pin
Michael Sync14-Nov-07 15:33
Michael Sync14-Nov-07 15:33 
Question"Operation could not be completed" error on save Pin
Kevin McFarlane9-Nov-07 5:41
Kevin McFarlane9-Nov-07 5:41 
QuestionHow to control the list shown under a textbox ? Pin
Big Ralph9-Nov-07 4:12
Big Ralph9-Nov-07 4:12 
AnswerRe: How to control the list shown under a textbox ? Pin
Michael Sync11-Nov-07 0:13
Michael Sync11-Nov-07 0:13 
QuestionGridView Edit.. Pin
Dio229-Nov-07 4:03
Dio229-Nov-07 4:03 
AnswerRe: GridView Edit.. Pin
Dio229-Nov-07 4:19
Dio229-Nov-07 4:19 
Questionasp.net project info. Pin
i gr89-Nov-07 1:33
i gr89-Nov-07 1:33 
AnswerRe: asp.net project info. Pin
Paddy Boyd9-Nov-07 4:17
Paddy Boyd9-Nov-07 4:17 
AnswerRe: asp.net project info. Pin
Saksida Bojan9-Nov-07 6:50
Saksida Bojan9-Nov-07 6:50 
QuestionASP Email Script Not Working Pin
MelDrop9-Nov-07 1:18
MelDrop9-Nov-07 1:18 

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.