|
-
Jun 3rd, 2012, 08:36 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Using a 'Namespace' in ASP.net app
Ultimately I am trying to send email asynchronously, and in by investigation I was routed here http://msdn.microsoft.com/en-us/libr...mtpclient.aspx. Microsoft's sample code mentioned "Namespace Examples.SmptExamples.Async"
I just don't know how to use this code. I tried to put it in a aspx.vb file, but it give me an error saying "Namespace statements can only occur at the file or namespace level." Again not sure what this means.
If all the code goes in a file, what to I call the file? I tried putting it in a module, but I got the same error. I could not find any guidance on how to use the Namespace.
Can anyone tell me how to use this sample code. It appears to be exactly what I was looking for.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|