|
How can I enable SSL and Https on ISS Web Server?
I'm using WinXP SP2.
Thanks,
Hung.
Hung
|
|
|
|
|
hi all,
how can i delete temp files used in session when the session ends?
the user does not have to authenticate for the session. but a temporary invoice is created as pdf and shown as link on page after it is emailed off. when the session ends i would like to delete this file to not clutter up server.
any ideas please?
kind regards.
g00fy
|
|
|
|
|
If there is any event that happens when the session times out, you can use that.
If you would have mentioned what platform you are using, I could have been more specific.
---
b { font-weight: normal; }
|
|
|
|
|
sorry i just assumed this was asp.net forum
im using c# too
the session_end doesnt fire, i know this only fires when the session times out and not when the browser is closed, but the file is not being deleted. and the event isnt fired
any ideas please.
i was thinking of firing a thread on application start to handle all the cleanup by associating a sessionid with the file and if that session id wasnt current then it would delete the file, but i think i would (to be safe) have to sleep the thread for at least 30 mins as they could leave the page with the link open indefinetly.
sleeping a thread for this long doesnt seem right. so i abandoned that thought.
regards,
g00fy
|
|
|
|
|
Are you really sure that the event isn't fired? Can't it be that the code that you have put in the event handler isn't working? As the event isn't running as the result of a request, there are some things that you can't use in the code, like Server.MapPath.
You shouldn't need a separate thread to handle this, as there already is a thread running that fires events when the sessions end. Make your code work with the system instead of trying to build a copy of it.
---
b { font-weight: normal; }
|
|
|
|
|
this code in session_end doesnt delete the file, and it definityle exists, it should always but just to be sure i check, in case of creation errors.
string file = Convert.ToString(Session["temp_invoice"]);
if(File.Exists()) File.Delete(file);
any ideas, please
thanks for your help so far.
kind regards,
g00fy
|
|
|
|
|
Then it might be a file permission issue.
In ASP, the Session_OnEnd event runs directly under the IIS process that uses a different user account. The same might apply to ASP.NET.
Try to set change permission to the folder for the IWAM_[machinename] account also.
---
b { font-weight: normal; }
|
|
|
|
|
I want upload 1 file by use asp page.
I don't know the way to do.
Can any one help!
|
|
|
|
|
Hi Lien,
just do a quick search from this site, below are some links migh be what you need
Ex 1
Ex 2
Hope this helps
<< >>
|
|
|
|
|
I am trying to validate a text box as the user keys in the dollar amount. Using the below function, if the user keys in "a", it does the alert If I key in 10aa, I get the alert but if I key in 10a, I don't get the alert.
Any ideas about what I am doing wrong.
Thanks
John
function TestForNumber( obj, event )
{
var curChar = String.fromCharCode( event.keyCode );
var inpStr = obj.value + curChar;
result = inpStr.match( '^[0-9]+\.?[0-9]??[0-9]?$' );
if ( ! result )
{
event.returnValue = false;
event.cancel = true;
alert("Unapplied cash can only be numerical data")
}
}
|
|
|
|
|
Check out the script here[^].
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks for the reply, but can't view it. Javascriptkit.com's server has been down for two days
|
|
|
|
|
I am trying to write this program It would be helpful to the user if they could be informed, as they are typing in their values, which day of the week they were currently
entering data for, and also if this information was provided in the
output.
can anyone help
<HEAD>
<TITLE> Exhibtion Attendance
</TITLE>
<SCRIPT >
/* Program to display exhibition attendance figures*/
var attendArray = new Array ('Monday','Tuesday','Wednesday','Thursday','Friday');
document.write('Array program to provide daily exhibtion attendance figures');
for (var day = 0; day < attendArray.length; day = day + 1)
{
attendArray[day] = window.prompt('Enter attendance figure for ' + (day + 1 ),'')
};
document.write('<BR>' + '<BR>');
document.write('Confirmation of daily exhibition attendance' + '<BR>' + '<BR>');
for (var day = 0; day < attendArray.length; day = day + 1)
{
document.write(attendArray[day] + '<BR>')
}
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
-- modified at 7:05 Sunday 12th February, 2006
|
|
|
|
|
I am working on a project where I need to upload a logo that can be used with different t-shirt styles, colors and the logo must be able to resize on fly and maintain transparency color.
-My original idea was to use aspimage by using either DoMerge or AddImageTransparent but aspimage won't let me load gif file
http://www.serverobjects.com/comp/Aspimage.htm
-then I decided to go with .png (by keeping t-shirt in background in the table) but png has some compatibility issue since IE doesn't support variable transparency or alpha channel (which means I have to specify only ONE transparency color to begin with)
-then I look for info about asp.net but it turned out that asp.net doesn't support transparency
-then I finally found this SevenObjects that let me Create Thumbnails & Maintain GIF Transparency
http://www.dnzone.com/showdetail.asp?NewsId=327&savePass=1&strUserID=denden&strPassword=4edz7c&Submit=Login&offset=0
but I couldn't find any documentation on how to use it.
so here are my questions
1) How do I create .gif or .png thumbnails on fly which maintain transparency color
2) Are there any components or solutions to merge transparency gif with different image?
2) Here is the best example of exactly how I need it --> http://www.comboutique.com/shop/t_shirt_minute.html
customer select the design and tshirt style then it dynamically display output which maintain transparency of design so it can merge with different tshirt (how to do this in asp?)
or any solution on how to acomplish this is great help and sorry about my poor english ^^
|
|
|
|
|
Dear All
How to Starting Programming with Web Service.
Pls, intro to concept and implementation.
Best Regard.;P
Beginning Programmer.
|
|
|
|
|
Hi,
I have a very serious problem. I have been hunting the net for past 1
month, but the out come is nill.
My problem is I have to display calander items of a PST file from a ASP
page, but there is no Exchange server. I have IIS installed & running
well.
Can anybody help me solving the problem.
I just want the way I can get connected to the Outlook Pst file.
I have several documents which tells me how to get connected using
WScript.
But I cannot modify that to get the solution for my problem
I know to access outlook we need :
Set objOutlook = CreateObject("Outlook.Application")
but whenever the line is written on the page the IIS server crashes -
as if it is trying to go through an infinite loop.
This line works perfectly fine with standalone VBScript & VB6.
I need a replacement of this code that can help me connecting to the
pst files with no exchange installed.
Please help me........
|
|
|
|
|
Hi,
I am looking for some information on best practices on how I might solve the following challenge:
I have a ASP-based security core to handle all user security and now I have come to the point of building modules to be used in the system and am aiming to have a kind of plugin skeleton which can be dynamically loaded and run by the core, something like, I imagine it to work like this but not sure how to accomplish it:
Skeleton file is loaded and Load() method executed
Load() method would handle display and execution of the module
Unload() method would unload the module
Any help/pointers on this would be gratefully received.
|
|
|
|
|
We can get a DEFAULT numeric value using session.lcid representing a location.My question is this that IS THIS NUMERIC VALUE REPRESENTS SERVER LOCATION OR CLIENT LOCATION???????.e.g
response.write(session.lcid)
now server location printed or client location printed|??????????
|
|
|
|
|
Neither. It's not a location, it's a locale.
LCID is the locale that is used to determine what kind of formatting should be used when converting numbers, dates and currency values into strings. The default value for LCID is taken from the server settings, or the settings from some user account in the server (differs a bit depending on the version of IIS).
I think that your question mark key is a bit sticky... and watch out for that caps lock, it's really irritating to have to read upper case text.
---
b { font-weight: normal; }
|
|
|
|
|
Is there a way to write an ASP page. that download the file from another server. into my webserver.
What I was to do, is to use the webservers bandwi... to download the file and then send the file via e-mail.
So the page should take the url and send file on that url to some e-mail.
The e-mail part is fine. the problem is downloading the file on the server side.
Somebody help.
Bongzino web page, website designers ( www.bongzino.co.za )
South Africa
|
|
|
|
|
I created a webpage with the linked css as an ASP file.
Reason I did this is that I wanted to define attributes as variables.
So that I can change then at only one place.
Example was main font-size; I use that on the body{...} and also on the table{...}.
I works fine. I was just wondering how it affects the actual advantages of css as file.
Regards
Bongzino From South Africa (JHB)
Bongzino web disign
|
|
|
|
|
It doesn't work well at all. There are two possible scenarios:
1. The file is cached. This has the effect that the asp code is only run once, and any change you make will take days to appear for all users, as they are looking at the cached file.
2. The file is not cached. This has the effect that the browser will request the file every time, increasing the loading time and the server traffic.
In most cases the file is cached, even if you try to make the browser not to cache it.
Put the styles that you want to be dynamic in a style tag on the page instead of in the css file. This both gives you dynamic styles, and the advantage of css file caching.
Tip: You can have complementing specification for the same styles in the page and in the css file. Example:
In the css file:
body { background: #fff; color: #000; font-family: Verdana, Arial, Helvetica, sans-serif; }
In the page:
body { font-size 11px; }
-- modified at 4:51 Friday 10th February, 2006
And I almost forgot:
Some browsers (Opera if I recall correctly) doesn't even allow asp files to be used as css files.
---
b { font-weight: normal; }
|
|
|
|
|
Actually I don't want styles to be dynamic.
It just the once in a while I might want to change the theme or colors.
So I would prefare changing attribute at one place.
So it would be fine is the file can be cached at all time just like the normal css file.
Bongzino web page, website designers ( www.bongzino.co.za )
South Africa
|
|
|
|
|
Do we have a component which creates a data grid which can be categorised ie some sort of hierarchical data can be put in some columns and the rest of the columns shows the rest of the data relevant to the hierarchy opened.
Krishnendra
|
|
|
|
|
Hi,
I have got three columns in a datagrid:-
1.A simple databound column with text in it.
2.A Template Column containing LinkButton(Clicking on this opens a pop up window).
3.A Button Column containing a select button (Clicking on this redirects to other page)
When I click on the Link button in the second column pop up window opens, after closing it I click on select in the third column it directs me to other page clicking on the back button on IE directs me to the previous screen but the same pop up also opens up(one which i closed before clicking on the third column select button).
Is there any solution to prevent opening this pop up window?
Any pointer to this problem will be of great help.
Thanks in advance
ashish
|
|
|
|