Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > Visual Web Developer 2008
|
Visual Web Developer 2008 Discuss creating ASP.NET 3.5 sites with Microsoft's Visual Web Developer 2008. If your question is more specific to a piece of code than the Visual tool, see the ASP.NET 3.5 forums instead. If your question is specific to the "Express Edition" be sure to state that in your post.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2009, 12:22 PM
Authorized User
 
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kirangentlebreeze1987
Default email

thank you....then i want to send that particular information to the user in mail should i write the code in the same cs file or should i create a new cs and then write email code...help me if you dont mind...i am very very new to asp.net,c#.
 
Old December 15th, 2009, 01:01 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It all depends on what you want. As pointed out before, the CreateUserWizard does this automatically, without the need to write any code. You haven't really explained in detail what you're trying to do, so it's hard to recommend something.

You may want to take a look at my book Beginning ASP.NET 3.5 in C# and VB (see my signature for a link). It deals with these kind of topics...

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 15th, 2009, 04:49 PM
Registered User
 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I realise I'm probably at the wrong place. I have a question for Rod Stephens Visual Basic 2008 but i Found nothing in this site.
 
Old December 15th, 2009, 08:49 PM
Authorized User
 
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kirangentlebreeze1987
Default email

this is my question....after the user gets registered at the site that particular user information should be sent in mail...i am asking you that should i write my email script in separate cs file or should i write the email script in the same registration.cs
 
Old December 16th, 2009, 05:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And this is my answer: as pointed out before, the CreateUserWizard can do this automatically for you *without the need to write any code at all*.

What is it that made you decide to write this yourself? Why not make use of the built-in features to do this automatically?

If you insist on doing this yourself (can't understand why), I'd handle some event in the code behind of the Sign Up page, then forward the relevant info (user name, password maybe, whatever else you need) to a helper class that formats and sends the message. But again, I don't understand why you would want to go through all this, if all you need to do is set a few properties on a control to make it work.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 16th, 2009, 05:18 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> I have a question for Rod Stephens Visual Basic 2008

Are you trying to contact Rod:

http://p2p.wrox.com/members/rod-stephens.html

Otherwise, you may want to post this in a general .NET forum: http://p2p.wrox.com/visual-basic-13/

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 16th, 2009, 05:27 AM
Authorized User
 
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kirangentlebreeze1987
Default email

i dont want to use built in features right now...still im in learning stage so i want to code manually..help me if possible
 
Old December 16th, 2009, 05:34 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And with what then exactly? Didn't I just answer the question you asked, in case you didn't want to use the built-in features?

If you want help, you have to help us help you. We can't look into your head, so you need to ask clear, concise questions, tell us what you have already done, the code you may have, the problems you run into, the errors you get, what you searched for on Google to get an answer yourself and so on. Otherwise, it's impossible to help you.

Out of curiosity, why don't you want to use the built-in features?

And as a shameless plug: if you actually want to *learn* all this stuff, consider getting a copy of my book Beginning ASP.NET 3.5 in C# and VB. It talks about these kind of scenarios in detail. While I am more than willing to help you out in this forum, I am not looking forward to repeating my entire book over forum posts... ;-)

Cheers,
Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 16th, 2009, 05:40 AM
Authorized User
 
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kirangentlebreeze1987
Default email

if a user is registered at the website that particular user information i.e user name and password is sent automatically to the user's email...how this process gets done????one more thing i have created a .cs file named registration.cs for inserting user records into database now the thing is where should i write the email script to send that information to the user should i need to continue in the same registration.cs file or should i need to create a separate .cs file to write the email code to get the things done
 
Old December 16th, 2009, 05:48 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Stuck in a loop Stuck in a loop Stuck in a loop Stuck in a loop

Aren't you asking the same thing over and over again, without providing the extra info I asked for?

Quote:
If you insist on doing this yourself (can't understand why), I'd handle some event in the code behind of the Sign Up page, then forward the relevant info (user name, password maybe, whatever else you need) to a helper class that formats and sends the message. But again, I don't understand why you would want to go through all this, if all you need to do is set a few properties on a control to make it work.
The process is simple:

1. A users registers
2. You take the UserName, Password and Email properties from the CreateUserWizard
3. You construct an e-mail message
4. You embed the user name and password in the message
5. You address the message
6. You send the message.

As I said before, I'd do 1 and 2 in Code Behind, and the rest in a helper class.

>> Out of curiosity, why don't you want to use the built-in features?

If you don't want to answer my questions, why do you think I'll want to answer yours?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Conformation of email varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 October 8th, 2009 07:35 AM
Edit User Profile - email garydarling BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 September 29th, 2006 06:58 AM
Conformation Screen. rupen Classic ASP Basics 3 July 12th, 2005 11:31 PM
how do i create email alis system in asp kale_tushar Classic ASP Basics 3 March 22nd, 2004 11:33 AM
how to create an email id through php script manu_mcs Pro PHP 0 December 8th, 2003 03:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.