Click here to Skip to main content
15,900,472 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
if this is a web application then why you are using c:\ .... it should be ~\\Files\\xxx.

to pass data between web forms there are many ways. but you can use Session.

in Form 1 at the Button Click.


StreamWriter sw;
string TextFile = @"C:\Desktop\Text" +x +".txt"   // if x is int then use x.ToString()
sw=File.CreateText(TextFile);
StreamWriter sw;

Session["TextFile"] = TextFile;


and in Form 2 Page_Load

string TextFile = (string) Session["TextFile"];
// now use the TextFile variable to read the file using StreamReader r = File.OpenText(TextFile);


but still you need to read more about Session and File Handling.
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 
QuestionHow to assign a perticular page as https:// ??? Pin
Anand Desai21-Jan-09 1:36
Anand Desai21-Jan-09 1:36 
AnswerRe: How to assign a perticular page as https:// ??? Pin
ToddHileHoffer21-Jan-09 4:36
ToddHileHoffer21-Jan-09 4:36 

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.