Click here to Skip to main content
15,904,416 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Calendar Popup in javascript? Pin
Christian Graus24-Jul-07 16:44
protectorChristian Graus24-Jul-07 16:44 
GeneralRe: Calendar Popup in javascript? Pin
Care Career24-Jul-07 19:07
Care Career24-Jul-07 19:07 
GeneralRe: Calendar Popup in javascript? Pin
Christian Graus24-Jul-07 19:19
protectorChristian Graus24-Jul-07 19:19 
GeneralRe: Calendar Popup in javascript? Pin
Care Career24-Jul-07 20:25
Care Career24-Jul-07 20:25 
AnswerRe: Calendar Popup in javascript? Pin
teddddddddddd24-Jul-07 19:54
teddddddddddd24-Jul-07 19:54 
GeneralRe: Calendar Popup in javascript? Pin
Care Career24-Jul-07 21:15
Care Career24-Jul-07 21:15 
QuestionFile Access Error Pin
gvanto24-Jul-07 14:36
gvanto24-Jul-07 14:36 
AnswerRe: File Access Error [modified] Pin
doWhileSomething24-Jul-07 15:25
doWhileSomething24-Jul-07 15:25 
Try creating a new directory inside your app, call it whatever (file_storage). Adjust your code so it points to the new path. This alone may correct the issue. If this does not correct the issue, then I would say something is off with your web.config or the IIS settings.

This is really not the best method or storage option either, you may want to consider using an XML file instead if you do not have any database options.

Also, you can simplify your code a bit:
Dim sr As New System.IO.StreamReader("yourPathAndFile")
LabelSomething.Text = sr.ReadToEnd()
sr.Close()


Always make sure to close the file as well, you may want to implement a try ..catch around file operations and ensure you close them in the finally block.

EDIT - also, if its just the ad words your trying to include on the page from the text file, you may want to build a simple control that you can use on all of your pages.





-- modified at 21:38 Tuesday 24th July, 2007


QuestionRe: File Access Error Pin
gvanto24-Jul-07 17:30
gvanto24-Jul-07 17:30 
QuestionRe: File Access Error Pin
gvanto24-Jul-07 17:38
gvanto24-Jul-07 17:38 
AnswerRe: File Access Error Pin
doWhileSomething25-Jul-07 3:10
doWhileSomething25-Jul-07 3:10 
QuestionRe: File Access Error Pin
gvanto26-Jul-07 15:33
gvanto26-Jul-07 15:33 
AnswerRe: File Access Error Pin
doWhileSomething27-Jul-07 3:07
doWhileSomething27-Jul-07 3:07 
GeneralRe: File Access Error Pin
gvanto27-Jul-07 16:28
gvanto27-Jul-07 16:28 
GeneralRe: File Access Error Pin
doWhileSomething27-Jul-07 17:40
doWhileSomething27-Jul-07 17:40 
QuestionRe: File Access Error Pin
gvanto27-Jul-07 17:54
gvanto27-Jul-07 17:54 
Questionhow to call function exposed by IDispatch in ActiveX control? Pin
eraccn24-Jul-07 14:25
eraccn24-Jul-07 14:25 
QuestionHow do I control the appearance of checkboxes? Pin
amymarie324-Jul-07 12:27
amymarie324-Jul-07 12:27 
AnswerRe: How do I control the appearance of checkboxes? Pin
Christian Graus24-Jul-07 12:42
protectorChristian Graus24-Jul-07 12:42 
GeneralRe: How do I control the appearance of checkboxes? Pin
amymarie325-Jul-07 4:29
amymarie325-Jul-07 4:29 
AnswerRe: How do I control the appearance of checkboxes? Pin
Ken Fan24-Jul-07 18:04
Ken Fan24-Jul-07 18:04 
GeneralRe: How do I control the appearance of checkboxes? Pin
amymarie325-Jul-07 4:28
amymarie325-Jul-07 4:28 
QuestionRepeater ? Pin
Assaf8224-Jul-07 12:10
Assaf8224-Jul-07 12:10 
AnswerRe: Repeater ? Pin
Christian Graus24-Jul-07 12:14
protectorChristian Graus24-Jul-07 12:14 
QuestionRe: Repeater ? Pin
Assaf8224-Jul-07 13:12
Assaf8224-Jul-07 13:12 

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.