Simple.
Just edit your SELECT statement in your GridView and add a WHERE clause.
Example:
"SELECT ID, First_Name FROM Employees WHERE ID = 19"
This SQL statement only gives you one record based on the ID inputted in the WHERE clause.
Here is a useful resource...
You can do this manually using an UPDATE statement where you take the ID of a tip from the querystring and update a field in the tip's record by 1 each time the tip is clicked. Just like a counter. Then you SELECT TOP 5 and ORDER BY descending to view the top 5.
Simple.
Just edit your SELECT statement in your GridView and add a WHERE clause.
Example:
"SELECT ID, First_Name FROM Employees WHERE ID = 19"
This SQL statement only gives you one record based on the ID inputted in the WHERE clause.
Here is a useful resource...
bclt,
Thanks a lot for that piece of code, this one works too, and forces the users to re-enter the e-mail instead of redirecting them to the next page. I really appriciate your help! now I know how it works...
Although I'd still like to know why Dan's piece of code didn't force the user to...
Dan,
Thanks a lot for the quick response, it was very helpful. I had to modify it to make it work:
var myEmail1 = document.frmUser.email.value;
checkEmail(myEmail1);
function checkEmail(address) {
if (address.lastIndexOf('@ut.edu') != address.length - '@ut.edu'.length)...
Hi,
This is my first time using Java code and I'd really appriciate it if someone helped me with this little problem. I have a registration form that has a Java script at the top to validate fields, I did the code for validating blanks and a verify password. There is one piece of code that I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.