asp

How can I achive a non-scrolling filled-page layout in ASP?

The master page currently looks like this: (No, I don't work for Google. The images are placeholders.) <body> <form id="frm" runat="server"> <%--Header (Main Logo)--%> <div align="right"> <asp:Image ID="HBannImg" runat="server" AlternateText="Google" ImageUrl="http://www.google.com/intl/...

Classic ASP SQL Injection

I recently inherited a classic asp website with a ton of inline SQL insert statements that are vulnerable to SQL injection attacks. These insert statements are executed via the ADO command object. Will setting the ADO Command Object's Prepared property to true ensure that the query is parameterized before execution, thus mitigating the...

asp pagination problem

Hi i have a problem with this asp pagination. it seems to be putting all the links in the one row, so i think it might have something to do with the check of the int i... but im not that familar with asp. can anyone shed any light on this problem. the folders contain pdfs for each day of the month, named A08P2.pdf A09P2.pdf etc... Th...

ASP Classic and SQL Server 2008 giving strange response

Hi guys. Started getting this error it seems since we upgraded to SQL Server 2008. When inserting into the db and then returning the identity i get a 'Item cannot be found in the collection corresponding to the requested name or ordinal' error. Here is the code: SQL = "INSERT INTO PageFeatures(nPageFeatureFlagId,nPageFeatureFeatureId...

how to display current time with chosen timezone?

how to display current time with chosen timezone instead of server TZ? (VB) ...

sql Server error - 3709

Hi I keep getting the error: Error (3709) - /mysite/Pages_Secure/mypage.asp ADODB.Recordset. "The connection cannot be used to perform this operation. It is either closed or invalid in this context.." strQuery = "" strQuery = strQuery + "SET ROWCOUNT 0 " strQuery = strQuery + "SELECT FIRSTNAME, LASTNAME, EMAIL, USER_TEAM_ID, USER_SERV...

Classic ASP to ASP.Net one-off session data copy

We have an extensive classic ASP site, and we're looking to upgrade to ASP .Net (most probably the latest version). Obviously upgrading all the pages at once would be a leviathan task, so we're only looking to write new pages (and page rewrites) in ASP .Net at first. There are two obstacles to doing so: I have no idea how to access cl...

Question on manually creating virtual directory while deploying WCF service.

Hi , I have WCF service folder let's say : "TestService" and it contains following folders and files under TestServide folder: TestService folder contains: 1.bin (folder) 2.Config (folder) 3.TestService.svc (file) 4.WebConfig (file) when I go to InetMgr and try browsing the TestService.svc file, the wcf service opens successully: path...

IIS server redirect locations...

hi, I got a asp site hosted in a iis server. In the server there is a virtual folder products and whenever a url like xyz.com/products/abc_11.asp is provided it is forwared to xyz.com/product.asp?id=11 page. I would like to know from where we can change that settings? These settings or tasks can be done from where? Thnx ...

How do I redirect url to a specific page in IIS6 webserver

I have a site hosted on IIS6 server. All the pages with specific url (e.g http//www.abc.com/products/my-product-name_11.asp ) are redirected to http://www.abc.com/product.asp. but from where it is happening i dont know. So in order to change it what should i do? ...

Not stopping at server side breakpoints whilst Debugging classic asp with Visual Studio 2005

The website is set up locally on my IIS 5.1 on xp. Application protection is set to low within IIS so the asp is run inside the inetinfo.exe process. I start debugging , attach to the inetinfo.exe process and refresh the page in the browser so the page reloads and reruns the server side code. Non of the breakpoints get hit. There's no w...

WebControl button event

Hello, I've just made my first WebControl, but I'm having some troubles. Here's a sample of what I have so far: public class NotificationPopup : WebControl { public bool? IsAccepted { get; set; } public void Show() { Panel root = new Panel(); Button b1 = new Button(); b1.Text = "Ok"; b1.Cli...

Looking for direction on Classic ASP 2.0 Resources (coming from .NET)

I have a classic ASP 2.0 project coming up. I mostly do ASP.NET WebForms and more recently MVC. I did a little bit of ASP many years ago. Do you have any book recommendations? If I find a 3.0 book, would that confuse me too much? Any specific resource on the net for getting up to speed that you recommend? And lastly - how do you fe...

How to display user defined ToolTips in web page using ASP?

Hi, I want to display all the "ToolTips" in my web page is user defined, like user defined BoxSize, ForeColor, BackColor, FontSize etc. Could you please guide me how to do this, as I am new to ASP. Thanks! ...

using intelligencia url re-writer in a classic asp webapp

I have a classic asp webapp that I need to implement url re-writing in. I've used the intelligencia url re-writer in an asp.net application before , so my current trail of thought is to create a new asp.net application, add the url re-writing component to it and then add the classic asp application over the top. It's hosted in shared web...

ASP.NET RequiredFieldValidator not letting me navigate away from an asp:Wizard

I wish to allow the user an option to navigate away from a Register page. However the register page is an ASP:Wizard with RequiredFieldValidators. How can I fix this without removing the RequiredFieldValidators? The "Next" button of the wizard seems to be built-in to the Wizard control and doesn't seem to let me apply a ValidationGr...

can i use visual studio 2008 for a regular asp project

i have taken over an asp project from a friend and he was basically just using notepad++ to develop. I would like to use visual studio 2008 but there is no project file or solution file at this point, just a bunch of asp pages and some images, css the other trick is that he will still be developing for a bit but doesn't want to use VS....

sending a charset in the Content-Type header

i use jquery $ajax to post a contact form to my email. but encoding is wrong and i see question marks. i figured i should set the content-type but cant manage to do so. am using asp thx ...

How to connect to a sql database using classic asp?

Could someone please help solve this problem? ...

Mapping classic asp pages to .net in IIS

I'm trying to map requests for classic asp pages to be handled by .net, so that it runs through a custom httpmodule. In IIS I have remapped asp requests to aspnet_isapi.dll - I'm sure I've done this bit right Now in my test app I am getting this error: Server Error in '/TestASPRedirect' Application. -----------------------------------...