I created a simple website with one page. This simple page has only one text box (asp:Textbox) and no other controls. When i bring the siteup in VS2005 and press enter with the cursor inside the text box the page refreshes. I am not able to understand why it is posting back? I have set Autopostback to false. Am i missing anything or is it the default behavior?
I have placed a dropdownlist on a form in using both ASP.NET WebMatrix and Visual Studio Web Developer 2005 Beta, set autopostback to true, made sure I have javascript installed and when the form repaints, it does not show the changes (textbox populated).
I thought at first that the scripting for the autopostback was not working, but then, after doing some searches, discovered that after the autopostback, I could see the results of the updated page only after doing a refresh in IE6. How can I fix this? Is there some IE setting that is messed up on my PC? I have my IE settings to check for newer versions of stored pages every visit to the page. Changing it to "Automatic" has no effect.
When an external resouce programmatically post the XML document as content of http post request, and at server-side, I can read the XML data from http request's body. Just like this example provided by Steven Chen:
#Happy Days Are Here Again: Posting XML to the Server http://msdn2.microsoft.com/en-us/library/ms950790.aspx
After I process the data, I need to write a response message to the external resource in xml data format(either succeful messge or failed message). what people usually do, do I just write the xml message to response output stream(let them extract from my page themselves) or post data back to their page (which initially post/submit data to my server program).
I have a form that submits values to an asp page. If their is an error on the asp page that is called and you go back to the first page with the form. The values are not in the form.
How can I set the value back into form without the user having to retype them in? If I use hidden fields on the first asp page and I go back to that page wouldn't the values for the hidden fields be empty as well?
Is there a way to 'force' a submit on a form with out actually allowing the user to press a button ? For example...
step1: A from is filled out by a user, then they click the submit button.
step2: The form is 'post'ed to an ASP page which writes the values to a database. So far No problems. But..
step3: Now I want to 'post' these values again to another page without any user interaction.
My ideas were:
1) I know you can get the form values from Request.Form("myVar"), so I thought of making a 'dummy' form and setting the 'values' of the form variables to these Request.Form("myVar") valiables, but I don't know how to 'submit' them to another page again.
i have a series of .asp pages that i am dividing into model, view, control logic. my view collects a whole bunch of data and posts it to the controller. im wondering if there is a way to somehow "re-post" this same data to my model page.
in short, is .asp capable of taking data posted to a page and re-post that same data to another page?
I run an internet radio station and we use a program which comes with a PHP template but we use ASP and I do not feel like learning a brand new language tonight. Basically the program runs off of a DB on my local machine and it can accept requests and dedication through the website which are submitted with the help of XML.
In the PHP template it looks as if PHP generates an XML code and then sends it to my local machine and the program. The program then processes the request and sends back a completely different XML page with the results.
Kind of like a basic HTML Form. Anyways, what I am having trouble with is generating the XML code with ASP which I accomplished with the help of W3Schools but now when the script comes back from the program all I see is the XML. What I should, rather want to see/do is have the ASP read the XML just like PHP did and then display the end result to the user.
I've got a form which people will fill out on the web with information such as there name, email address etc.
Ive got it to email through to me but any ideas how i can also get it to email a message back to them based on the email address they place in the email field?
i keep getting locked up, ctrl/alt/delete and a window opens up and say's web back agent not responding. is there a way to overcome this problem. it happens no matter what program i'm working with.
i have created 2 .asp pages which, 1. Index page 2. Adding asp function
User will start to add contents in index.asp, then clicked on the "Add" button. the form will post to addContent.asp to add the contents to the database, then prompt the user for Adding contents complete and lastly display the added content to the Index page.
However, when i clicked on the "back" Button at the IE Standard Bar, it display the addContent.asp page and prompt user for the last msg -> "Adding contents Successfully". how can i redirect the page to the previous page before the adding page when the user clicked on the "Back" button at the IE Bar?
I'm trying to make a logout link to where once someone logs out, not only will they be sent to another page, but they will not be able to go back into their account by pressing the back button, but by logging back in.
I always heard people saying IIS ASP front end, and MS-SQL back end. ASP is for server side programming and dynamic content generation, how could it is called front end? Because I thought it is executed in the server, which is back end? I think I am confused with the term front end and back end here.
I'm creating a logout page(logout.asp), in which I'm using Session.abandon. Once the user logs out, I don't want the user to be able to access the previously visited pages using the Back button.
I have a form that contains many fields for the user to enter. After entering the data the user can click a link to open a new window, the new window contains six columns (pull down menu) and 30 rows to allow user choose their options. Code:
I am devloping a site with a log in function and it works fine, but what I want to make sure that when the user logs out, he/she can not use the back butten and then automatically enter the protected site again, and this is where I am at the moment.
I have tried several no-cache solutions, but they don't work as intended. Users should still be able to go back and forth between pages within the restricted area, and this does not work with no-cache, at least I am not able to make it work.
How do I make sure that using the back button will produce either a expired warning page, or redirect the user to the log in page?
How would this code look? and what page should the code be in?
Is it possible to create back end application (in any language) i.e. continueously tracks when user access particular URL (for example url contains one form and user is filling form) and whats he typing in the form.
Ofcourse, application would be installed on user machine.Please keep in mind that we don't have any control on website like its hosted by somewhere.
when the user logout they can get access the pages by click the icon back at the explorer.how i can avoid it? anyone know what method i should do.when i use session i'll use session.abandon.n what should i do when i not use session.
I am trying to implement a javascript back button on my page. I had everything working on my test server, however, whenever I migrated over to the secure server, it throws an error saying that the page cannot be displayed. I am using javascript.back
I have searched these forums, and couldnt find anything to help me, so I figured I would post to see if anyone may know of a solution.
After updating a record, I want to go back to the results page from a search. Anyone know how to redirect after you update a record to go back a page to see the results again. A simple click of the back button would do the trick, but that can't be done after you click the update.
I'm trying to prevent a user to go back once on a particular page...i mean once the user reaches a particular page and he/she tries to click on the back button of the browser, the page does not go back. Is that possible please?
I've created a asp form that the user submits, the information is wriiten to a database and the user is redirected to a thankyou page
The problem is, if the user presses their browsers back button the form the just submitted is still filled and allows them to resubmit the form.
How can I clear the form session once the user clicks the submit button? I've read about this before, but can't seem to find the darn webpage that explains this.
Basically I have something that needs to be installed in the htdocs in order for me to use it - however i need to be able to access something thats in the private dir on the same dir.
Dirs go like /whateverftp/ /whateverftp/private/ /whateverftp/htdocs/
obv Const DB_FOLDER_PATH = "/whateverftp/private/" wouldn't work, what would I put in there in order to gain access to the private dir?
I have a ASP site. Very basic, few pages, 2 includes. There is no user input from the site, no fields they can insert SQL statements.
I also have a login where the Admin can add/edit/remove news items, which are stored in a DB. What are the security issues linked with these?
My login isn't querying the database, but should I use the sha() function to encrypt the pass? Although it's just 1 user adding to the system, should I "clean" up the input(add news/edit news) before it's stored in the Access DB?
Should I restrict IPs solely to those within the building they use?