Connecting Tech Pros Worldwide Help | Site Map

Searching values on an other Webpage

Newbie
 
Join Date: Oct 2009
Posts: 2
#1: Oct 7 '09
Greetings,

I am having a little issue with my project at work. I am an apprentice in a pretty big company for my education and my task is to make an asset management system with asp.net in C#.
Now, the basic functionality of my program is working (add, update, delete, change users, ...), but there is 1 aspect i haven't been able to accomplish yet, which has to do with the warranty of the company's assets.
We mainly use Dell and HP products (pc's, laptops, beamers,...) and in order to find out the date of when the warranty is due to end, you need to fill in the Service tags (Dell) or the Serial and Product key (HP) on their respective warranty-status websites.

<links snipped>

Now, once you filled in this data, you get redirected to an other page where you get to see when your warranty is about to end. You are redirected with the help of a querystring, where the values are being filled in.
So basically, i need to find a way to fill in the values in the querystring (of the HP /Dell site) when i press on the "Check warranty"-button in my application and then retrieve the date that is listed on this page... in order to afterwards save it in my warranty-column of my database.
Getting the querystring sorted is not the big issue here (it's just filling in values for the serialnumber variables in the querystring). The main issue is to get just the date of when the warranty ends out of this page to then insert it into the database of the company.

I'm in somewhat of a cloud on this subject, as it is the first time i'm making such a utility and i am not quite an expert in .net programming (c#).
Is this possible in c# or should i be looking for scripts to do this?
Is there any article or advice you can give me on this? I've been browsing some on this, but i'm having issues finding stuff about how to do this and besides that, i'm having a hard time "formulating" what exactly i'm looking for and it doesn't make it easier to find things like that either :)


Thanks in advance.

Greets
Morf
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#2: Oct 7 '09

re: Searching values on an other Webpage


If the url is something like:
http://www.dell.com/WarrentyLookup.pl?Tag=SomeTagNumber

Then you can just build a regular weblink and fill in the SomeTagNumber section with the correct tag value
Newbie
 
Join Date: Oct 2009
Posts: 2
#3: Oct 8 '09

re: Searching values on an other Webpage


Hey Plater, ty for your reply.

The link is indeed something like that (that's what i meant with filling in the correct values in the querystring). What i'm struggling with, is to get/retrieve the data (in this case: the date when the warranty is due to end) from the Dell/HP site, to afterwards introduce it in my database.
Putting data in the database is something i use alot for my application and i've got experience with how this works. So no problem there...
Getting the value of a field/label from an external webpage is my issue.

Greets
Morf
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#4: Oct 8 '09

re: Searching values on an other Webpage


Well in the backend side (C# or VBNET) look into useing the HttpWebRequest object
Reply