I have two tables, one is Parent and other Student. I want to allow the Parent to register on website with there username and password and student number but then have access to Student information. How do i go about it?

How are you controlling the student's access to the information? If you're using student number autentification, you can check if the parent has associated the student number he's trying to access. If so, grant acces, else access denied.

I am just starting, trying to get my head around asp and c#. Can you refer me code. I want to add into registration page

I can write a vb.net app for you, do you want it? if u can convert it

ave acce

If you want to learn about asp.net, I would suggest you also visit Microsoft's official website. http://asp.net

Lots of code examples, tutorials, etc..