I have three input boxs, userid, username and password, and a submit button.
The user will enter userid in the input box, then I want to invoke the onblur="check()"
event to check the userid entered with a value in the database and if it exist I will
fill the username.
My problem is the whole layout of Ajax, how I'm supposed to implement it, creating a '.js' file that will in the background
call default.aspx to connect to the database. default.aspx will ofcourse use default.aspx.cs
to connect to the database.
Does this help you see what I am trying to do?
I've created these menus in the past but in just a plain HTML page not ASP.NET. When I try to apply the same format to the unorder list the look isn't the same so I was trying to create it using LinkButtons like so:
6. Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
i have one multi line text box and one save button..
When a SAVE button is pressed it will perform a action on the
database either to add data that a user has entered.
When the refresh button is pressed at the top of the page the same
exact data is re-submitted again resulting duplicate transaction in the
database. Is there anyway of stopping this happening? From client-side
script or server side , how can we detect that the "Refresh" button is click?
When you know for sure that the users are bound to click the browser's refresh button to refresh the screen, why not put a refresh button on screen along side the data that they expect to be updated and perform a refresh of just that data?
That was just a suggestion to improve your application. Now to the solution to your problem.
Once the save is completed, just register a client script that would make a fresh request for the page. You can do so by calling window.location.reload() or window.location.url='PageName.aspx';
This would refresh the page and the next time Refresh/F5 is hit only page load is posted not the button click.