Disabling A Text Box/list Box After A Selectio Has Been Made.
I have a .asp page that has a text box and a list box. The user enters criteria into ONE of the boxes.
What i would like is that when the user makes a selection from the list box (sql populated) the text box is disabled, and when a user enters a character into the text box, the list box is disabled (not including spaces)
This is a bit cosmetic, but what is the best way of doing this? Some client side code presumably, Javascript? Code:
i have a form that has a multiple fields,when a user chooses an option from option seleect then it should disable some part of the form and i have no idea how to do that.
I am using text fields to display data from a table in access in an ASP file, i am using text fields because if i used anything else, like labels the info was not updated to the table correctly.
Does anyone know how to input of edits to a text field so that the user can view the data in it but cannot remove or change it?
I am building an add user website.I have several asp scripts in this website such as, query for username,create user, etc. Ideally I would like to have users logon to the website,and have these scripts execute with their individual security context Can anyone point me in the right direction, mabe some samples somewhere
I want to write a asp script, basically, that has drop down box in the form, if user select Yes, on the same page, a hidden textarea will show up, if user select No, then nothing happen.
so far, my code is unsuccessful, in addition, I also got syntax error on the response.write line anyone has idea. Code:
is there an sql command that allows me to select all rows where a specific field isn't called by other rows? To be more specific: I have this table for my categories. I want to be able to choose all the categories that don't have subcategories. The fields are
CaName CaId CaParent
So a category has a parent, so caParent = the CaId of it's parent. So is there a way to call all the categories that don't have children categories in my sql?
am using pws on win 98 and when i try to excute any asp page i got the following error
Response object error 'ASP 0156 : 80004005' The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
I have span and Textarea fields. How can I disable and gray out those dynamically using DHTML. when I called disabled = true it makes it readonly and does not gry out.
I have a login form. when user logs in, user is transferring randomly an Exam page. these pages're(ExamA.asp and ExamB.asp)
Question is : if user transferred to ExamA.asp how can i disable to enter ExamB.asp ? (there is no link in ExamA.asp to ExamB.asp. only changing url in the address bar.)
here is my login from code :
strSQL="Select Exam from Exam" set Exam=conn.execute(strSQL) Stat=cint(Exam("Exam"))
if Stat=1 then
sqlUp="update Exam set Exam=2" conn.execute(sqlUp) response.redirect ("ExamB.asp")
elseif Stat=2 then
sqlUp1="update Exam set Exam=1" conn.execute(sqlUp1) response.redirect ("ExamA.asp") end if
I have pulled some date from a table in access and displayed it on a form in a table. If there was no data in the Table, Hence the Html table displaying it was empty is there a way of disabling the submit button that submits that data to avoid a conflict?
I was thinking about disabling session state on some of my pages by doing this: <% @ EnableSessionState = False %>
My question is if I disable the session state will the page still reset the session timeout (eg. back to 20min. default) when that page is loaded? I need it to reset the session timeout.
I have creating a simple ASP guestbook using an Access Database, is there any of disabling HTML code so that visitors cant post HTML in the guestbook entries?
Is there any way to prevent an IE 6 browser from sending up the REFERER HTTP header? (Either as an IIS Server setting, change to asp files, or even a setting in the IE browser).
This is wasting WAN bandwidth in our Intranet application - we have fairly low network bandwidth. The referer is inevitably somewhere else in our own ASP application, and is usually has a really nasty long QString attached ... (and no, really dont want to run stats about how users navigate our app)..
I have a website that (like many) allows users to download large files. Some are up to several hundred MB in size. The problem is that since switching to IIS 6.0, the size of the file is limited by the ASPBufferingLimit, and it's size seems to be limited to only 4294967295 bytes.
That's pretty big but it's not quite big enough and I need to disable it. Some people have recommended setting it to -1 via:
c: cd C:inetpubadminscripts cscript adsutil.vbs set /w3svc/1/aspbufferinglimit -1
but the -1 doesn't really "take"...IIS keeps it at 4294967295.
Setting it to 0 does "take", but then IIS returns nothing (0 bytes).
How do I disable or workaround this security feature in IIS which is not allowing people to download large files?
I have a window that pops up from an asp page... and stays open for 5 seconds then closes... is there a way to not allow the user to close this window manually before the 5 seconds.. ? Code:
In my application I am using Word to hold data out of a MS SQL Server 2000 database. On the clients PC's I am getting a open/save pop up dialog for opening MS- Word. How can I disable this pop- up and load Word without having this dialog? The clients pc are Windows XP/SP2 machines.
How can i list out all the email address into my website from the hotmail caontact list? i am successful log in into the yahoo contact list by using serverxmlhttp and list out all the email address from the page source, but i could not access to hotmail by using the serverxmlhttp. Is any other methos can list out the email address from hotmail contact list?
I have this problem in controlling a the text in a Text Area. How can I do that for example the field size is 200, when it reaches 50 it automatically goes to the next line. Bcoz im having problem when viewing it in my report, it continuesly views in a strieght line and im having problem in printing.
When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.
Any ideas of why this happens and how to get it to work correctly?
I have a form on asp page that pulls info from a DB when the page loads. It them puts the info into text boxes on the page that are editable by the user.
The only problem I have is say in the description text box it should read "HP Laserjet 5Si" , it always cuts the text off where it just says "HP" .. It does this on all the text boxes? I can't seem to figure out why it is doing it. Here is the sample code:
I have this problem in controlling a text in a Text Area. How can I do that, for example the field size is 200, when it reaches 50 it automatically goes to the next line. Because im having problem when viewing text in my report, it continuesly views in a straight line. Can you give me ASP code for that.
I have text - ARI Promise, when I hover over the text I would like a box to appear with the Promise information. It would be several paragraphs that need to be formatted with paragraph and bullets. Is this possible to do? If so how would I go about it?
I have a form with 3 list boxes, in the second list box i have created a select all button to enable users to select all items. but when i click select all button an error message is returned stating that "Object doesn't support this propery or method" here is my code.
<script language=javascript> function selectall(sel) { var len = sel.length; for ( var i=0; i<len; i++) { sel.options[i].selected = true; } } </script>
i have a list box with allot of values in it. How do i submit the item that is selected in the list box? ive tried a few but i cant get it working. Here is what i tried: Document.form.search.value = document.form.list1.value