TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Muhammad Nadeem
NA
548
66.6k
How to access file uplod cntrl in any other class
Oct 24 2017 2:29 PM
(ASP.NET C# Language)
Hi guys, I have just one Default.aspx page in web application where I have file upload control (fileUpload1) and 2nd I have class1.cs I want to access fileUpload1 control in my class1.cs. How is it possible. MoreOver, I want this type code in my class1.cs
MailMessage msg = new MailMessage(YourEmail, RecipientEmail, Subj, Message);
msg.Attachments.Add(new Attachment(
fileUpload1.PostedFile.InputStream, fileUpload1.FileName
);
Please help me. Thanks a lot.
Reply
Answers (
1
)
sql exception occurs checked various times but it shows
why reference parameters cannot be optional parameters?