asp

Cache headers do not work with Classic asp

I use classic ASP (.asp pages) on IIS 7 server. I do not have access to the IIS server, so pretty much any configuration I have to do, I do it on my asp pages. I am trying to add cache headers to my asp pages and somehow the browser doesn't seem to respect them. I get new copies of my webpages even though the Cache-Control header is set...

Returning Object from Classic Asp

Hello Friends, I am using Classic Asp to build request to a url which is successful now the problem is that I want to return the Request object from the function and getting the following problem: Object doesn't support this property or method, How can I do it ? Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.3.0") objSrvH...

Finding out if a URL param exists in JS-ASP

I am editing other people's code, written in server-side JS for ASP, and have run into a problem that probably has a very simple solution. I'm outputting some code from a URL param like this: <%=Request.QueryString("param")%> The problem is that if the param doesn't exist, I need to do something else. So I tried: <% var param = R...

Difficulty debugging WCF Service in Visual Studio

I think I'm having an issue where, if I set breakpoints in a ASP Azure project, the page just freezes without letting me step around in Visual Studio 2010. I'm not sure if I have a bug, or if I'm doing something wrong. I have a Silverlight 4 app that consumes a WCF service made available from an Azure project. If I start up VS, build, a...

How Block spam links In ASP

In php we use the following code to block the url link passing via text boxes or textarea on form submit(For avoid bad link passing from contact us form ).Is there any methode like this in classic asp using vb. if($_POST['Register']) { $username=$_POST['username']; if (preg_match('~(?:[a-z0-9+.-]+://)?(?:\w+\.)+\w{2,6}\S*~i', ...

How can I enable my Access Database to be updated by a remote user?

I am an experienced computer programmer, but have done very little web-related development, so I would appreciate your ideas. Our family runs a tiny, seasonal retail business, managing the orders using an Access Database. We would love to allow our customers to place orders online. The catch is that we package the goods for shipping o...

Unable to write a file in classic asp using IIS 6.0

I am using Windows 2003 and have an IIS website. I created a file called test.asp in the c:\inetpub\wwwroot directory with the following contents: <html> <body> <p>This is the text in the text file:</p> <% Set fs = Server.CreateObject("Scripting.FileSystemObject") set f = fs.CreateTextFile(Server.MapPath("testread.t...

How do i embed a flex grid control in an asp page and pass parameters to the gridcontrol?

I have done a datagrid in flex and would like to embed it in an asp page. How do i go about that?Thank you. ...

using postback option in ASP .Net

Hi., I am using ASP.Net to create a web page, in that login page i need to use the "postback" option., may i know how to use the "postback" option in the login page. Please give me some sample codes for using "postback" option. Thanks in Advance ...

swfupload + classic asp

hi, i'm trying to run swfupload on classic asp, unfortunately i'm missing infos on how to process the upload in asp + aspupload - i'm looking for some sample scripts. any ideas? thanks ...

Need help on access database design and queries

**tblLeeasse Details** nLesseeId txtLesseeName txtContractNumber txtLesseeAddress1 txtLesseeCity txtLesseeState txtLesseeCountry txtLesseeEmail `tblSupplierDetails nSupplId txtSupplName txtSupplTinNum txtSupplAddress1 txtSupplCity txtSupplState txtSupplCountry txtSupplEmail tblSchedule nScheduleId txtScheduleNumber nLesseeId txtLease...

what the use of <!DOCTYPE >?

Possible Duplicate: HTML: What is the functionality of !DOCTYPE hi i am .asp web developer as a beginner, i find many article for , but i not get a complete idea.. 1.what the use of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; ? 2.there is any...

How can I print only one specific panel ID

I have an aspx page (c# using visual studio 2010) in which I have a terms of service. I would like to allow the users to print the terms of service without having to print the rest of the page. (The rest of the page is various other information) Therefore I would like a way to specify a panel ID and when the "Print TOS" button is pu...

How do I determine which css media type is being requested on my page?

Hi, I'm looking to alter the way my asp .net webpage is output to the browser depending on the css media type being used. Although the css is generally taking care of the differences in appearance between screen and print mode I would also like to make some minor adjustments to the markup when print mode is required. I would simply be...

delete table row javascript

Hi, everyone, I have created new rows, but I cant delete it. When I click on the remove button, nothing happends. What am I doing wrong? Im greatfull for any advice. <table> <tr> somethingElse </tr> <tr> <td colspan="5"> <script type="text/javascript"> var inputCount = 0; function addRow(id) { ...

ASP image upload and Jcrop?

I upload images with aspsmartupload and it work as it should, good! But after I have uploaded the image I would like to be able to crop the image with Jcrop. I have managed to get the Jcrop script to work on a image(showing the crop rectangle on the image). But how do I actually crop the image with ASP and the saving it? I have found a...

Best practice when using functions/objects and database - general question

I have this question on and of for a year or two, but it is so nonspecific, and my native language is not English, so I don't know how to ask to be precise and everybody will understand what is my dilemma. It is even more valid if using objects but for the sake of simplicity I'll make a simple example (theoretical) with a function and d...

Can you create a webbased UI using .Net?

I have a WPF application, that I want to convert to an application running from the browser. The reason is that WPF doesnt run on Mac/Linux, and Silverlight is not an option because of it's security restrictions. The basic idea is to turn the app into a webserver-like application, and handle the UI completely in html/ajax. This 'webserv...

Get id of facebook user from email ASP

How would I get the userid of somebodys facebook from there email address :) Thanks ...

asp.Net ListView/GridView Databound Error

I am attempting to use a GridView in asp using VB and I get an error message about content. I did some research and reformatted the XML document the datasource is referencing but still cant seem to get the GridView to generate. Error Message: "The data source for GridView with id 'GridView1' did not have any properties or attributes fr...