Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / May 2008

Tip: Looking for answers? Try searching our database.

is it ossible to modify the saveas filename from webbrowser

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GS - 20 May 2008 01:39 GMT
I ma in the process of automating/expediting  some download from a secure
website, when Currently I would click on the control webbrowser to view and
then on the popup choose save, then change the default filename before
saving.

is it possible to automate these clicks and then also replacing the prefix
and part of the filename according to a set or rules?  the default filename
has 3 part  prefix-part1-part2
part1 and part 2 is actually yyyyMmmdd dates which I would like to change to
yyyymmdd

your help is much appreciated
Thiago Macedo - 20 May 2008 13:38 GMT
I'm quite confused about your environment and issue, but just to
mention, you can set a download to the client by sending to him a
stream with the apropriate headers (Content-Disposition).
I've tested here to add this header on the html with a meta tag. It
works for your purpose in Firefox, but not in IE6.
<meta http-equiv="Content-Disposition" content="attachment;
filename=file.html" />

Thiago
Patrice - 20 May 2008 16:32 GMT
Using AddHeader instead should work for both :

http://support.microsoft.com/kb/260519/en-us

--
Patrice

"Thiago Macedo" <thiago.chili@gmail.com> a écrit dans le message de groupe
de discussion :
2d076d19-56e3-4b67-84b5-cd2b99948f8e@59g2000hsb.googlegroups.com...
> I'm quite confused about your environment and issue, but just to
> mention, you can set a download to the client by sending to him a
[quoted text clipped - 5 lines]
>
> Thiago
GS - 21 May 2008 01:23 GMT
thank you.

So I would have to preparse and modify the html  in the webbrowser and
modify accordingly?

if that is the case I guess this name control feature would have to postpone
of later version

BTW the html is not from my own website but from the third party in https
session. hence I was hoping I can use/build a simple  component to control
the download or save instead

> Using AddHeader instead should work for both :
>
[quoted text clipped - 15 lines]
> >
> > Thiago

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.