I struck a dead end. I am looking for an elegant replacement for the ASP.NET DateTime.Now.ToString("r"));
method. It returns an RSS date in the right format required by the RSS 2.0 specification. The format is as follows: Thu, 11 Dec 2003 05:00:00 GMT
Does any one know of such a function in ASP/VBScript? If all fails, I would need to strip the date with DatePart ... Thanks in advance.
allia
Posts
-
RSS Date Format -
RSSSomething doesn't sit right... I noticed the RSS on codeproject and on other sites as well. It seems that it is not a static file, but instead it is generated on demand. The file is of '.asp' or '.aspx' extension. I figured it should be '.xml'. Am I wrong? What is the prefered method by RSS feeders? Also, Weird thing - I can't view the source of the RSS page on codeproject.
-
RSSThanks, you have been lots of help. You have ensured my understanding. Also, thank you for the link to the RSS article - I didn't notice it before. I live to code.
-
RSSThanks, If I was to make an RSS of the 'latest updates'. How would the dynamic rule work? When I first thought of it, it seemed like only when I press the RSS icon the file is generated - but that can't be true. It has to be generated before hand so that you can use feeders to read the data.... So when will be the right time to export the 'latest update' rss feed? Thanks in advance.
-
RSSDoes anybody know how to generate an RSS feed? As I understand it, the xml file generated is static. It is not a dynamic script. i.e., that it is generated once and then available for read by feeders. Is this true? Would I generate it each time a 'latest update' has occured? Does anyone have a sample script that generates RSS?
-
uploading files, ASP?Hockey wrote: why you can't FOR EACH elements while using ASPSimpleupload Well you can't FOR EACH elements because the object doesn't support this property. You validate input by using the
upload_component.Form
methods. But I need to write about 30 lines of code to extract all data instead of using a simple FOR EACH loop... PHP is not an option since most of the code has been already written in ASP. converting the whole logic to PHP is a time hassle. Appreciate any ideas! Thanks. -
Dynamic Filter Form FunctionTake a look at [Dynamic Table Filtering/Searching using DHTML and JavaScript](http://Dynamic Table Filtering/Searching using DHTML and JavaScript)[^] By Sidney Chong
-
Registration, Authentication, Cookiesjust as I suspected... and thats why its only for members... Ok, so the database will hold what? 1. A separate table with
userId
, and a field that holds all the[articleIds-vote]
seperated by comma? (and latter traversed with split?) -OR- 2. A separate table withuserId
,articleId
,vote
for each article that was voted? Which is faster, efficient and useful? Thanks in advance! I live to code. -
uploading files, ASP?consider a FORM with a Browse for file feature, and some other FORM elements in it. Now, lets assume that some FORM processing can't be done in Javascript and needs to post the information to the server for validation. Now, if the validation failed, I would like to present the user with an option to resubmit a correction. This is where I am stuck. The free ASPSimpleUpload component doesn't let me use FOR EACH element IN... which was intended to write out all the form data (regardless of what form elements I have) to a HIDDEN INPUT field. What I wanted to achieve by this is let the user correct only the non-valid fields, and the rest remain hidden. Then, upon re-submit, the form gets processed again. 1. What happens to the uploaded file? does it get uploaded again? 2. How can I go around the FOR EACH statment and let the user enter a correction? Is there a way to do a BACK button without loosing information? Notes: -I can't install DLLs or components on the server. -The server only supports ASPSimpleUpload -splitting the form from the file upload is hazardous, since someone can start the form, enter a record in the database, and not upload files... Appreciate the help or any input on this matter. I have read all the articles regarding this issue on codeproject. Thanks in advance! Does ASP stand for Awful Server Punishment ?
-
Registration, Authentication, CookiesOk, I am still in need of help but this is what I have so far: I have decided to encrypt the cookie data which holds only a developer_id and alias. using double encryption I can later compare if the data has been tampered with or not. votes This issue remains unresolved. How can I ensure that someone doesn't vote twice? CP rules!
-
Registration, Authentication, CookiesOk, I am still in need of help but this is what I have so far: I have decided to encrypt the cookie data which holds only a
developer_id
andalias
. using double encryption I can later compare if the data has been tampered with or not. votes This issue remains unresolved. How can I ensure that someone doesn't vote twice? CP rules! -
Registration, Authentication, CookiesThe best way I can think of is to relate my question to what codeproject does: Remember Me? After logging in, how does the system recognize me the next time without storing WhoIs data in the cookie? If I would store the
developer_id
one could easly make his own cookie as another developer. Storing a password is unsafe and I would like to avoid it. Vote twice on sunday When voting for an article, it is fair to only vote once. How can I ensure that? I looked in the codeprojects' cookie and didn't see any recollection of my past votes... Is there a database involved? can someone suggest a way to approach this issue? Needs I thought that it is wise to store adeveloper_id
andalias
in a cookie and that would help out when approaching FORMS throughout. With that, I would extract the necessary data from the DB - e.g. Email and "place" it where it is needed. But, as I mentioned, by just browsing the site, one can easily bake his own cookie with another existing developers' id and alias... Encryption If by now you are thinking why not use encryption, then do you know of a good encryption algorithm for ASP (NOT .NET) ? Thank you. -
idiot question...glad to have helped ;) I live to code.
-
idiot question...try using dtext = text.replace("\r\n","\n"); or use dtext = text.replace(/\r|\n|\r\n/g, ""); I live to code.
-
Resizeable iframeThis is out of the blue but have you considered putting an IFrame inside a frame? set the iframe to width=100% and have the frame as your border... I don't know if that will work or even if you want to use frames..
-
Registration, Authentication, CookiesThe best way I can think of is to relate my question to what codeproject does: Remember Me? After logging in, how does the system recognize me the next time without storing WhoIs data in the cookie? If I would store the
developer_id
one could easly make his own cookie as another developer. Storing a password is unsafe and I would like to avoid it. Vote twice on sunday When voting for an article, it is fair to only vote once. How can I ensure that? I looked in the codeprojects' cookie and didn't see any recollection of my past votes... Is there a database involved? can someone suggest a way to approach this issue? Needs I thought that it is wise to store adeveloper_id
andalias
in a cookie and that would help out when approaching FORMS throughout. With that, I would extract the necessary data from the DB - e.g. Email and "place" it where it is needed. But, as I mentioned, by just browsing the site, one can easily bake his own cookie with another existing developers' id and alias... Encryption If by now you are thinking why not use encryption, then do you know of a good encryption algorithm for ASP (NOT .NET) ? Thank you. -
AntsI found it useful to keep honey and sugars inside a water filled container. They don't approach it if they know the risk... Did you know that the ants follow each other by using pheromones? Each ant lays down some pheromone when it searches for food. The pheromone disolves in time. Once an ant finds food, it uses the trail back and enhances the pheromone. This way, new ants, follow the latest and richest pheromone trail. I find the ants useful. They clean up. They are smarter than any AI program I have ever written ;) I live to code.
-
UL text color and CSS problem.oh, sorry - add li after the ul or in a separate block The following work on my IE: li{ list-style-type: cirle; font-size:medium; color:#3C81D0; } ---OR --- ul li{ list-style-type: circle; font-size:medium; color:#3C81D0; } I live to code.
-
Viewing Files From Access DatabaseA simple SQL SELECT statement would do. Dim sql sql = "SELECT the_file_field FROM your_database WHERE some_condition" ' Create a RecordSet Object Dim rs set rs = Server.CreateObject("ADODB.RecordSet") ' Retrieve the records rs.Open sql, Connection, adOpenForwardOnly, adLockOptimistic 'write it Response.write rs("the_file_field") Note: you need to open connection, check EOF, close connection. I reffer you to Chris Maunder's [Article on Accessing Microsoft Access databases in ASP using ADO](http://Article on Accessing Microsoft Access databases in ASP using ADO)[^] I live to code.
-
UL text color and CSS problem.Hmmm, wouldn't
color:#3C81D0;
work? there is an "=" sign there that should not be. Or am I wrong? Also change it in the body tag and add ";" at the end. I live to code.