Click here to Skip to main content
15,902,635 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRetain CSS format reading a Page Pin
VickyC#2-Oct-06 9:20
VickyC#2-Oct-06 9:20 
AnswerRe: Retain CSS format reading a Page Pin
Guffa2-Oct-06 10:11
Guffa2-Oct-06 10:11 
GeneralRe: Retain CSS format reading a Page Pin
VickyC#2-Oct-06 10:55
VickyC#2-Oct-06 10:55 
AnswerRe: Retain CSS format reading a Page Pin
Guffa2-Oct-06 21:43
Guffa2-Oct-06 21:43 
QuestionConfirm User Registration Pin
TheEagle2-Oct-06 9:10
TheEagle2-Oct-06 9:10 
AnswerRe: Confirm User Registration Pin
morteza572-Oct-06 12:05
morteza572-Oct-06 12:05 
GeneralRe: Confirm User Registration Pin
TheEagle3-Oct-06 9:51
TheEagle3-Oct-06 9:51 
QuestionAsp help Pin
Larsson2-Oct-06 6:31
Larsson2-Oct-06 6:31 
Hello,
I posted a message here before and I dont now if this is the right forum for me byt the question that I need help with is this.

I have this code. This code shown all the image file I have but I need to rean in the textfile to.

<%
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(Server.MapPath("/test/"))
Set fc = f.Files
For Each f1 in fc
if right(lcase(f1.name),4) = ".gif" then Response.Write("
")
Next
%>

And I want to read in a textfile with the same namn but is not a *.gif its a *.txt file. This is the response I get.

foreach (string s in System.IO.Directory.GetFiles(@"c:\dir", "*.gif"))
{
string txtPath = s.Substring(0, s.Length - 3) + "txt";
System.IO.TextReader tr = new System.IO.StreamReader(txtPath);
string text = tr.ReadToEnd();
tr.Close();
}

Now how can I make this work. I need to show the image and then the text after the image. There can be many image and text files so I dont now how I should do it. Is there a king on asp that can help med with this?
AnswerRe: Asp help Pin
minhpc_bk2-Oct-06 15:53
minhpc_bk2-Oct-06 15:53 
QuestionLooking for XML Web services Pin
Sudhakar Pasupunuri2-Oct-06 6:03
Sudhakar Pasupunuri2-Oct-06 6:03 
AnswerRe: Looking for XML Web services Pin
minhpc_bk2-Oct-06 16:02
minhpc_bk2-Oct-06 16:02 
AnswerRe: Looking for XML Web services Pin
Exelioindia2-Oct-06 22:56
Exelioindia2-Oct-06 22:56 
QuestionA basic Problem with buttons Pin
Britney S. Morales2-Oct-06 4:59
Britney S. Morales2-Oct-06 4:59 
AnswerRe: A basic Problem with buttons Pin
sanju02762-Oct-06 7:29
sanju02762-Oct-06 7:29 
AnswerRe: A basic Problem with buttons Pin
minhpc_bk2-Oct-06 16:05
minhpc_bk2-Oct-06 16:05 
QuestionHow to access gridview editing row element value in a class function? Pin
JimFeng2-Oct-06 4:55
JimFeng2-Oct-06 4:55 
AnswerRe: How to access gridview editing row element value in a class function? Pin
minhpc_bk2-Oct-06 16:10
minhpc_bk2-Oct-06 16:10 
GeneralRe: How to access gridview editing row element value in a class function? Pin
JimFeng3-Oct-06 4:03
JimFeng3-Oct-06 4:03 
GeneralRe: How to access gridview editing row element value in a class function? Pin
minhpc_bk3-Oct-06 11:52
minhpc_bk3-Oct-06 11:52 
GeneralRe: How to access gridview editing row element value in a class function? Pin
JimFeng4-Oct-06 3:16
JimFeng4-Oct-06 3:16 
GeneralRe: How to access gridview editing row element value in a class function? Pin
minhpc_bk4-Oct-06 14:47
minhpc_bk4-Oct-06 14:47 
QuestionWhy it doesn't show detail error ... Pin
devboycpp2-Oct-06 4:12
devboycpp2-Oct-06 4:12 
AnswerRe: Why it doesn't show detail error ... Pin
morteza572-Oct-06 12:09
morteza572-Oct-06 12:09 
QuestionDropDownList in property window help please Pin
StonePit2-Oct-06 3:59
StonePit2-Oct-06 3:59 
AnswerRe: DropDownList in property window help please Pin
StonePit2-Oct-06 4:31
StonePit2-Oct-06 4:31 

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.