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
Joma Rajab
NA
110
51.8k
how to make file upload works properly
Aug 2 2016 7:11 AM
I am using file upload with post back trigger but when I attach file first time it is not accept unless attached again in the second time. In addition, without post back trigger it woks but uploading the whole page that why I tried to use trigger because without it the upload button stopped
Please help
protected
void
Upload(
object
sender, EventArgs e)
{
if
(FileUpload1.HasFile && ddlSelect.Text ==
"Document"
)
{
Code
for
Uploading file code
.
.
.
}
else
if
(FileUpload2.HasFile && ddlSelect.Text ==
"Video"
)
{
Code
for
Uploading video file
.
.
.
}
else
// {
// for both
if
(FileUpload1.HasFile && FileUpload2.HasFile && ddlSelect.Text ==
"Both"
)
.
.
.
.
{
}
asp code
for
trigger
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID=
"btnUpload"
/>
</Triggers>
</asp:UpdatePanel>
Reply
Answers (
1
)
How to get Original password from PasswordHash?
How to integrate Facebook Authentication in ASP.NET Webform?