Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Creating Validation in ASP.net
February 24, 2012
Im creating a web page, im new to programming, i have created the pages,
now in the design part i have two textboxes:
1. enter user name
2. enter passowrd
i have to navigate to a different page when the user name and password matches with the datas that exists in a table that i have already created.
i tried but the page still navigates when when i just randomly enter some user name and password.
But this is not working provide me with an idea.
Posted Date: February 28, 2012 Points: 20
Check below sites
Thanks And Regards.
Posted Date: March 25, 2012 Points: 20
There are two types of validations you can use in your application:
1. Client Side validations
2. Server Side validations
The client side validations are that validation s where the control validates at the client side before sending the data to the server.
Server side validations are those where the validations re done at the server side. It means the validation doesnÃ¢â¬â¢t perform at the client side. It wonÃ¢â¬â¢t check the data at the client side. Whenever any post back happens, the data goes to the server and there the validations gets performed and if fails then the page again reload to the client. This is good when the client sides validations are disabled by your browser then the server side validations are beneficial.
Mostly we use the Client side validations.
As per your issue, you want to check for the user name and password and if it is valid then redirect to the next page but you didnÃ¢â¬â¢t write that what kind of validation you need here? Are you checking for the mandatory fields? If the user has not written the user name and password, should it go to the server? Should it be redirect still?
OR in the button click event you wan to check the user name and password from the database and if it is not correct then be at the login page itself? If this is the scenario then probably you need to check and return the Boolean true or false from your database and based on it, you can show the message that "user name/password is invalid". And be at this page itself.
So if you can provide the code snippet which you are using for the validation, then we can help you in better way,
Hope it will help to you.
(Whats App)+91 8123489140
(cell No.) +60 143651476
To post reply
Related Questions Related Questions
Creating modal poup using javasccript
validation on phone no
creating Custom row in Gridview
textbox validation in windows applcation..
multiple button and validation control
What are the Concepts required in creating a Login Form
ASP.NET web application - Serverside validation of form field's data
Creating Forum System in asp.net 2.0
T-SQL - Creating a Local User On Windows OS
Latest Forum Questions From The Same Category
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
How to read Unicode form PDF File and Save into DataBase ?
How to identify the color format of eps/tiff using c#?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend