User1945137292 posted
Hi,
I have designed a Login Page, and Using easy tabs on that Login page.
i.e. after opening the Login page I have two tabs on login page, 1st one is for Admin Login, and 2nd one is for User login.
on that page I have two div, 1 div contains the data of Admin Login: - User Name, Password, and Login Button.
on LoginButton_Click I retrieve the data from Admin table and validate to grant the access to Admin.
2nd div has the User Login Form: - User Name, Password, and Login Button
On the click of this button i retrieve data from User Table and validate to grant access to User.
For this I have 4 text boxes, and all four text boxes are set as "required" If I am using all these under single form then on click of Admin Login Button or User Login Button my form is not being submitted. because If admin wants to take login he is able
to see only two text boxes another 2 text boxes are hidden. but they are required so form is not being submitted.
I tried using two form tag, but two form tag runat server is not allowed also.
So, please suggest the best possible method to do this.
Thank You.