I have a access database that has data where the people entered their name all in upper case or in various forms of upper and lower case. Can a change all the data so it is in a proper format. Example: This is Joe Smoe. Or change it to be all lower case for email addresses?
right now i am developing a web site. i want to know how to write the code to change the case for the text which we entered in the text box control? for example: if user enter his name as john elan, then we should automatically convert that text into proper case. i mean the name should become John Elan.
I would like to know if I can change the text value of an item in javascript ie:
<script language='javascript'> function restore_BG(the_Id) { if (the_Id == 'Arts') { document.getElementById(the_Id).??? //what code needs to be here to change 'Hallo' to 'Bye' for eg. } } </script> <tr onmouseover="javascript:restore_BG('Arts')">Hallo</tr>
I have 10 text boxes... first 5 text boxes e visible , rest of the 5 are hidden... once i clicked the button , the hidden boxes should be visble.. can anyone help me hpw to write script?
i have three images on my page which i want to be able to increase the text size of the whole page by using these buttons
Small Normal Large
Standard size will be normal, the others i want to affect the whole site so when they change page the setting changes stay with them
The only way i can think of is multiple style sheets and saving to a cookie anyone got some examples or suggestions / solutions for how to approach this ?
In a form I'm creating several asp text boxes for user input. When I look at these in IE or Firefox one or two are coloured yellow with a border, whereas the rest are the normal white with a thin blue border.
There is nothing I can see in the code that does this, and with a bit of testing I can force this condition by adding text outside the text box. Very weird. Has anybody seen this behaviour before. I'm using Dreamweaver MX 2004, but I'm feeling it's not DW at fault here.
i have several fields in the database that the format is number. then, i have a report page that allow user to open it the ms excel. my problem is, when all data transfered to ms excel, all data that is in number format, they are located at the right of the cells and there is 1 data named noIC, suppose this data is a 12 digits number but in the ms excel, it became something like this 780945+E12....
to solve this problem, i have to change the cell's format everytime all data have been transferred to ms excel. i have to set to left indent for all fields that contain numbers and for the noIC i have to set from General to Number.
Code like this ======================= Select case q Case "a" Dim arr(5) Case "b" Dim arr(2) end select ===================== returns an error saying variable arr redefined. Should it be like that or an I using Select incorrectly? Perhaps something similar to break needs to be used?
ASP/javascript with a drop down populated by an access database. The drop down works fine but I cant figure out how to get it to change a value of a text field.
I want the value in the text field to change to reflect the data in another column in the table, same row. Code:
I need to filter the records of a table where the records contain a searchin string with no case sensitive compare, and all with one only sql statement.
"SELECT * FROM Stuff WHERE LOWER(StuffName) LIKE '%" & lcase(StrSearch) & "%'"
but the error is in the function LOWER exist a similar function ?
I have virtual directory where I run test.asp page with only this code inside:
<%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get : 1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a result 22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get : 1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is : d.M.yyyy and I would like that date on the page is always like this: 22.1.2004 14:19:06
I have this below. If there are 0 records, I want to do nothing, which it does. I need to perform a task if there is more than one. Case > 1 doesn't work. The most records I would have are 5.
I am having a hard time understanding how to use a SELECT CASE in ASP. I have used it in VB but never in ASP scripting.
Scenerio:
I have 2 textboxes on a form that I have to allow entry to one or the other or Both at the same time. Now I tried to use an If ElseIf but it got too hard to track, so now I am using a SELECT CASE Statement.
TEXBOX1 named strEnglish TEXBOX2 named strFrench
My code: <% strEnglish=Request.Form("strEnglish") strFrench=Request.Form("strFrench")
Select Case
Then I have no idea how to go from here, because I have 2 input textboxes to follow. Code:
"Stock Value" Could be anything from 0 to a million or so, and might include a decimal (12345.67) . I can't find how to do this:
Select Case StockValue Case 0 To 30000 response.Write("Less than 30000") Case 30000 To 80000 response.Write("30000 to 80000") Case 80000 To 180000 response.Write("80000 to 180000") Case Else ' > 180000 response.Write("Greater than 180000") End Select
I have one very simple question. I an just going blank on this. I writing a select case statment and want to know if I can have one of the case equile 2 values.
IE :
select case animal case "dog" or "cat" /// this only works if i remove the or half 'write form here case "mouse" 'do something end select
i am working on a login page in asp classic with microsoft access at the back, in current scenerio the username and passwords are not case sensitive and i have to make them C.Sensitive. can any one help me in this regard?
I'm trying to build a case statement that when a person logs in, the login page sends them to a redirect script based on the query string redirect.asp?id=1.
So far i can make myself a basic case statement, but i'm confused on how to get the window to pop up in a 400 x 600 window with no tool bars and such. any ideas?
Since my website uses a font for headlines that doesn't exist on default in windows I want to dynamicly create my headlines with images(of characters) For this to work nicely I have to detect if a character is upper or lower case.
Like the string
"Welcome"
Here I want to replace the "W" with a upperw.png and then replace "elcome" with lowere.png, lowerl.png, lowerc.png...and so on, you get the picture.
Is this possible in asp (vbscript) ? or java if It's possible to integrate into my vbscript page.
The problem is that it does not appear to be case insensitive (even though I specified the "textual" argument as seen above.) For example, if "BPS" is a term in the array, but "bps" is in the "temp" variable, it will not get replaced.