Is it possible to save all the names/values of a form to another memo textfield before a Insert to the database then when required on another page split that memo textfield into the name and their corresponding values retrieved from the recordset ?
i m designing a online test application. my reqt is on pressing next button my selected value gets stored in the database and next ques ll appear and on pressing prev button it should display me previous question with already selected value.
how can i do this? how can i pass selected value of radio button through query string as my radiobuttons are getting cerated dynamically.so every time its name will be different. Code:
I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this:
To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:
I'm developing an Asp.NET system to take a CSV file uploaded via the web, parse it, and insert the values into an SQL database. My sticking point comes when I try to split() the string returned by readline() on the file.
The following code snippet works for me: tokens = "one,two,three,four".Split(",") for each token in tokens response.write("<td>"+token+"</td>") next
However, if I take the next line in the CSV, read using StreamReader.ReadLine on the PostedFile.InputStream, I receive "Object reference not set to an instance of an object." which I have narrowed down to be my string holding the line. Further investigation reveals that no other string member functions work on my line (.ToCharArray, .ToString, etc).
I suspect that StreamReader.ReadLine is not correctly returning a string, even though Response.Write(line) displays what I would expect .....
I would like to have an option for my end users to do a SAVE AS. Is there a way to do this? I have a excel spreadsheet which is being created by asp and at the end of the page I would like to have an option to do a save as. so they can name the file and put the file anywhere they want.
Working with an asp page which pages through dates. If the user saves one page as a mht file and pages to the next day and saves the second page as a mht file, both files turn out to be the same. It's as if I.E. 6 saves the cached information, however if you open a new window and save the page from that window it saves properly and the cached information is available for the second window so I think I'm on the wrong track.
I have a form in which several elements are expected to be all digits. Some of those elements can be left empty, but if specified they must be all digits. I have this Sub to edit them: ....
I am pulling info from a sql server By default the query pulls back the inforamtion as text.Therefore when I go to calculate some figures its giving me a type mismatch error. Is there a function in can call to convert a text string to an integer string using
rstSearch.Fields("name").Value .To pull back the info in a for loop
Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch
Is it possible to have line feeds/breaks automatically entered when the text wraps to a new line? I am using a <textarea> input on a form and using the <pre> tag when displaying the text to a html page (embedded in a .asp page). The text is being saved to a sql database. Returns seem to be displayed. But the wrapped text just displays as one long line.
I need to save a lot of pages to a .doc MS Word file with one button click on my asp app.... can this be done ?.....I am thinking this .doc file will be saved on the server, so I can then download it to the users PC.
I can have the MS Word templates to fill out on the server , so do i create an asp page to fill out these templates and then save the file..then somehow download it automatically, hence it will end up on the users PC in a shared Dir...is this all possible?
I would like to save a web page to a file. When I do that, sometimes the saved web page does not look like the original web page. For example, when I save www.msn.com, it looks very different the original page. How can I save the web page to look like the original (as if I do "File" - "Save As" and under "Save as Type" select "Web Page, complete (*.htm,*.html)" ? This is how I save the web page: Set fs = CreateObject("Scripting.FileSystemObject") Set filePtr = fs.CreateTextFile("c:abc.htm", True) filePtr.WriteLine (WebBrowser1.Document.body.innerHTML)
whats happening is i do a form post from a form "A", to a form "B" where it does some processing and then does a form.redirect to form "C"..where there is a link to the form "A". I only want that when the user selects form "A" from form "C" then at least i should be able to display his name and email address what he had entered previously. what the best way to save the variables and when i display back in the form how do know whether hte form is coming back or not?
i want to save asp created records to excel sheet by clicking a link. link should be in same asp created page .By clicking link ,the populated asp records to be saved like save as option..At the same time i want to see asp records in html format .By clicking the link.
When users submit a Form with a SQL query, the resultset is retrieved from a MS-Access database table which is then exported to an MS-Excel worksheet. After the records get exported to MS-Excel, I want to give users the option to download the Excel file to their local machine.
In other words, when users click a download link, I want the Save As.. dialog box to pop-up so that users can save the Excel file to their local machine (note that I don't want users to view the Excel worksheet in their browser). This is how I tried it: Code:
I have a PDF link in my flash site and want to force the Save-as dialogue to pop up when the link is clicked.
I've seen how this can be done by calling a php script, but my server only supports ASP. So was wondering if anyone had an ASP solution for doing this.
I would like to place a button on a web page that when clicked performs the same funtion as when you right click a link and choose "save target as..."the files I want people to download are .swf and I don't want to zip them.
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 have a main window which has a form in it. Inside the main window there is a button, which when clicked opens a pop window (showModaldialog window). Inside that pop window I have a checkboxes, which user can check. When he is done selecting them, He clicks on "Done", which is of type button.
My problem is when user clicks on Done, I am not able to retreive the values of the check box group. I could have used request object to retrieve the values, but that is functional only when the event is submit.
The error message I receive is that there is a problem with the field format and the content of the variables. I hope you can correct this problem for me. But, I have another question for Sitepoint's mentors; I need to save the actual date (i mean, the date when the .asp is running) to a database field. I ll have the same problem than before, but even if I solve that, I still dont know where to find the when-.asp-is-running date.
Is there a way to force a file to be saved instead of using the "default action". In my situation, I've got a series of MP3 files that are being used by my chorus as a learning tool for learning the current music quickly. I have instructions on the site telling them to save the files to their hard drives and to play them from there.
However, people are just clicking on the links and their default MP3 players are trying to play the files. Now, I have compressed the files pretty hard because some were griping about the filesizes, so if they are played right off the link, the quality is a bit choppy. If they save it to their hard drive and play it there, it sounds fine.
I have an ASP page where an applicant would keyin his details. Nothing but his resume on line. My problem is that we have a large text wherein the candidate will paste his entire resume for reference. Once he submits it, while viewing if we copy and paste the text to word, the alignment is not there at all.
Could anyone suggest some option to attach the resume and store it in the database and then downloading the resume as it is. Could anyone help me out on this as soon as possible.