Is there a way to set a dropdown menu to display dynamic contents according to user's choice?
For example, I have a drop down menu with values 1, 2 and 3. If a user chooses 1, it should display only 1 question and if the user chooses 2, it should display 2 questions.
I am currently working on ASP. Users will input their contents into a textarea. The problem is that when they input and I retrieve them from the database, they will use the textarea space that was allocated to them and display exactly it is. For example the text area given is 500px and i only give the display part of 250px. Despite that, it will fill up and scrollbars will appear on my bottom of the webpage and have to scroll to the right. how i can display all text with the break lines in between yet still confined to the space of 250px.
I'm trying to compare fields in two recordsets. I'm having fun with apparently empty fields. In order to avoid displaying meaningless messages, I need to know what is in these fields - e.g. is it a space, a null, an empty string, or what?
I'm not much of a programmer - how do you display the contents of the field using asp, for example, to return the ascii character code? Or is there a simple way to check for non-printing character codes?
If I want to display lets say some stock quotes or news from different websites onto my website, is it possible in ASP?I do not want to use RSS or webparts in this case.
I have worked in PHP / MySQL. But never worked in ASP/MSSQL. At the moment, i ma stuck with a problem. Hope someone here can figure it out.I have a list of countries in a Page. When the user MOUSE Over any Country, through Javascript, a small layer <DIV> appear that shows some data about that country. Up till now that XML File is filed MANUALLY.
Now that Data is changing frequently. What we want is that to do the same thing described above through database. Like when the user mouse over any country, that will load XML and connect the Database, extract info and then show in the same DIV layer. Or alternatively, there might be some sript, that will RUN AUTOMATICALLY daily or weekly and update all the countries data XML files. please guide me how to achieve this in ASP + MSSQL + XML + Javascriptor any combination of these.
I would like to read the dynamic contents of an asp page and set these in a variable. In php I can do it with the help of include, but include is not exactly the same in asp. Any clue?
1) I build a Html Table dynamically (Header Row, and then 2 rows with data All 2 rows have 2 cells: cell(0) contains a delete button (ASP Button), cell(1) contains a HTML Text box
2) On Form Load and get some data from a dataset and then from it's contents build the page
At this point the page is rendered and 2 rows are displayed. There is an Add button that a user can click to add another row to the table. This works fine and the row is added.
Now if the user clicks the delete button in row 2 the form is posted back, I rebuild the page, and then in the click event for the delete button remove the row from the table and the dataset. All appears to be fine at this point.
Now if the user clicks the add button again another row is added, but this time row 2's textbox has the wrong value. It appears to be related to the view state. I think the view state somehow is not getting cleared when the row is removed.
This thread is not so much a big problem, but more to receive comments on my approach. You may have some other tips or advices of where to go or where absolutely not to go with my attempts. Code:
I code that creates a calendar for each month and then it displays events from that month that are stored in a db. I need to loop through my recordset and display all the events, but I can't quite figure out how to do it. I am thinking I need to do an array. But I am not really sure.... any ideas. Here is where you can view the calendar. Code:
I have a select element in a form on a page with some options. When i submit thet form and the target asp page is executed, i want to find retrieve all the values in that select element on the page...?
thru request.form("sel") i am able to retrieve only the vaue selected by the user.
I am wanting to do this but am not able to do it. I have two fields: first name and last name and then submit button. When i hit submit button ,according to the name entered in the first field ,some results are displayed from database. Now when i hit submit ,the contents of my fields are cleared and i dont want that...i want the name to be still displayed in the textboxes... How do i do this? I dont want to basically clear the form contents on submit.
I want to read a classic HTML Form using the ASP Request object on the server. This is a common approach. But how can I read all the contents of a listbox (the <select> tag)
Does anyone know of any issues interacting with asp pages from within Flash when you use Control>TestMovie ? i.e. When using a send and load, Flash seems to want to open my asp file (and return the contents in Flash) rather than run it and return a name/value pair as I'm expecting.
I have successfully been able to load text from an SQL-DB into a <textarea>.Now I need to save the edited text back to the DB But I can't seem to extract the value from the <textarea> into a vbscript-variable.
When the user clicks the submit button under the textarea I need the text to be saved into a variable, how?
I'm trying to figure out if there is an easy way to combine the contents of two arrays into one array. Order does not matter, I just want them all together. I'm sort of new to working with arrays, so I don't know if there is a really basic way to do this.
I am creating a website which has a form for registration. I am not using any database or server side coding. The form details should be sent through an email to me. I tried the action = "emailto:me@myaddress.com" but it only fires my outlook when the submit button is clicked.if it could be done the way I want?
I'm trying to access and iterate through POST variables. I'm thinking of something similar to PHP, where on a submit it creates a POST object, which is an associative array of all the variables. Is ASP the same way? Is there any way to see what is in the array and have access to it's contents without knowing the contents beforehand?
The reason I ask is because I have about 100 check boxes, and the user only checks a number of them - each check box is named differently. I want to, on the post page, to find out which ones were checked, short of putting an if else or select to check all 100 of them. Is there an easier way? I tried printing out the post: Response.Write(Request.Form()), and all that gave me was the querystring .
I am developing a website and in particular, a shopping cart for the company I work for and I have everything working fine. This website is written in ASP. When you add a product to the database, it adds it along with a UserID based on a Session variable.
Everything is working fine regarding the user functionality of updating particular product quantity and options. However I am having trouble finding any information on how to send the contents of that recordset via email, when the user decides he is ready to send it. I have no trouble sending forms and such via CDOSYS and ASP but how can I send the contents of an entire recordset?
I want to display two times which are entered in a form right beside each other. I dont want to use a <td> as this takes up too much space, so i atte,pted to do something like this, but it isn't working:
I have an ASP website that is reliant on user generated content. How do I stop SQL injection attacks without the need to replace words like , Join, Select, Delete etc.
I need to do the following in the asp project. The form contains the file upload component and textarea objects. After the user uploads the word file (using file upload), the entire contents of the word file should be copied to the textarea and displayed.
for each item in Session.Contents if NOT( Instr( item, "customer_" ) = 1 OR Instr( item, "user_" ) = 1 ) Then Session.Contents( item ) = "" Session.Contents.Remove( item ) end if next 'item
response.redirect( "menu.asp" )
the code essentially - is supposed to - go through the session variables and remove every one that doesn't being with "user_" or "customer_". So when i try this out, it goes through and removes some, but not all of the session variables in question.
run the script 3 more times and then they are all gone. So i inserted a bunch of response.write statements and found that not ALL of the session variables were even being tested. Can anyone offer explanations as to why?
I am having 14 textboxes on the form and One data grid control and one Button That button allows to open new web page (in new window) where in I can select some products from the list.
The products selected in the list are added in the Grid of my original form. I use response.redirect by passing parameters for that purpose. but that wipes out the contents of the textboxes. how can i retain them.
This ASP page is a page which has FAQ. Some of the FAQ have answers with line breaks.
Questions and answers are stored in the database
When I output the answer, it displays like one long line. Hence I have written a small function to render this answer with line breaks where ever there are line breaks in this db field.
I have NT4 and I installed recently PWS. Otherwise it works okay, but when I try to use Session.contents.RemoveAll on an ASP-page the following message appears on my screen: Object does not support,I get the message in Finnish,what the problem.
I have an asp script which updates upto 300000 records each time it is run.I would like to have a textbox which says records progressed : then in increments of 100 or 1000 whilst the script is running. Is this possible to do with a textbox? I've tried using the response.flush with a variable which kinda works but it displays as follows;
1000 2000 3000 4000
and keeps scrolling. If its not possible to do in a textbox then is there a way to deleting a line and overwrite it?