How To Detect Ctrl+V Or Ctrl+C Key Press Event In A Textbox?
Assume that there are two textboxes one for entering password and the other for confirmation of password. The user shd not copy and paste the values into the textbox. How can this be done?
View Replies
ADVERTISEMENT
I have an asp page that displays records from my database table that can be edited. As part of windows/IE, I use ctrl+F to locate a row easily but this only seems to work on my description field "nvarchar". I have a field named Material that is "varchar" and if I try to use ctrl+F and enter the number 101380520, it doesn't find it. Any clue why this doesn't work for this field? Is it because it's a number?
If this is not possible like this, can you point me in the direction to creating something like a find button?
Would I use something like onClick="find()"?
View Replies
View Related
I know this is a crazy request, but is there a way in .asp to create a link that will emulate Ctrl Alt Del and take you to the Windows log off screen?
View Replies
View Related
As above, my Ctrl + Spacebar for intellisense is not working in VI 6.0.
I have checked keyboard assignments and Ctrl + Space is listed for Edit ->
CompleteWord.
I added Ctrl + Shift + Space and that does work, but Ctrl + Space does not.
I removed Ctrl + Space thinking re-adding it might help, but now the
Options - Keyboard dialog does not even detect Ctrl + Space when I press it.
Some other App must have taken that Keyboard assignment. Is there any way I
can find out who/what and possibly re-assign it to VI?
I am on a freshly installed PC with XP Pro SP2 and Visual Studio 6 SP6.
View Replies
View Related
I have a user form with current user and password. If user presses enter in any text box not submit form... Also it happens to me with other forms. I suppose that I will need to choose some option...
View Replies
View Related
I have a drop down menu and it is populated with different subdivisions...Those subdivisions are associated with an ID. I need a drop down box that once the subdivision is selected it will change the ID in a hidden textfield. Any thoughts or ideas on how to do this?
View Replies
View Related
I am trying to dissable the enter key on a form. Users are hitting enter instead of tab and results in an error. Can I dissable the enter key or make the enter key function as a tab?
View Replies
View Related
if anyone knew how to get the enter key to advance to the next text box and so on in ASP ?
View Replies
View Related
Has anyone used Candy Press.The price they are asking for for the Admin component is very reasonable and affordable.
View Replies
View Related
I currently have an event calendar that works fine so far.One thing i would like to improve is that when there is an event on that date,i wish it to be highlighted with a different color. Code:
View Replies
View Related
Is there a way for asp to know what url is in the address window? I have a function that is included in every one of my pages and I want it to write out different things depending on the page the visitor is on.
View Replies
View Related
Can anyone tell me how to detect a ip address behind a router?
I know that using ASP, we can detect the actual ip and the proxy ip, but what if the visitor is using a router that dynamically assigns a ip.
View Replies
View Related
I am using a stored procedure that outputs multiple recordsets.
I use <% SET rsDisplay = rsDisplay.NextRecordset() %to step to the
next recordset.
In one particular condition the final recordset is not passed to the
page, so I need to detect that the object is empty.
I did just try <% If NOT rsDisplay.EOF Then %but I get:
Microsoft VBScript runtime error '800a01a8'
Object required
Any ideas how I can trap this error? I just want the area on the ASP
page not to display when there isn't a final recordset.
View Replies
View Related
What I need is a field that is a drop down and when selected if less than four it needs to show a new field to select.
Once the total of the drop downs adds up to 4 or above then no more are created. This would be in the middle of a bigger form. Code:
View Replies
View Related
I'm working on an app to upload pictures to my Web page.
As part of it, I need to know the dimensions of the
images - how many pixels wide by how many pixels high. Is
there any way, as part of the upload or immediately after,
that I can detect that?
Also, though the solution isn't exactly appropriate to
this NG, I would also accept a client-side solution to
this problem.
View Replies
View Related
Normally I would do something like
if request.form("submitbutton.x") <"" then
....
end if
But I found a problem when the browser uses the 'alt text' instead of
the image (when the image is not found, or if the browser is not
displaying graphics, etc. How do you detect that? or should I?
View Replies
View Related
Does any one know how to detect if a user is using IE on a Mac so i can route them to another page.I have tried the following:Code:
strUA = Request.ServerVariables("HTTP_USER_AGENT")
But how do i parse this info to determine whether they are a MAC IE user ?
View Replies
View Related
I am working with a bunch of old code so I can really restructure the includes, otherwise I guess I could change all the #include statements to #include-once. Anyway, If I have a file with a class like this:
Class myClass
end class
I get a "name redefined" error. I've been seeing these and indeed from goolge searches, it's because the file is somehow included more than once. This problem doesn't occur for functions and the old code bases just used functions whereas I would like to add some classes. In C you used to be able to detect that at the top of the file and not included the rest of the file if it is allready included. I just want to at least detect it so I don't redeclare the class.
View Replies
View Related
How can I get the url of a page in asp and detect if there are no variables appended to the end? Would I somehow get the address and do an instr for the ? character? Code:
View Replies
View Related
Could anyone show me a tutorial or like show me a script in asp that can detect to see if the mysql backend is working? And if it isn't then to display a message that says something like "out of luck."
View Replies
View Related
Is there any way to detect JavaScript using ASP? I need a script that does something like this:
If JavaScript is enabled (is supported)
write this code
else
write this code
If not, can I do it with any other language?
View Replies
View Related
Is there a way whereby i can detect where the user came from?
For example:
if this user came from www.mywebsite.com/a.asp theni will redirect him to c.asp but if he came from www.mywebsite.com/b.asp then i will redirect him to d.asp
View Replies
View Related
I need to add in some specific browser detection in my ASP to identify Mac IE5 running OSX - is there any wahy of identifying this config alone - and not just identifying all Mac IE5s? If you have OSX Mac IE 5, please visit this page which will give your User Agent string.
View Replies
View Related
Is it possible to detect downloads of a file on the web server? Using ASP Classic?
View Replies
View Related
The delete method of the FileSystemObject.FileObject does not return a result. If permissions disallow deletion, it will not raise an error. Conversely, if the delete method does succeed, a call to FileExists directly afterward may return true because the system hasn't updated yet (or whatever actually goes on). Is there any way to accurately check the result of a deletion?
View Replies
View Related
Is there a way to enter an error in the windows event application log.
View Replies
View Related
I have been looking for a solution on the web about the error we got in the following:
Script Engine Exception. A ScriptEngine threw
expection 'C0000005' in 'IActiveScript::Close()'
from 'CActiveScriptEngine::FinalRelease()'..
It looks like that many people have the same problem and no one seems to know why it happened and how to solve it. So far, I cannot get any useful and specific pointers/solutions on the web, not even on the Microsoft site. If someone has the same error and is able to fix it, please provide solution.
We are running Win 2000 server with SP4 and IIS 5.0. Our server is loaded with all the updated patches from MS. We are also using COM+ with IIS.
View Replies
View Related
I searched around everywhere on the net, but could not find a simple example
of detecting if cookies are enabled - on server side, and without moving
from one page to another.
This should be a very basic functionality, so I am reluctant to believe that
there's no way to simply test it in a server-side script.
View Replies
View Related
I've been working on this wysiwyg web editor. The editor lets you upload images. Only .jpg, .gif and .png files are allowed. Now I should be able to detect if the uploaded .jpg image is in RGB or CMYK mode. Only RGB images should be allowed. Can this be done with ASP?
View Replies
View Related
I need an asp page that will detect the clients java version, and then email the results automatically.
View Replies
View Related
I'm trying to write an ASP interface that mimiks a .Net datagrid control.
I'm having a problem when I'm in the middle of an Edit, Update, or a New
Record.
If the user hits the wrong button, the program grabs the values in
the textboxes using the request.form() and then redisplays them in the
textboxes when the records table gets written back out to the page. This
works fine as long as the form is submitted.
If it's just a page refresh
(F5), the program doesn't get the latest changes to the textboxes and
displays either a blank or whatever was in there the last time the form was
submitted. Anybody got any ideas?
View Replies
View Related
Im writting an asp app that tracks the users scores and info (its a
training app) to a access database, ive disabled the ie toolbars and
everthing so the user must use my nav buttons so i can track what pages
they have been to.
My problem is if the user closes IE with the close button [X], is there a
way i can redirect them to my close database and save results page, i cant
use the unload event as this is trggered every time the use goes to the
next page.
View Replies
View Related
the way a field is currently displayed:
Currently the ASP code inside my page is simply:
<%=rs.Fields("Notes")%>
This is fine for displaying the text, but the text contains links which are
currently just being displayed as text. I'd like them to display as
hyperlinks that will open in new windows when clicked upon. so basically I
need some ASP code to detect text starting with http:// or www.etc and
automatically make them into hyperlinks.
View Replies
View Related