Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
'System.Web.Mail.SmtpMail.Private Sub New()' is not accessible in this context because it is 'Private'.
Infonomics
20y
2k
1
Reply
I get the message: 'System.Web.Mail.SmtpMail.Private Sub New()' is not accessible in this context because it is 'Private'. This is my code: Line 2: <%@ Import NameSpace="System.Web.Mail.SmtpMail" %> Line 3: <% Line 4: Dim objSMTP as New System.Web.Mail.SmtpMail() Line 5: Dim ret as object Line 6: objSMTP.Send("
[email protected]
","
[email protected]
", "Demo ASP Mail Header", "Demo ASP Mail Body") How do I make it public? Thanks, Bobby
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
asp.net how to call c# library
Crystal Report & Printing in PDF