Building A "page Grabber" To Saveout Text AND Images?
My well-heeled clients would like a tool that I could build into a web application that would suck down the entire contents a remote webpage and store it on a local filesystem.
I know how to scrape textual content from places on the web using MSXML and assorted scracping widget. That doesn't help me for photos, nor does it answer how to encapsulate the photos in a form that I can see them.
This would probably only find use in intranet-type situations, so a IE-only ..mht-type encapsulation of the page might be OK.
I have OK skills working with the FSO, so if there's a widget or method by which the retrieval can be done, I can probably figure things out.
Has anyone done anything like this? Can someone suggest widgets and/or a design approach?
In the site I have to create the user area to bring update the site he himself, as a form to enter with the texts and images, and to be inserted automatically following the layout and design of the site, and the images with the accurate measures.
I need some advice/ideas on how I could do the following:
I want to store articles which contain both images and text - like a writeup of an event - kind of an image and text blog.
I want to store articles in a database probably - at the moment I use access databases.
Clearly I could have the text of my article in one field and store images (or links to them) in other fields and then display all the images at the end of the article but what I want is..
to be able to make it to have text then a few paragraphs down have a nice right aligned image with text to the left of it and then some more text etc etc so it looks like a static, layout planned article.
What would be the best way to go about this? Can this be done by storing in a database?
I cannot find any information on how to insert an image into a block of text and have the text wrap around the image. All if the text and graphics in the client's site are being pulled from the database using response.write. When I write straight HTML, it is easy to place an image into a block of text and align the image right or left, having the text wrap around the image.
I first noticed this in my own app. Images would show up missing [red X] randomly on IE 6.0.2800.1106 on Windows 2000 server.
I then was able to repro this problem on Microsoft's website!!! The page I used was http://www.microsoft.com/windows/ie...sp1/default.asp After pressing [F5] to refresh the page six times, I noticed missing images on the page.
This problem seems to be very reproducible. I coded a sample ASP page which references the same images 10 times on the same page. Loaded in IE. Upon pressing [F5] several times, the images will be identified as missing [red X]. Refresh the page again, it's fine.....etc.
I'm up-todate with all latest MS patches. Has anyone else seen this problem?
I am creating a form with checkboxes that contains in the value property, the ID of the image. The filename of the image displayed above the checkbox along with the image.
On that page, I am storing the "checked" information in a cookie. When the user clicks submit, I need to retrieve the actual image that they selected on the previous page and display it along with the image name which I get from the value property.
Right now the only data being passed is the value in the checkbox input tage which is a text string and not the actual image. How do I retrieve the images my users checks off. I hope this make sense. Sort of like a shopping cart, but I only want to be able to select images and post back the ones selected.
to download my asp page to the client. The download process works great but when I open the .doc file it is missing the image included within the html <img> tag of the .asp page. How do I get the image to come down with the text?
We are storing images into the SQL database with the column type of "Image" using Access and it is storing all of the images as "OLE Object". I am trying to spit out the binary data of the Image part of the OLE Object to an asp .net page so I can view it as a jpeg image.
I have found many tutorials for setting the response.contenttype and then response.binarywrite the byte[] of binary data, but the problem is that the binary data isn't just the image, but rather an OLE Object which is the image plus a bunch of metadata. I need to somehow decode the OLE Object to extract JUST the jpeg image from it for outputting as a byte[] array.
My work has decided to give me the job of building them an intranet. Being pretty new to .NET and ASP in general I was wondering if anyone knew of books or sites I should take a look at that might help me get started.
I built an ASP Form and I'm using CDONTS to e-mail the results to me. After the user clicks on the "Submit Form" I use ASP to send a ConfirmMsg back to the user.
At the same time I would like to send back a Hyperlink .
The Hyperlink will take the user back to some other part of the site, For Exampe I want to send a hyperlin to http://www.mydomain.com/index.html
I want the link to appear after the Server processes the ASP Form.
Can anyone help me with the ASP code fot a hyperlink.
When assembling an HTML string from a database before sending it to the client (ie keeping the connection as short as possible), adding to an existing string (strOut=strOut & strNextLine) takes time and can defeat the object.
Is putting each line into an array, and re-dimming the array by +1 each time quicker? Is there a better way?
This works just fine. BUt what I need is to add code to the onclick such that
document.GetElementById("matchmakername")=""
THe darn quotes/syntax are messing me up and I can not get to work. The challenge for me is that this is part of an asp string assignment to a variable called matchmaker details.
I have a database of quotes on my website that uses an Access 97 database (I'm cheap...I have an old copy of MS Office). I have one page that builds a form <select> from a SQL statement that looks like this: SELECT DISTINCT last, first FROM quotes ORDER BY last, first;
The results are 1,250 records from a 3,700 record table.
I loop through the records, using each to build an <option> for the <select>. When loading the page, it gets to the <select> and then it's like someone issued a response.end, because it just dies after about 3 seconds. and I get an incomplete page; looking in view source it is literally truncated right before the form <select>.
Of course it works at home, but not on my "production" site.
I've tried all kinds of things like executing a stored Access query as adCmdStoredProc, but it didn't help. I'm not even sure if that method was even any faster when I ran it at home.
Is there anything else that you folks know of that I could try, or am I just going to have to bite the bullet and come up with an alternative way to let my users select the source of the quote?
I have an old web app that ues an Access database and ASP 3.0. I need to build an INSERT statement based on the contents of a form. What is the best way to handle blank text boxes that are submitted with the form?
For example, I collect all my name/value pairs that are submitted with the form like this... Code:
I am building an application via ASP that uses an MS Access database to hold inventory for large truck dealerships. I have two columns in the database, one for thumbnails and one for regular (about 450 pixels wide) sized images. The columns in the database hold the URL's to the images in the folders. I need to create a photo upload that accomplishes the following things: 1. Will re-size and rename the photograph regardless of what the user has it named and sized as. I would like to be able to have the code create the thumbnail and the larger image if that is possible. 2. I need to be able to have that photograph attached to the inventory information that goes with it. I have a very basic page built, but of course, it does not do any of the "fluffy" stuff I mentioned above. I am not very good with VB and most of what I have seen out there is really contingent upon knowing VB. I tried using a 3rd party application, but to be quite honest, it sucked. Having said that, can any of you point me in the right direction toward having the above features?
I build the above link dynamically from the customer's input. It works fine until they put inthe '#' symbol. The result is the string works up to that point, then breaks. The trailing information is lost. I use the above to fill-in form boxes. What can I replace '#' with that will allow the string to continue? ... and of course, be placed in the form box correctly.
I am working on this for someone: the user sees a list of chocolates which they can click on to add to a virtual chocolate box.
Each choc. is represented as an image of the choc - clicking on the image adds that choc. into a db. storing the product id of the selected choc. The user can select 8 chocolates. When the box is full, they can select no more chocolates.
I loop through the db. to display the number of chocs in the cart, like this: Code:
i recently started learning ASP and now i am trying to do some on my home computer.
After doing a few things in my ASP.Net application, i click Build -> Build Solution and then it says this in the output window:
Preparing resources.... Updating references.... Performing main complation....
and then it stays bugged at that section. Then i can go back in build and cancel the building process...
Anyone know what might cause this, my computer is fairly recent and i did re-install Visual Studio .NET to try and fix this problem without any success... I also tried making other applications and it does the same thing...
I have a lot of information to fill out on this form. So I'd prefer not to do the submit to itself everytime to rebuild it. I've seen many java script examples on how to dynamically populate a checkbox, combo box etc. but is it possible just to not have the box there at all?
I've seen a .visible=false on spans in aspx, but can you do something similar to this with plain old asp?
Example, i have a combo box, and let's say i select a few options and write a "on change"..... i call a function that makes an attribute .visible false. Is this possible to make a text box disappear off the page without resubmitting the from? If not, any other bright ideas on how to do this one?
Does anyone have any experience building bar graphs or charts in asp? Or has anyone used a dynamic bar chart generator that is easy to use and easy to integrate into a webpage?
I just got a new offer of a company to build them an application framework with a supporting IDE front-end, now the problem is i come from the PHP boards and already checked what Java could do for me but now i find they want it all done in ASP/.net.
Now i know some c# and already read some part's of the books i had at home but i know nothing about ASP, so i bought some books but they cover programming basics which im already familiar with.
Are there any pages that cover patterns done in ASP, schema's or anything i tried the microsoft MSDN page but that's just tooo much information if your not sure of what information you need to contain. Anyway, are there ppl who can send me into the right direction so i can start learning about framework development in ASP or do i need to look further then my nose is long ?
I wish to build a select statement with the "WHERE" part is a variable. I know how to do Select * FROM table WHERE colum = '" &variable& "' But what if I want the whole part after WHERE to be a variable? with acutal other variables in it.. for instance....
Dim rs, var1, var2, QryString Set var1 = 1 Set var2 = 2 set QryString = colum1 = '" &var1& "' AND colum2 = '" &var2& "' rs = Conn.Execute("SELECT * FROM table WHERE QryString")
I am looking for the correct syntax in this case... assume my database connections and such are correct.
I am currently using a single list box and select case to carry out a search for resources on my website. I would like to improve my search by adding two or three more drop down menus to achieve a single, more detailed search.
Hopefully this will help the end user find what they are looking for. unfortunately the current search is rather broad and i need to narrow it down. How do i go about achieving this?
My ISP provides a web based email client, but it is not brandable and the features are not that extensive. I'd like to build my own. Has anyone done this, or is anyone aware of any tools out there to do this?
my database has a table with a primary key that is both text and numeric (seems like a bad idea now but there's 1000s of records so too late to change it ((((
basically i want to pass this from one asp page to another using the ?ID=house_ID
house_ID being the offending key
the other end i pick it up using lngRecordNo = Request.QueryString("ID")
and then my sql statement is as follows ...
strSQL = "Select * FROM House WHERE House_ID LIKE " & lngRecordNo
but it doesn't work .... i'm getting the rather generic error message of Too few parameters expected 1.
anyone got any ideas
also if i want to use date in a where clause how do i format it i've tried < " # Now() # ";" but it doesn't like it because of the quote marks inside of the sql statment.
I have an html page, how would I be able to just get the words in it? I mean I can probably program to get it but is there any existing tool that we can use and just fetch the word content of a html page?