 |
| 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
|
|
|
|

December 15th, 2009, 12:22 PM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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#.
|
|

December 15th, 2009, 01:01 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

December 15th, 2009, 04:49 PM
|
|
Registered User
|
|
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

December 15th, 2009, 08:49 PM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|
|

December 16th, 2009, 05:11 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

December 16th, 2009, 05:27 AM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|
|

December 16th, 2009, 05:34 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

December 16th, 2009, 05:40 AM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|
|

December 16th, 2009, 05:48 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |