asp

Convert date to ticks

How to convert one datetime to ticks? ...

How to block IP address or IP classes in ASP.NET

I need to block one IP address or class in asp.net Can anyone help me with the code? And how to implement? Thanks ...

Custom Errors "Could no load type error"

I am creating ASP.Net MVC application and want to handle errors globally. I have set web.config value as mode=On and defaulRedirect="Error.aspx". I have Error.aspx at two places. One at Views/Shared folder and one at project root folder level. But each time an unhandled error occurs, the error page at root level gets called. How can I ma...

loading an asp after starting a session

the jQuery $("#loginform").submit(function(){ $.ajax({ type: "POST", url: "loginrespajax.asp", data: $("#loginform").serialize(), success: function(){ $("#loginform").hide("slow"); $("#loginfo...

Implements EAN13 and UPC-A barcode in PDF using fpdf in classic ASP

/* FPDF library for ASP can be downloaded from: http://www.aspxnet.it/public/default.asp INFORMATIONS: Translated by: Jeremy Author: Olivier License: Freeware DESCRIPTION: This script implements EAN13 and UPC-A barcodes (the second being a particular case of the first one). Bars are drawn directly in the PDF (no image is generate...

complete project of the book -- “ASP.NET 3.5 Social Networking” by Andrew Siemer

i have been reading, using vs too to get familiar with the step followed to write the coding...... i have reached the end, all the code the third party plug-ins, references etc have been made on running the work it gives a lot of errors, some are too hard to debug. can any one please help by giving the complete website this book has t...

ASP MVC - Getting application to restart when starting new debugging

Hi there. When editing parts of my project that get called in Application_Start(), i want to have the web app restart every time i press 'Debug', so that i can debug these parts. But if i dont change the Global.asax.cs self, it doesnt restart and therefore doesnt fire the Application_Start(). Is there any setting or trick to let the ap...

Saving FileSystemObject as UTF

how can i save the file in utf-8? Dim FSO, File Set FSO = Server.CreateObject("Scripting.FileSystemObject") Set File = FSO.OpenTextFile(Path,2,true,-1) File.Write(xml1) File.Close Set File = Nothing Set FSO = Nothing ...

classic asp xml receiver page doesn't receive the xml (or so it seems)

Hi, I am working on Classic ASP and was going through a possible solution of posting and reading an xml. I read Tim's reply (which is pasted below) but this doesn't work for me. It seems xmlDoc.load(Request) doesn't load anything. What could be wrong here? I would very much appreciate a prompt response. This is the posting page: url =...

Tinymce.init interferes with windows authentication

I am retrofitting an intranet application to uses integrated windows authentication. The application is built in asp classic/vbscript. The application authenticates users by obtaining their username from the Request.ServerVariables("LOGON_USER") method, and checking the name against a list of registered users in a MSSQL database. This ...

problem with Asp Net web Resource

Hi: We're working on a ASP Net web application that we migrated from 1.1 to 3.5 and, for some reason, the resource file is not taking the values we try to add/update. Some points to consider: 1)The legacy web app, generated 2 files: "MyFile.es-Mx.resx" and "MyFile.es-Mx.resources" 2)We can modify the "resx", but added/updates values are...

Junit with .Net Technologies

Is it possible for us to integrate the junit test cases for an application for which we are developing using the ASP.Net Platform? Since I am from Java j2ee Tech background, have a very less knowledge on .Net Technology ...

ASP SQL Error Handling

Hello, I am using Classic asp and SQL Server 2005. This is code that works (Provided by another member of Stack Overflow): sqlStr = "USE "&databaseNameRecordSet.Fields.Item("name")&";SELECT permission_name FROM fn_my_permissions(null, 'database')" This code checks what permissions I have on a given database - the problem being -...

Editing AppName.dll.config in Production - changes aren't picked up.

Background: I have an ASP.NET dll which I'm referencing from a classic ASP web application. [Pause for groaning.] I've added the dll to the GAC and registered it with regasm and so forth, per various articles here at SO and elsewhere. It all works: the object is created, a database is called, everything ends well. The problem, thou...

how to use js with my server date and time

i want my server time and date to be set as new date i have tried this: dateNow = new Date("<%=now()%>"); but this is not working how can i do this? here is the code that give me the problem... it is just get stack on the time diff and doesn't countdown <script type="text/javascript"> dateFuture = new Date(<%=year(privatesellstar...

How to embed html file hosted outside the server in an ASP page ?

Hi, I have to display the content of an HTML file which is hosted to some other server in a classic ASP page. I know using #include tage we can embed suchc html file provided they resides in same server, it can not refer to an external urls. Another way out is to use iFrame, but the problem with that is the user can right click on th ...

Classic asp paging and session state

Hi, Working on a classic asp page that uses paging. The error I am having a problem with is this: Lets say that you have 5 pages returned in your record set and you are on page 2. You leave and come back, you then press the link for page 3, the trouble is your session has timed out. I don't know why this happens but the page is relo...

What do you miss from classic-asp days that is not available in asp.net ?

Many of us have come from classic-asp background and eventually picked up asp.net for better. But I miss many features from classic-asp that are not available in asp.net. Like, I don't get complete control over the markup renderred to the client in asp.net wherein in classic-asp it was possible. What are those features you miss from you...

Avoiding try/catch hell in my web pages

I am writing an ASP.NET website, which is a new framework for me. I find that I have a try/catch block in literally every method of my codebehind. All these try/catch blocks do is catch the exception and then pop-up an error message to the user. Isn't there some sort of global error handler in ASP.NET? It's worth noting that my error han...

IIRF with IIS and the ASP.Net Tilda(~)

Hello, When I turn on URL Rewriting to access a page, the ~ no long is replaced with the application root. For example should produce: but its only outputting The tilda is supposed to be replaced with the application root path but it looks like IIRF is messing with that somehow? Any ideas on how to fix this? ...