asp

calling a VB.net function from javascript

Hello all, I need to find a way to call a vb.net function in my aspx page from javascript. I have a Jquery function that makes the .drop class .droppable, and whenever I drop a .draggable onto a drop target, my Jquery code successfully fires a java alert statement. All in pure javascript. What I need to do is some heavy math! I do unde...

Using a dictionary object in application scope in Classic ASP

Following up from my last question does anyone know how I can use a dictionary object in application scope in Classic ASP? You cannot use Scripting.Dictionary - if you try you will see something similar to the following: Application object error 'ASP 0197 : 80004005' Disallowed object use /xxx.asp, line 2. Cannot add object with apartme...

Can I do delayed execution in ASP? Or: please offer any help on improving performance of an old ASP site

I'm trying to improve the performance of a website written in classic ASP. It supports multiple languages the problem lies in how this was implemented. It has the following method: GetTranslation(id,language) Which is called all over the shop like this: <%= GetTranslation([someid],[thelanguage]) %> That method just looks up the ID...

Passing info from JS to ASP server side

Hello all, I've been trying to somehow get my javascript function (which I have in the head section of the aspx page) to set a value in a hidden item, then some how have the server-side (trusty 'ol ASP) read that data so I can do some work depending on what it is. I have my entire page wrapped in an update panel, and my drag 'n drop woe...

CSS issue - my DIV stays collapsed!

Hello all, On the homepage of my website - www.mobiuspc.com, I have some distinct sections that I color coded so I could see how its all laid out. There is the master page section, which works just fine (its the tan bar with buttons like "Components" and such), and at that level and up everything works as best as I could wish for. Down...

SQL Timeout Errors

I'm getting a problem with only 1 of about 30 sites we run on a W2003 Web Server. Probably for about 25% of the day, the website constantly returns : SQL Timeout Errors on various connections to SQL (using ODBC) I have checked and updated the ODBC drivers to the latest that I could find (3.5.x?) and I am also checking the SQL server t...

Classic ASP - How to convert string to UTF8 to USC2

I have a problem where I am storing a UTF8 string in SQL Server as USC2, when I pull it out to display on a page with content-type set to UTF-8 it works fine. But I have a third party javascript component which when I pass it the string for the database it renders it as USC2. or not UTF8. Is there a way in ASP to convert this string to ...

Replace words from querystring with Regular Expressions

Hello the string is = "Reg.asp?q=RG_Price=5000*8000,Activated=1" and i want to replace "RG_Price=5000*8000" with that "Price BETWEEN 5000 AND 8000". Is that possible with Regular Expressions in ASP ? ...

Why are my Chinese characters not displayed correctly in c# string

I am storing Chinese and English text in an SQL Server 2005 database and displaying it on a webpage, but the Chinese is not being displayed correctly. I have been reading about the subject and have done the following: used N before the text in my INSERT statement set the field type to nvarchar set the charset of the page to UTF-8 Chi...

how to create a progress bar in asp .net c#

Duplicate of http://stackoverflow.com/questions/412264/progress-bar i want to create a progress bar to given number ...

ASP/ASP.NET Best way to handle write permissions?

Say you have public ASP.NET (and Classic ASP) applications on IIS with a script/page that needs to write or update html files in a specific folder that is located within the web publishing folder tree. What is the proper way to handle this and exactly how do you do it? (i.e. set directory permissions in IIS or windows explorer) My main...

How many simultaneous connections can an .mdb access file support?

Hi! I have a website (www.soltrago.com) wghere I use a .mdb microsoft access database to retrieve data when the pages loads. I use a dns less connection to connect to the database. My question is how many simultaneous connections can I have to my webpage? Like how many people per second can view my webpage? Thanks! ...

Looking for code to add 'featured' to particular number sequence

I was thinking of the best way of adding a class of 'featured' (in classic ASP), in this sequence of records from a DB: N,Y,Y,N,N,Y,Y The sequence is: 2 3 6 7 10 11 14 15 18 19... I already have a count (starting from 1 going for each record) Many thanks! ...

Oracle adds NULL Byte (ASCII: 0) to varchar2 string

I've run into an odd problem with a legacy ASP application that uses Oracle 9i as its database. We recently had the DBA increase the size of a VARCHAR2 field from VARCHAR2(2000) to VARCHAR2(4000). The problem is that a NULL byte (ASCII: 0) is inserted into the 2001 character position in the string even if the string inserted is larger ...

how to implement openid support with classic asp?

I'd like to implement something like stackoverflow's login system in classic asp... is it possible? thanks in advance... ...

ASP session expiration issue

Hello everyone, Some of my legacy program is using ASP (not ASP.Net), and even if I set long session expire time for example to 20 minutes, sometimes in short time (e.g. in several minutes) I will still notice session expire error box -- "too much idle time, please login again". Any ideas to analalyze further? Not sure whether it is my...

ASP.Net session life time issue

Hello everyone, I am confused about ASP or ASP.Net session life time (or life cycle) concepts. More specifically, my confusions are, how did IIS magically knows a new session starts and an existing session ends? Especially how IIS treats whether a session continues or ends when we call redirect code; how many differnet ways to set ses...

legacy (classic) ASP code session issue

Hello everyone, My question is about classic ASP, not ASP.Net. I ask expert here since search engine always tell me ASP.Net answers. My confusions are, How to set session expiration time in classic ASP code or through configuration? How to extend session expire time? Is there a session expire event? How to know when session will expir...

Refer to Footer value in GridView created dynamically ASP VB

I have a Gridview that I create a dynamic footer wired up to the RowDataBound event. However there is a 50/50 chance that 3 of the columns will have no data. I want to be able to dynamically hide the columns with no data if possible. I have tried doing this in the RowDatabound event by checking if the value is = 0 but that does not wo...

Server.ScriptTimeout

Hello everyone, In MSDN, it is said, "The timeout will not take effect while a server component is processing." -- what does this statement mean? Could anyone show a scenario it is referring to please? http://msdn.microsoft.com/en-us/library/ms524831.aspx A related question is, whether it is good code to judge that, if a session varia...