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 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.
I have a database on a website, and a table in this db contains two fields,PCode, and Verified. I have to add new records to this in batches, and these batches are generated on a local PC.
Is it possible to paste the contents of a text file into a text area form field, and then run an asp/vbscript routine to update the database.
The text file contents to be pasted would be in the format:
1234, Y 1235, N 1236, Y
I am ok with updating the database,what I would like to know is how to split the text into individual items - is there some kind of read line function.
Can anyone help me format text in a text area using ASP? I am bringing in data from a database and need to format headers for the data. Is there anyway to format this in a text area using ASP?
when I´m typing a text data in to the form and I press Enter to go to a new line and after when the data is submited in the DB I go to PHPMyAdmin and the field looks like this: line1: text line2: text2 etc.
I'm having a complete brain cramp today. I've written a form that displays information based on content in a database. Can someone tell me what's wrong with my code to display the data in a textarea?
I have an from that emails @ the mo But I have to insert e variables into the <boby>.
useing asp this works fine but the formatting is all over the shop I have looked on the net and can't seem to find anything that formats a textarea any ideas????
How to disable a select element via vbscript from another element in the same form. I want to disable a text area element named xptoTextArea if and only if a certain option value is selected.
If this option is selected then disable this text area element.
In HTML , I need textarea box with 4 rows & 5 cols . But if I enter the 4 th row, it shouldnt allow 5 th row. Only 4 rows should be accepted, can anyone tell me hw to creat text box?
I am working on a asp and sql website that I did not make. It runs an asp based content management system, where users can enter news articles. They enter the "body" into a text box/area and can add images separatly. The image will show up to the to left of the article.
This goes into a SQL database, and gets pulled out by asp for the webpage. I want to make it so a user can add in an image into the body of the article ( like in a word document ) and have it show up where they put it. What is the easiest way to do this. Both easy on me and the user.
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:
I have a form which contains a textarea input, when I request the value of this and display the contents in HTML the carriage returns are gone, so I am trying to find a way to re-insert any carrigage returns.
I have tried using a regular expression with the replace() method to search for a carriage return in a javascript string and replace it with a <br> - but no joy
I thought the following would work (code is in Javascript by the way): Code:
Am trying to restrict user from entering non ASCII character in the text area. Say if the user entered non ASCII character then on the form post back it should show them the message like:
I am using the asp sendmail script from brainjar. But I'm using a text area instead of input field for comments. Is there a function that I should run this thru in order to get it to recoginize carriage returns. Currently it won't send anything after the first carriage return.
I have a radio button, a check box and a text box in a web page. From this page, I go to a series of other pages. In one of the following webpages I am providing an option to come back to the first page which has the radio button, check box and the text box.
When doing so, I need to retain the values I originally checked in teh radio button and the text box, and also the text in the text box. I understand that I need to carry it through a session variable, but I dont know how I can do it.
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 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?
since we run BIND as our DNS, I'd like to be able to force it reload changed zone files via an ASP page. I don't need to restart the service itself. There is a specific command that can be sent to it that'll reload the zones without restarting the service, but I don't know how to execute it.
i'd like to be able to create and manage IIS websites from an ASP page. Is there any documentation on this? It must be possible, but I can't find out how.
I'm trying to make a text box for comments. I know how to put one value into a text box like name, but i'm not sure how to pull multi-values. I want to be able to display the time,user and comment in a text box. I don't know how to go about this. The comments are stored in a different table and there can be many comments for one policy.
What i did was i have asp code the displays all the comments and puts it into a table, but i want to put this into a text box not sure how to go about it. Here is the code i'm using. the reason why i need it to be in a text box is so the user can update it, does anybody have any ideas. Code:
I am trying to create a text box in ASP which automatically populates itself with the person's name who is currently viewing the page.I want it to retrieve the name from Active Directory.The text box populates itself when the page is loaded. The Active Directory code for name is 'cn'.So when logged on users name = 'cn' display the name in the textbox.
I'm putting a standard mail page together, that will allow my users to sent templete emails out to people.
The files are stored in textfiles.I have come up with a script to produce the names into a Select list, but know i'm wanting them to be read into a textarea box,to allow me to submit them into from the form into the sendmail.asp page! but the only way i can pass them out, is into a iframe, whichd oesn't seem to allow me to then pass them into the sendmail.asp page.
I have an ASP page to be used as a Softball Roster. The user will enter their roster information and the information will then go into a SQL database. My problem is this... I keep getting this error "String or Binary Data would be truncated". I figured out what this message meant and I have printed my variable to the screen to see what I get.
As an example what I get for my variable PlayerFirstName is Joe, John, Henry, Alex. I only want one name at a time so that I can import them into SQL. How do I parse my line apart so that I can loop through it and pull off only one item at a time and put it into SQL?