I'm just starting out trying to learn a little bit of ASP web development and was attmempting to adapt the default website example Microsoft give you with Visual Web Developer Express 2010 (it is called "My ASP.NET Application")
In short, I've been trying to add a new field to the user registration form (a 'Date of Birth' field), just so I could try to learn how it all comes together and see if I can get the fields value added to the database the same way the username, password
and email are stored.
I added a new field to the webpage (Date of Birth) underneath the Username field, created a field for this entry in one of the tables, but that is where I've become stuck.
I wanted to look at what code the "Create User" button executes when clicked so I could try to follow through what bits I need to edit, but I can't even seem to find what this button does or what it calls.
I appreciate that this might not be for beginners, but I was hoping I might be able to start understanding bits of it by duplicating some of the forms myself and trying to get the "Create User" button to add this extra data to the database when submitted.
I'd really appreciate it if some kind sole would be able to help me out with this?
Also, how do I know which stored procedures are going to need to be edited? (is that found by introducing the break points as the code is processed?)
Do you have a button to submit the information your entered to database? Double- click that button, you will see the code there. You could set breakpoint in that xxxx.aspx.cs page. You could also find which stored procedures works here.
Thanks.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
dale_harry
Member
23 Points
18 Posts
Beginner help - attempting to adapt Microsoft's default ASP website
Feb 17, 2012 02:00 PM|LINK
Hello all,
Beginner advice if possible?
I'm just starting out trying to learn a little bit of ASP web development and was attmempting to adapt the default website example Microsoft give you with Visual Web Developer Express 2010 (it is called "My ASP.NET Application")
In short, I've been trying to add a new field to the user registration form (a 'Date of Birth' field), just so I could try to learn how it all comes together and see if I can get the fields value added to the database the same way the username, password and email are stored.
I added a new field to the webpage (Date of Birth) underneath the Username field, created a field for this entry in one of the tables, but that is where I've become stuck.
I wanted to look at what code the "Create User" button executes when clicked so I could try to follow through what bits I need to edit, but I can't even seem to find what this button does or what it calls.
I appreciate that this might not be for beginners, but I was hoping I might be able to start understanding bits of it by duplicating some of the forms myself and trying to get the "Create User" button to add this extra data to the database when submitted.
I'd really appreciate it if some kind sole would be able to help me out with this?
Kind regards.
kushpaw
Member
512 Points
123 Posts
Re: Beginner help - attempting to adapt Microsoft's default ASP website
Feb 17, 2012 02:19 PM|LINK
Did you also update the stored procedure? You can also create a break point to step thru the code to understand it also.
kushpaw
Member
512 Points
123 Posts
Re: Beginner help - attempting to adapt Microsoft's default ASP website
Feb 17, 2012 02:24 PM|LINK
forgot to mention that, you need to customize the membershipprovider in order to add more fields and get it working.
dale_harry
Member
23 Points
18 Posts
Re: Beginner help - attempting to adapt Microsoft's default ASP website
Feb 17, 2012 02:36 PM|LINK
Thank you Kushpaw, appreciate the reply.
Sorry to be so ignorant, but I can't seem to find the "MembershipProvider", is this a stored procedure?
Also, how do I know which stored procedures are going to need to be edited? (is that found by introducing the break points as the code is processed?)
Thanks again,
Chen Yu - MS...
All-Star
21569 Points
2493 Posts
Microsoft
Re: Beginner help - attempting to adapt Microsoft's default ASP website
Feb 23, 2012 08:41 AM|LINK
Hi,
MembershipProvider is not a stored procedure, it's property of Membership.
More information about it:http://msdn.microsoft.com/en-us/library/system.web.security.membership.provider.aspx
Do you have a button to submit the information your entered to database? Double- click that button, you will see the code there. You could set breakpoint in that xxxx.aspx.cs page. You could also find which stored procedures works here.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store
dale_harry
Member
23 Points
18 Posts
Re: Beginner help - attempting to adapt Microsoft's default ASP website
Feb 23, 2012 02:57 PM|LINK
Thank you Chen Yu and others, very helpful.
Chen Yu - MS...
All-Star
21569 Points
2493 Posts
Microsoft
Re: Beginner help - attempting to adapt Microsoft's default ASP website
Feb 24, 2012 12:32 AM|LINK
Hi dale_harry,
Glad to help you. Please mark the replies as answers if they help.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store