Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
misc
exam.security
microsoft_update_catalog
msdn.annotations
msdn.drgui.discussion
msdn.duwamish
msdn.general
msdn.magazine
msdn.soaptoolkit
msdn.webservices
msdntraining
opsmgr.connectors
opsmgr.sp1
technet
technet.howtofeedback
technet.howtoneeds
technet.magazine
technet.technettalks
  
 
date: Thu, 3 Nov 2005 08:24:02 -0800,    group: microsoft.public.msdn.drgui.drguidotnet.discussion        back       


Help: Saving HTML file in C#   
I need to generate HTML files based on the some codes. One HTML file per 
code. I have the link 
(ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing 
the code as parameter I will get the page displayed. 

But I don't want to display it, instead save those files in one of the 
network directories that can be accessed by our third party vended web based 
application. How can I do this accessing and saving HTML files a directory 
using C# in a windows app or Windows service? Any help?

Thanks for your time,
Vijay
date: Thu, 3 Nov 2005 08:24:02 -0800   author:   Vijay

RE: Help: Saving HTML file in C#   
Is it that much difficult to provide solution? Is it the same for MSFTs too? 
Please provide some workable solution I have an urgent need.

Thanks,
Vijay


"Vijay" wrote:

> I need to generate HTML files based on the some codes. One HTML file per 
> code. I have the link 
> (ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing 
> the code as parameter I will get the page displayed. 
> 
> But I don't want to display it, instead save those files in one of the 
> network directories that can be accessed by our third party vended web based 
> application. How can I do this accessing and saving HTML files a directory 
> using C# in a windows app or Windows service? Any help?
> 
> Thanks for your time,
> Vijay
date: Thu, 3 Nov 2005 14:12:01 -0800   author:   Vijay

RE: Help: Saving HTML file in C#   
Is it that much difficult to provide solution? Is it the same for MSFTs too? 
Please provide some workable solution I have an urgent need.

Thanks,
Vijay


"Vijay" wrote:

> I need to generate HTML files based on the some codes. One HTML file per 
> code. I have the link 
> (ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing 
> the code as parameter I will get the page displayed. 
> 
> But I don't want to display it, instead save those files in one of the 
> network directories that can be accessed by our third party vended web based 
> application. How can I do this accessing and saving HTML files a directory 
> using C# in a windows app or Windows service? Any help?
> 
> Thanks for your time,
> Vijay
date: Thu, 3 Nov 2005 14:13:11 -0800   author:   Vijay

RE: Help: Saving HTML file in C#: Solution   
Solution:
----------

private void button1_Click(object sender, System.EventArgs e)
{
	string sURL = "www.google.com";
	axWebBrowser1.Navigate(sURL);
}

// axWebBrowser1 event
private void axWebBrowser1_DocumentComplete(object sender, 
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)

{ 

      string sFileName = System.Windows.Forms.Application.StartupPath + 
"\\ATC.htm";

      UCOMIPersistFile oPersistFile = 
(UCOMIPersistFile)axWebBrowser1.Document;

      oPersistFile.Save(sFileName, true);

}


"Vijay" wrote:

> Is it that much difficult to provide solution? Is it the same for MSFTs too? 
> Please provide some workable solution I have an urgent need.
> 
> Thanks,
> Vijay
> 
> 
> "Vijay" wrote:
> 
> > I need to generate HTML files based on the some codes. One HTML file per 
> > code. I have the link 
> > (ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing 
> > the code as parameter I will get the page displayed. 
> > 
> > But I don't want to display it, instead save those files in one of the 
> > network directories that can be accessed by our third party vended web based 
> > application. How can I do this accessing and saving HTML files a directory 
> > using C# in a windows app or Windows service? Any help?
> > 
> > Thanks for your time,
> > Vijay
date: Mon, 7 Nov 2005 15:24:02 -0800   author:   Vijay

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us