As soon as I heard your charisma and crisp mic quality I subbed. A lot of tutorial channels I find are often afraid of their microphone or something, but you sound really good!
Most welcome 😇 very happy to hear this from you buddy. Please do Subscribe and share this knowledge with your friends. That's the biggest help & support you can provide ✌️
@@SimpleSnippets Bro how you signup admin process i cant find where it is? i mean in this video i know how to do user login but when u added entry in database of admin table? and how? cause i have not signup yet for admin its said that invalid login . please help me i have to do this project
For all those who are facing issues in admin login here are some solutions that i found 1. Check table name. 2. Check properly the given textbox and alternative attributes. 3. GetValue is 0. 4. Put a static value in the admin login table. (Right click on the table, click show table data). And lastly it is most important that 5. Please put the numeric value in the password. For example if you put "abc123" it shows invalid but if you put only "123" you get a successful login. I hope it helps those who are facing problems. *( I'm doing my Database in IISexpress server. Which is also valid.)
Why are you retrieving the whole record when all you need it to know if it exists. Check If Exists is sql server. You could just use ExecuteScalar. BTW DataReaders need to be disposed also. need using block.
Before adding the onclick event the code was working fine but after adding the onclick event is showing a compiler error message... Please help i am making this project as my final year project
As soon as I click the .cs file of any UI page the button ie Login and Sign Up seems to be cut in half when the page is loaded, does anyone know how to fix this ?
Thanks bro. welldone. one question however, if (Session["role"].Equals("")) is not working while if (Session["role"].Equals("admin")) is ok. What might be the reason ? I mean when role is empty it is not reading this block while it is reading it if it has admin or user . I appreciate your help.
Most welcome. Well I'm not sure what could be the issue but a work around to that issue would be instead of blank you use your own key like - "blank" or "nullvalue" and then match this. See if that works 👍
@@SimpleSnippets Thanks for your quick response. I tried everything including is null it is giving error despite the try{}catch() block. the rest like (Session["role"].Equals("") or (Session["role"].ToString()=="" it simply skipping it. this is really important to me if you can help.
Very bad!! Not using parameters leaves you wide open to sql injection. Apparently you are storing passwords as plain text. Also very bad. Connections and Commands need to be disposed. They should be in using blocks.
I was having the same issue. I was able to fix it by editing this code SqlCommand cmd = new SqlCommand("select * from member_master_tbl where member_id='"+TextBox1.Text.Trim()+"' AND password='"+TextBox2.Text.Trim()+"';", con); I had forgot to put the .Text.Trim() at the end of the password part. This corrected the issue for me. Also, I had the M in member upper case which I corrected as well.