how to print the content of a multiline textbox without taking the content to some other "printer friendly" page. I just wanna send whatevers in the textbox directly to the printer.
I created form for web page and connected that page to MS SQL database. I don't know how to put database data to according cells. For instance, to get data for Classroom, Date, ets. Code:
I've got an application that has users select from a dropdownlist. I want to run a query based on their selection to populate a textbox.
I'm not having any luck sending the results of the query to the textbox. I can bind the result to a datagrid or even another dropdownlist but not to a textbox.
So I thought that the code up in the header doesn't "see" the textbox, because as I dimly understand it, the textbox is client-side and the script is server-side. So then I thought I should put the same line down in the html where the form is defined (enclosed in <% tags). But that triggers an error because the code down there doesn't seem to know what response.form is anymore! I tried using a variable as a go-between, but it didn't change the results.
So how in the world do I get my incoming parameter (whether form or query string) to go and live in a textbox in the target page? I need it there (don't I?) so that I can later pass it along to page three (among other reasons).
In short, I can get strings passed from page 1 to page 2, but then page 2 doesn't seem able to put them into controls or pass them along to page 3.
I have scoured google and forums and seen some responses that involve about 30 lines of code (which I don't understand). Surely it can't be that complicated to pass a string from page 1 to page 2 and then have it available to pass along to page 3.
how do i get data from a user on one page and display the result on the other page actually i have written a prgoram that displays a set of checkboxes and based on the checkboxes selected the related data is displayed .but the problem is the data is displayed on the same page below the list of check boxes. Code:
Can i get any asp sample codes to retreive photo's from access database For instances:To get codes on your pages Response.write...... similiar for images.
I have a problem with retreiving non repeatable values from database.(this is a shopping cart application)I wrote the query as below,but it didn't work
sql="SET ROWCOUNT 10 select distinct(product_name),pdate from addcart order by pdate desc".
Actually iwant to see recently viewed produts name (max 10) for this iam retrieving values from addcart table. By executing above query iam getting 10 products name but they are repeatable.
I have to develop an online quiz on my website. the site is developed in ASP. i have a access database of the questions, the multiple ans.s and the correct ans. every quest. has an unique id.
i want a way by which any 10 'unique' quests. will be selected from the database everytime an user takes the test.
I have a form that users use to register with the site. On this form there are checkboxes all with the same name but different values. I am creating another page that will allow users to login and edit their information.
Since all the data from the checkboxes are stored on the database under the same field name and separated by commas; how do I dynamically create a set of the checked checkboxes that the user originally entered along with the other checkboxes the user did not click?
I have a DB table, which contains the name of a image file stored in a folder. What i need to do is somehow retreive this image and display it in an asp page?
I created a web page from Excel2000, using "Save as web page..."...Publish function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.
How can get the data on the excel file using ASP from server side? For example, the value of Cell(1,2), Cell(2,3)....
I like to know how to write this specifc function on ASP where the user eg: display a set of records on the webpage. Example the data are ID, Name and address.
Lets say i display the data on the webpage and i set the Name as the <a href>. So when i click on the name, it will move to another page with the id of the specific name. Code:
I have a form.htm page where the user enters an ID to retrieve addresses. Then PAGE1.ASP displays the addresses. From here the user selects an address and submits. Then PAGE3.ASP brings back further information. My question is how do I use one field from the address information on PAGE2.ASP to display on PAGE3.ASP? I know how to do it with textboxs and such but cant get RS data to hope page to page. I get no errors or anthing.
On PAGE2.ASP I have : <input type="hidden" name="CLIENTHIDDEN" value="<%=RS1("CICL_LNG_NM") %>"></td>
On PAGE3.ASP I have: clientname = request.form("CLIENTHIDDEN")
and to display: <td class=rt width="110" height="1">Business Name:</td><td width="849" class=rt height="1"><% =clientname%></td>
I am in the process of developing an application and would like to hide the query strings in the URLs. I want to POST data to a page then validate the data. If there is an error I have to send data back via a long query string. Is there anyway to POST data between pages programmatically?
I have an asp page, which displays graphical images.I am using Flipper graph in my application.
There is a link in the asp page "Click to view Image file",On clicking on this link,The graphical image need to be stored(Preferably in the server machine) and has to be opened in a new browser window.
To explain in detail. On clicking of that link"Click to view Image file" a function is called which does the following
1)Save the image file(.gif file) on the server machine Graph.ImagetoGif("Location to be saved",100,200); 2) Opens the image on a new browser window.
window.open('from location from where the image is to be retreived',100,some more properties) So i need the image file to be saved in the server and retreived from the server.
I would like the value of the textfield from text1 from Select_License.asp to be transfered to swname from License_add.asp when i click on the Next button from Select_License.asp
I'd like to display XML data in a table in an ASP page. Seems like XSL and XML don't like that because ASP commands within the document cause the page to not be "well-formed"...
anybody know how to do what I want to do? Point me to a good online tutorial...i'll be looking too in the meantime.
OK this query if probably fairly elementary, and forgive my novice understanding of the terminology, I have dealt a little with php but .asp is relatively new to me.
I am able to store variables posted from a form using something along the lines of
strStartDay = Request.Form("StartDay")
however this only works for the .asp page that immediately results from the form. how do I then pass these same values(entered from the form) into an asp page that follows (link from the first asp page).
In my ignorance I have placed the same variable statements in my second asp page but no values are being returned (which of course they wouldnt).
i have a server that recieves data often from a third party data provider often. I would like to PUSH this data to the client webpage, WITHOUT having to force the user to hit refresh or without having to use client side polling and autorefresh. Once recieved on the client, i can use something like DHTML to add it to a table.
how to go about this or what is the best technology to use for doing this? Any sample applications out there doing this today?
I have a registration page which will be receiving user input. These data will NOT be insert into DB within this page. However, all the data (first name,last name, address...) will be pass to second page. And the insertion to DB will be execute in second page.What will be a better way to handle the passing of data from page 1 to page 2?Used querysting in the hyperlink? Err...abit tedious rite? I mean the url will like so long.
I run a website that reads our own databases and makes the data available to our users. However, recently someone has sent me a link to a php page that contains data they want me to display on our site. The php creates a csv formatted text string.
Example : I type in www.somewebsite.php and the page returns game1,gamedate,gametime,hometeam,visitor,,,, with real values of course being in these values. the ,,, are null fields that have no value as they expect our website to fill in this data for them from our users. how do I read this data with asp into a recordset, or a database?
I am using a SQl query to get information by company departments for a Dept Mgr. How can I display each dept on a seperate page. ie page 1 is dept 1, link to page 2 ect
I am developing a page that when it loads up, it will display certain information from an SQL statement using preset values. However when the user is using the page they can then use drop down menus, to choose different year, suppliers etc, the page then needs to reload showing this new information.
I think it is possible to do this using the response.redirect, and direct it back to itself, with all the new variables. However some information will stay the same and I just wondered if it was possible to only reload the information that was required to save on server time running sql statements taht need not run.
I've created a form that posts data to a script and the script checks the values. If the values are invalid, I want to be able to "post" the data back to the original page for them to be picked up. Is this possible?
I can't use JavaScript for client-side validation as the data to be compared against is in a database. I don't want to use session variables as they are server intensive and can expire. And I can't send the variables through the URL as some of the fields are textareas and could hold long values...
I am making an asp page that kind of gives a summary of a table I have on my SQL server. I have one field on the page of:
{rs_analyst_summary.TICKET_NUM}
Is there a way i can make another recordset that would use that field on the same page?
Basically what I have setup is a listing of all the tickets for one person. I need to have a score for each ticket as well. I have to start off on my first page by selecting my analyst. I want the page it links to have all of the analysts tickets and their score on each.
In my access database there are thousands of records are there,i want to retrieve them and display only 15 records at a time. how can it possible? also by clicking next page next 15 records will display.
I have a problem to keep the input value from user still keep. The condition when User input , let me say" Employee Code","Employee Name","Level", then the user input all the 3 field, but when the user submit the employee code not unique/already had by another record,then the problem is after that Employee Name and level input value empty again. Then How to keep the input value....with that condition.....i have no idea....
1. User fills in form and hits submit 2. Some processing is done with the posted data using ASP 3. The posted form variables now need to be submitted to another script which only receives POSTed data.
How do I send the posted data to another script? I can't run step 2 on the next script as its validation script and I'm going across two servers.
I have an asp page that collects data from a database and then displays it in a table on the page. I also want to be able to put this information into excel. I know how to get the page to load up in excel and then display the data using the following command -:
response.contentType = "application/vnd.ms-excel"
however I want it so that there is an Extra button on the page that the user can press to transfer the data accross. Does anyone know how to do this?