Strange OS Related Asp Problem
When adding i am checking if that name already exists in the DB and if so i am poping up the message that name already existing.
It is working perfectly in my win2000prof and i have tested in both in my localhost and ftp servers and in both places it is working as i ahve expected.
But when the same application is opened in winxp i have a strange problem coming. When i add a new list , then it checks for the name and what happens is every time i add a new one and even if there is no matching record or matching name avialable for that record, javascript popups saying "Favourite List Name Already Exists" and the strangest part is the insert part also working. That is both if and else part are working together. I am getting this problem only in XP. Code:
View Replies
ADVERTISEMENT
i ve a problem thats regarding the data retrieval from database.I m storing data in the microsoft access database by writing query in the asp page..and the number of characters is exceeding 255.so the datatype that i ve chosen is memo...
but now when i want to retrieve the data on another page by writing query i cannot retrieve the whole data it is truncating and i can get only 255 characters
View Replies
View Related
i have a table with sno, userid, name, age, level
where level means the type of grade a person has like A,B it may even be Numbers on a scale of 1 to 5
the sno is declared as a rowid datatype
if i want to update any record i have to give the existing userid ( primary key ) and even update the primary key if there are no duplicates (obviously)
so when the userid is entered i am selecting the rowid where userid = request("")
and storing that rowid value in a variable to perform update operation in the next few steps
i am getting a type mismatch when i am doing the assignment
is there somethin wrong in the code ( that i need to check again ) or that sort of assignment cant be done
( i am still tryin to get it right as i write this thread )
i have one more ques: does the rowid value remain constant that is when i do a delete operation on one row and then subsequently a update operation on another row in the same table will the rowid's get mixed up and mess up my data.
View Replies
View Related
I have compiled an activeX dll and pass variables using asp into functions within the dll.
When I test this running the code with Visual Studio the data is output correctly to the browser, however when I compile the code and run the same code the data is different! This is confusing me as to why this is happening....
I always re-start the web service after registering the dll...
Any ideas?
View Replies
View Related
Is there a way to perform multiple actions on a SUBMIT with ASP?
Example, I have a submit button that when it is pressed, it performs an action where information is stored in the database using a stored procedure. Can I also write out a flat file of the information saved separately or something parallel without hendering the original submit? I would want to do these two requests at the same time on the submit. Is it possible? Can someone give me some guidance on this?
View Replies
View Related
I am making request to my asp page as
http://localhost/test/test.asp?id=mike
this works great query string value is retrived as "mike"
whereas when I give the URL like this
http://localhost/test/test.asp?id=%aaa
I dont get id value = %aaa
instead I get some garbage value...
is there some kind of encoding required when % is involved in querystring...
View Replies
View Related
currently i have an online shopping website that display 12 categories of different items of up to 12 types. well my boss wants related items to be displayed in each of the different items . i am not sure how to start this. is there any special code for it. please advise.you may visit www.mellon.com.sg/shop to view .
View Replies
View Related
I have 2 web sites hosted on 2 different machies (pages are in classic asp). when the user accesses http://Machine1/testapp then a cookie is written say
Response.Cookies("user")="Alex"
Whe the user acceses http://Machine2/testapp then a cookie is written as
Response.Cookies("user")="Alex"
before machine2 writes a cookie I need to check if the browser already hase Machine1 cookie, if yes then dont write if no then only write. I know the different hostnames generate different cookies....but is there any way for machine2 code to check client browser cookie for machine1.
View Replies
View Related
I have a page that lets the users make contact groups and send an email to
them. I have a form that lets the user enter the details of his message
including his full name and his email address. Once this form is submitted,
I do the following to get a string for .From property of the CDONTS mail
object:
Sender = userFullName & "<" & userEmailAddress & ">"
Now I stumbled upon a bug where if the user adds a title to his name (i.e.:
"John Smith, MD"), the address for the recipient gets truncated where the
comma is and the recipents can't reply as the address is now invalid. Is
there a way to encode any special character in the string so that it will be
mailer friendly?
View Replies
View Related
I keep getting an error in coding. I am using Dreamweaver MX 2004 and once I
preview it in IE it works then once I press F5 to 'refresh' it fails again.
The IE error returns this link
http://support.microsoft.com/defaul...Q241271&sd=tech
It regards the following : IIS 5.0 Continues to Return 500;100 Error Page
with Response.Buffer Set to False
Does anyone know what this means and how to fix it?
P.S The previous thing I was doing before the problem was setting up 'data
bindings' in DWMX - to be fair this was somewhat a trial and error approach
and I'm not sure if I've damaged IIS or DWMX in someway.
View Replies
View Related
Can anyone help me with this error?
code start ____________________________________________
Microsoft VBScript compilation error '800a03ee'
Expected ')'
/example.asp, line 142
Private Function FuncDiff(ByVal DateOne As DateTime, ByVal DateTwo As
DateTime)
------------------------------------------^
code end ____________________________________________
View Replies
View Related
I'm running ASP under IIS 6 with Tomcat. During the process, Tomcat will
forward to an ASP page with some data and those data will be written to MS
SQL and display some information in that particular ASP page. The Servlet
has no unsafe code. The strange thing is that all the data is written
correctly in the MS SQL with correct user and related information but the
data might become blank or send to different users in that ASP page.
Does anyone know what might cause this strange behavior ?
View Replies
View Related
This is the code I have so far:
I take the email address and split at the "@" symbol. Then I split at the "." sign to get the firstname and lastname.
Most of the times, the email address is of the format:
FirstName.LastName@company.com
However at times, the email address can be just firstname@company.com
At such instances the code fails, how do I check for the instance of . before I split it again?
View Replies
View Related
Access db, one table, 12 or so fields (id, item_name, category, manufacture, price, description etc.)... (ecomm site).
When displaying the details of a particular item I want to display "related items" below it. All I do now is pull info depending on the item id then display the size, dimensions, description, photo etc.
Lets say the item is a Large Blue Widget, i want to display related items... say "Large Widget Covers" or/and "Large Widget Accessories"... you get the idea... cross selling
So, I am looking for ideas on how to simplify the display of related items.
View Replies
View Related
I am designing a Web site with about 500 - 600 pages of festivals on it and would like opinions on two ASP subjects. I have designed about 20 pages or so as of now. These are the contact us, FAQ, about us pages and such. I also have a template to go by for each festival's page. But I have two problems I need fixed before I start to replicate.
(1) SSI and styles - There are four sections to each page. I use SSI (ASP virtual version) for the top, bottom and a small section of featured festivals (which is above the bottom) on each page. Between the top and featured festivals is the actual page. This way I can change a link on the top or bottom and it is fixed on all pages.
But, I have an enormous amount of styles listed (all styles on four pages) in the code from each page's fonts. Each page's styles are called something different. For example, the festival page itself has the styles as normal, ".style1." But the styles on the top the links, which once again is an ASP include, would be called ".style1top." I used that approach because .style1 on the festival page and top links could be different.
It works, but I have dirty code and I want the site to be as Google friendly as possible. I have thought about adding all the styles to a page and using it as an ASP include on all pages, but that would have way too many styles each page and be even dirtier. What is the best practice for this? Code:
View Replies
View Related
I have a database related problem:
Syntax error (missing operator) in query expression ''087,'1075654'
This is a mobile number I entered in a form. 087 is the cusMobilePrefix,
1075654 is the cusMobileNumber
why is there a double quotation mark at the beginning of the number and none at the end?
I dont get it. If i leave the ' in i get a data type error and if i leave them out i get the above error. Below is my ASP file: Code:
View Replies
View Related
Do you think it's posible to DISABLE a checkbox and the value associated with it, based on the DATE apearing in one of the columns in my database? Example,
I will loop through a list of series of products from my database, and I will put an automatic checkbox infront of any row in my form. I want ASP to automaticly disable the checkbox (can't be clicked on) if the date associated with it is older than 3 years.
View Replies
View Related
I have a page(.inc file) that contains connection to db; how can I make this page inaccessible to public.
View Replies
View Related
while using <form method=GET> whats the max length we can send in the input fields?
i heard that max querystring length is 2048 characters.while using forum with POST method its nearly one lakh characters.since GET method is treated as querystring, does it restricts the huge data?
View Replies
View Related
var oldLen = objListAppAnalysis.options.length;
alert(oldLen);
var i;
for (i=0;i<oldLen;i++)
{
objListAppAnalysis.options.remove[i];
}
var newlen = objListAppAnalysis.options.length;
alert(newlen).
View Replies
View Related
I have developed a site for my client,
eg., www.abc.com
I have registered the domain with godaddy and mapped the dnc to my server (Windows 2000)
When i browse that site using that www.abc.com, in one of the pages i found that the session value is lost. This happens only in some machines not same with all. Most of the machines works that site properly. But not the same in some machines. All machines has configured same.
The exact part is
eg.,
customerdata.asp
session("custdata") = request("name")
response.redirect checkout.asp
in checkout.asp
if i give response.write for that session("custdata"), In some machines i m not getting the value.
View Replies
View Related
**MySQL is accessible via ODBC manager and MySQL -Front. I am able to modify the databse. I can not access database from the ASP page that I did not modiy after the last successful interaction with database**
MySQL 4.1/IIS
Everything was working fine until last night PC shutdown to give it a break, was running for a few days. Today, after reboot, the ASP page, and my entire site for that matter, stopped working.
Here is the connection string that was working:
dbPath = "SERVER=localhost;DATABASE=molsonbubba;UID=xxxx;PWD=xxxx;OPTION=35"
useDSN = False
If useDSN Then
cString = dbPath
Else
cString = "DRIVER={MySQL ODBC 3.51 Driver};" & Server.MapPath(dbPath)
End If
Here is the code that throws the custom error (Database is not found) and stops. If I remove the code I am able to get the site up but no db operations work as I get a "HTTP 404 - Page not found error" ? Code:
View Replies
View Related
I just re-uploaded my .asp site to a new host.
But one of my pages now bugs, I get this error message in a Windows alert box:
Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked.
All other pages work fine.
View Replies
View Related
Not sure if anybody has run into this problem. I'm using ASPEmail from Persits to generate an email and send it. The problem is that when I check the email that the asp code sent using Outlook Express or Outlook the email gets cut off 3/4 of the way. If I check the email on hotmail, yahoo mail, any other email program....the email comes in full. Any ideas why this might be?
View Replies
View Related
A bit of a strange request this, but I do have a reason When using request.form to access a forms elements data, is it possible to btain the elements type.
For instance whether the field (element) its being passed from was a hidden field, a text box etc etc! I've hunted everywhere, and tried lots of variates but I couldnt find anything..
View Replies
View Related
This problem occured just the other day. Whenever I try to access an .asp file on my server with an exact url, I get an error: The system cannot find the file specified.
BUT, if I type in an url to a folder containing a default file (in my case, index.asp) the file is shown correctly .....
View Replies
View Related
Have an ASP page on internet, where I let the user write his email address. Today I see that this text input field has got a yellow background instead of the normal white as the other input fields. The code is quite normal. Using IE 6.0.2900. It has not appeared before. Then I rebooted the computer,but got the same result.When I try another computer, also with XP pro and the same IE, the text input is white as it should.
View Replies
View Related
why a ADO recordset.recordcount would return a -1? I have confirmed that it has records in it by writing some values to the screen. Why can't I count the number of records returned though?
View Replies
View Related
I have the simple form as below. When I click it is not getting the form
action from the line inside the loop but from somewhere else in the page.
The page has multiple forms but depending on what the status is various
elements are dsiplayed or hidden. For examples even If I change the
viewpo.asp to nopage.asp it still is displaying the page and going to
viewpo.asp page with the PONumber query string set. Code:
View Replies
View Related
For some reason,, the following recordset rs("w2itd1") will run fine when I'm looping it out on a page, but when I have it inside a sql statement, I get errors.
for example:
sql = " Insert into table (title) values ('"& rs("w2itd1") &"') "
This will give me an error. The contents of this rs is a book title. Oddly enough, however, if I enter any other of the rs("fieldnames") that I have, in exactly the same fashion, I have no problem. There just seems to be an issue with the text coming thorugh. Can someone
indicate what the problem could be?
View Replies
View Related
I have a MS Access database composed of a few related tables. I'm trying to link this with a website so that new data may be entered remotely via the website. I am using MS Frontpage, which has a simple wizard for this, but the wizard does not allow for updating multiple tables from the one web form. I have started learning ASP and VB, but all the books don't really discuss adding records to several related tables at one go. How do I do this?
Conceptually, I understand that you can't have a new record in the child table without a corresponding record in the parent record. It there a way of submitting several forms to the same record by 'indicating' which parent record each field is linked to? Is there a simple scripting code ? Any help or suggestion will be greatly appreciated, or just point me to where I might find the information I need?
View Replies
View Related
I have two list item one for country nd other for cities
how can I change cities list item value crosponding to the country list item value changes ??
View Replies
View Related
I have a timesheet application I'm working on. The user fills in a form which sends data to an Access db. On the results page I need to display the values from 2 fields; i.e if the user selects "Report Writing" from a drop down list, I need the data contained in another column called 'Codes' to display as well.
View Replies
View Related