|
A. might be hard depending on how annoying the website is, usually you just send a POST somewhere and then handle the cookies (see HttpWebRequest) but sometimes the site forces you to use javascript (may have to use a WebBrowser Control, which likes to steal focus (even when hidden) and generally get in your way).
B. is easy if you could use a HttpWebRequest in step A, a WebBrowser control again likes to get in your way and makes things hard.
|
|
|
|
|
yeah A is my biggest problem so far.. the rest I think I can figure out based on what I have, but I have to get past logging in and then going to the correct page..
Let's face it, after Monday and Tuesday, even the calendar says WTF!
Be careful which toes you step on today, they might be connected to the foot that kicks your butt tomorrow.
You can't scare me, I have children.
|
|
|
|
|
Ok typically that would look like:
Create a HttpWebRequest, point it towards the submit location of the login form, change the method to POST, use a CookieContainer, write some data (with percent encoding), then get the response.
Then just download the file with an other HttpWebRequest. Don't bother navigating. But send the cookies, otherwise you're not logged in anymore.
|
|
|
|
|
Thanks. I'll get to work on it.
Let's face it, after Monday and Tuesday, even the calendar says WTF!
Be careful which toes you step on today, they might be connected to the foot that kicks your butt tomorrow.
You can't scare me, I have children.
|
|
|
|
|
I have downloaded the TaskScheduler library and I'm able to use it without an issue. My problem is that I created a job in my Scheduled Tasks but when I run the command GetTaskNames(), the function returns just two system create jobs. Looking at the code I saw that the function only returns scheduled tasks that have a .job extension. How do I create a job that I can get access to via the TaskScheduler library.
Thanks
Bob
|
|
|
|
|
Bob Nona wrote: I have downloaded the TaskScheduler library
Very good. Which one? Is it from an article? If so, ask this question in the forum at the end of the article.
|
|
|
|
|
This is a known problem with the task scheduler API's. There are two versions of them. Jobs created with one version of the API cannot be seen by the other version of the API.
I can't remember the exact cirumstances and cannot find the link to where I read this right now, but it's out there somewhere.
|
|
|
|
|
Actually I didn't create the scheduled task using the API, I created it using the Task Scheduler on my computer.
|
|
|
|
|
Bob Nona wrote:
Actually I didn't create the scheduled task using
the API, I created it using the Task Scheduler on my computer.
And what do you think that used to create the Task? Yep, one of the API's.
|
|
|
|
|
So the tool in All Programs, Accessories, System Tools, Task Scheduler actually uses the APIs that I downloaded from Dennis Austin's article?
|
|
|
|
|
You did NOT download the API's for the Windows Task Scheduler. You downloaded a wrapper for the API's that makes it easier to use them in your own code. The API's are part of Windows, not something you downloaded.
|
|
|
|
|
The wrapper you downloaded only wraps the Task Scheduler 1.0 API. It will still create jobs that work under XP, Vista, and 7, but you will not be able to see those jobs and modify them using any tools that use the Task Scheduler 2.0 API, that includes System Tools -> Task Scheduler.
|
|
|
|
|
I NEED C# THAT DISPLAY DYNAMIC PHOTOGALLERY
|
|
|
|
|
Please don't shout.
Now, what technology do you need for the photo gallery? WinForms? WPF? Silverlight?
|
|
|
|
|
The only code you're going to get here is the code YOU write. Noone is going to hand over a project to you to turn in as your own work.
If you're stuck and need help with a specific problem, THEN we can help. If you're just begging for someone to hand over code, you've come to the wrong place.
|
|
|
|
|
Dave Kreskowiak wrote: Noone is going to hand over a project to you to turn in as your own work.
Wow, that Noone is so generous!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Richard Andrew x64 wrote: that Noone is so generous!
And still going strong[^]!
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Damn! I did it again, didn't I?... Damn dyslexic fingers.
|
|
|
|
|
|
What have you tried so far?
Try something and post your doubts here.
Someone will surely help you.
|
|
|
|
|
I have a VB.NET application which is workig fine with the XP environment. But when I install the same windows application in WIN7 environment then it is causing below error.
Unhandled expection has occurred in a component in your application.
------------------------------------------------------------------------------------
Error details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: Resource 'App.ico' cannot be found in class 'Control_Panel.frmMain'.
at System.Drawing.Icon..ctor(Type type, String resource)
at Control_Panel.frmMain.frmMain_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Request you to please let me know how to resolve this error.
There was no errors so far with the XP environment.
|
|
|
|
|
siddisagar wrote: System.ArgumentException: Resource 'App.ico' cannot be found
The application is missing the icon App.ico. You have probably hard coded the path to this icon, and the path in the new computer is different.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
As well as Wayne's answer, you really need to check which forum you post your messages in. This is the C# forum, and people can be very unkind to VB.NET here.
|
|
|
|
|
I wanna to write Symbian App via C#.
what are preRequites and how can i do that.
Thanks!
|
|
|
|
|
Unless you have an old copy of DefForge's Crossfire available, you're out of luck. Having looked into this, as far as I can find there are no current facilities available to allow you to write C# code for Symbian.
|
|
|
|