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

ASP.NET

 
AnswerRe: converting exel data into SQL data. Pin
Rutvik Dave22-Jan-09 4:06
professionalRutvik Dave22-Jan-09 4:06 
QuestionFile upload to FTP Pin
Radhakrishnan G.21-Jan-09 18:45
Radhakrishnan G.21-Jan-09 18:45 
AnswerRe: File upload to FTP Pin
Abhishek Sur21-Jan-09 19:30
professionalAbhishek Sur21-Jan-09 19:30 
GeneralRe: File upload to FTP Pin
Radhakrishnan G.21-Jan-09 19:58
Radhakrishnan G.21-Jan-09 19:58 
QuestionHow To: Call a Java Web Service from a .Net Client - (.net 3.5) Pin
anto200521-Jan-09 10:25
anto200521-Jan-09 10:25 
AnswerRe: How To: Call a Java Web Service from a .Net Client - (.net 3.5) Pin
Not Active21-Jan-09 10:43
mentorNot Active21-Jan-09 10:43 
GeneralRe: How To: Call a Java Web Service from a .Net Client - (.net 3.5) Pin
anto200521-Jan-09 11:02
anto200521-Jan-09 11:02 
QuestionOpen File Pin
Terick21-Jan-09 9:58
Terick21-Jan-09 9:58 
Hi,

I have two Forms in my web application using c#.

Form1:
Opens a folder and checks for latest file (ex: Text1.txt)
Increments the number by 1 and creates a new text file with new number (ex: Text2.txt)

Form2:
Opens new file (ex Text2.txt) and reads line by line and writes to Form

Every time the page is submitted, a new text file is created, so I made the number assigned to the text file an integer and assigned the file name using the following code:

StreamWriter sw;
sw=File.CreateText(@"C:\Desktop\Text" +x +".txt");
sw.Close();


I am having a problem passing the exact file name from Form 1 to Form 2. I want the file to be created on the button click in form 1 but it must be open and read in the timer of form2.

Please help if you can, especially with code examples. I'm completely stuck!

Thanks
AnswerRe: Open File Pin
Not Active21-Jan-09 10:37
mentorNot Active21-Jan-09 10:37 
AnswerRe: Open File Pin
Rutvik Dave21-Jan-09 11:25
professionalRutvik Dave21-Jan-09 11:25 
GeneralRe: Open File Pin
Terick21-Jan-09 11:32
Terick21-Jan-09 11:32 
GeneralRe: Open File Pin
Terick21-Jan-09 11:44
Terick21-Jan-09 11:44 
Questionschema serialization question Pin
Member 391904921-Jan-09 9:42
Member 391904921-Jan-09 9:42 
QuestionObject references not persisted in ViewState [modified] Pin
kmullen21-Jan-09 8:55
kmullen21-Jan-09 8:55 
AnswerRe: Object references not persisted in ViewState Pin
Neeraj Kr21-Jan-09 19:38
Neeraj Kr21-Jan-09 19:38 
QuestionBrowser Back button not using cache Pin
dptalt21-Jan-09 5:45
dptalt21-Jan-09 5:45 
AnswerRe: Browser Back button not using cache Pin
ToddHileHoffer21-Jan-09 6:35
ToddHileHoffer21-Jan-09 6:35 
GeneralRe: Browser Back button not using cache Pin
dptalt21-Jan-09 6:46
dptalt21-Jan-09 6:46 
GeneralRe: Browser Back button not using cache Pin
ToddHileHoffer21-Jan-09 7:01
ToddHileHoffer21-Jan-09 7:01 
GeneralRe: Browser Back button not using cache Pin
dptalt21-Jan-09 7:33
dptalt21-Jan-09 7:33 
AnswerRe: Browser Back button not using cache Pin
Sundar_R21-Jan-09 17:59
Sundar_R21-Jan-09 17:59 
QuestionPassing input parameter to external js file function Pin
anandhakrishnan21-Jan-09 2:38
anandhakrishnan21-Jan-09 2:38 
AnswerRe: Passing input parameter to external js file function Pin
ToddHileHoffer21-Jan-09 4:40
ToddHileHoffer21-Jan-09 4:40 
AnswerRe: Passing input parameter to external js file function Pin
led mike21-Jan-09 4:51
led mike21-Jan-09 4:51 
AnswerRe: Passing input parameter to external js file function Pin
Abhishek Sur21-Jan-09 19:56
professionalAbhishek Sur21-Jan-09 19:56 

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.