i am developing a website and in it, i would like to allow them to print the webpage but without the header, footer, as well as to set the default printing layout to be landscape and not protrait. Does anyone know how i may go about doing it?
What are the best approaches to create printer friendly pages in ASP web sites.? provide us help or links to useful artciles on this topic. Also can we avoid creating separate printer friendly pages and send the current page output to printer as the PRINT button is clicked?
I have seen this functionality when we print our MCP transcript in MS certificastion site?
I have an asp application that generate reports. The reports are a list of tables that contain information about users. each user has his own table. how do I get the tables to be printer friendly using either css or a script.And how do I page break the tables.
I have developed a client based form using vbscript for a web page to run on IE and would like to make this form printer friendly. Anyone have some ideas?
Just want to ask if anyone here has experience with doing printer friendly page. I have done a printer friendly page but the problem is if the line overflow, the printer friendly page will 'run' because my code count line by line, but by charactar or pixel.
Is there a way to get a printer friendly page using ASP. And when I say this I do not mean removing banner, picture etc and print the page.
The problem I face is, an ASP output is a big table with say 10-15 columns and it would not print even in landscape mode. So if I print the output from the IE browser the right side of the table gets cut. I want to know if there is an ASP code to over come this problem.
how to print the content of a multiline textbox without taking the content to some other "printer friendly" page. I just wanna send whatevers in the textbox directly to the printer.
For some of my pages I currently have part of the URL as being 'ourservices.asp?ID=1' (its got nothing to do with sessions) and I am currently changing part of it so its more SE-friendly - i.e. 'ourservices.asp?services=website-marketing'. However following Googles guidlines regarding dynamic URL's,. it says that some search engines don't crawl pages which have a '?' in them for fear of them being a session URL (which mine isn't). My question is- is there any alternative that I can use to replace the '?' with another character for my dynamic URL. Or, is this the only way I can have this dynamic URL?
has any one tried SE Friendly URLs with ASP & IIS? There's nothing like mod_rewrite for IIS. Ofcourse there are some 3rd party COM available but how many of us can use them on shared webservers?
So, is there a way to do it?
For those people who don't know what I'm talking about,
Normal URLs with querystrings look like http://www.example.com/myPage.asp?id=1
while SE Friendly URL will look like http://www.example.com/mPage/1/
The operative words being look like. You will see the 2nd URL in the browser's address bar but the server will take it as the 1st URL.
I am trying to SEO a website which gets content from a CMS, and is coded using ASP, running under shared IIS hosting.
There are urls like http://www.example.com/search.asp?it...6&third_id=Red
To get some keywords in there, I was thinking how to get a URL like this http://www.example.com/Widgets/Special/Red/search.asp OR http://www.example.com/special-red-widgets.html convert automatically into the one above with ? and ids..
If this can work, I can have keyword rich URLs, which when clicked can turn into old ID urls, and fetch relevant content from the CMS.
I've heard about IIS redirect but am not sure how it works. Considering that the site is on a shared hosting, I wanted to know your opinion and best ways to achieve this.
This message is being brought to you by a few of your friendly neighborhood ASP programming solution providers:
Please attempt to solve your own problems before posting to Sitepoint. I know I (and other persons who will remain anonymous) find it a little irritating when one (or more) of the following happens:
1) We can type your question into Google and the answer is the first hit that comes up.
1.1) We can type your question into Sitepoint's search and the answer is the first hit that comes up.
2) Your question is answered two posts below your question.
3) The answer requires merely looking up the appropriate object/function in the ASP/VBScript references. *
4) Two or three minutes after posting your question, you post "Oh, nevermind, I got it." without even referencing the solution so other people with the same question will know how you did it.
* Note that we will be VERY happy to provide you with links to these kinds of references (and indeed already have in the Important ASP Resources thread - which happens to be marked important twice) upon your request (I know of at least one individual who links these references in his signature also).
Now, please don't think that I'm ranting and raving. I'm just trying to inform those persons who do the above on a regular basis. It grows tiresome when I login for the day and all 5 new posts are questions that are easily answered with a simple link that could have been found if the one who posted the question would have spent 30 seconds researching his/her problem.
Mentors, Advisors, and Sitepoint Team Members:
If the opinions of this post are contrary to that of Sitepoint, please let us know. I would suspect that you would like us to spend our time on questions that are not easily answered instead of just repeating information which is already easily accessible.
My application runs on ASP and the business logic is embedded in Dlls written in VB. The application hosts a list of articles for the user to view and these are accessible through some complex urls like "http://mysite/articles/category1?articleid=34512". I would like to denote a friendly url to these articles such as "http://mysite/articles/kb_TaxPlanning.asp". I am thinking of using an ISAPI filter to do the work for me. My friend was trying on using a httphandler, but it did not work. Please share with us the resources for creating an isapi filter for the same. Also how to use the same for the expected result?
I'm having problems finding a guide for search engine friendly URLs for ASP. I found some program for sale that needs to be installed into IIS, but this is no good. My web hosting provider would never allow this.
Can anyone point me to a helpful guide in creating search engine friendly URLs out of dynamic sites for a Windows server with ASP? If someone knows of any good hosting providers who already have the ISAPI_rewrite filter installed for its customers, that would be great also.
I want to do error handling in my application. I have made a complete application. but when I encounter errors. I want to do error handling. how can I do it?
I mean like in this case I can see if the record is being added duplicate then I can always check for duplicate records and throw a message. but I will face so many errors like this??? do we have a list ..whereby I can get all the error numbers and there meanings and I generate my own user-friendly errors?
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
Just when I thought I was done , I try going to the "myfolder.asp" page and I get an error:
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80040E37) [MySQL][ODBC 3.51 Driver][mysqld-3.23.55-nt]Table 'streetguide.max' doesn't exist /streetguide03/members/myfolder.asp, line 73
Line 73 is in red.
This is because the user didn't have a folder created, because they didn't save anything to their folder. On another page I have code that creates a table with the same name as the UserName, only if they decide to save something in their folder. Code:
Is there code that I can write that will change the user's printer setup so that my web page will always print out on one page. I would like the output of the page to look the same no matter who is printing the page. How do I do this?
I wanted to set one of printer friendly pages to landscape, where the user do not need to set it manually.... I tried adding this code to my page, but it doesn't seem to work:
i need a asp coding to communicate with the printer.here i need to get printouts of the selected data from the system .inside my interface i give the printer port in the network,printer path and the username password,after checking these things it specify the print job .
i m giving link print this article to my users to print the page.
Code:
<A HREF="javascript:window.print()">Print this article</A>
but it is printing whole window but i want to print only news part. i want to make the printed output "printer friendly". means stripped off the left and right side crap. And the banner ad at the top.
I am printing a payslip contains nearly 22 lines. Each time i am generating one employee payslip. If i print using window.print() prints the payslip and aligns to next page. I want to stop the printer and go back and generate next emp payslip. so that i can save paper.
How can i do this. I can generate 3 payslips but there are many calculations for each emp. so i want to generate one by one.
Anyone had any fun with setting page breaks with a duplex printer? Example, you have one document with several sections each with a different number of pages.
But you always want each section to start on the front side of the paper not on the back of the last page of the previous section. I have seen information on setting left/right but I have not been able to get it to work.
I am writing a website in asp for a take out restaurant. Customers can place order from their website. What I want to do is, print out the order form from the restaurant's printer when an order is placed, so none is required to manually print out the order list. Is it possible and how??
1. - I want to print from my ASP page directly to my network printer. For this i use the following code, but everytime, my document to print is sent to local and physical port LPT1 not to network printer : Code: