[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Adding Progress to Form (Code supplied that I am going to be using)

Posted on 2011-05-08
7
Medium Priority
?
214 Views
Last Modified: 2012-05-11
Hello All
I need some assistance on the bottom codes.
The upload works great!
I am adding a Progress to it, and cannot get the 2nd code below to work.

<HTML>
	<HEAD>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server" enctype="multipart/form-data">

				<asp:label id="lblFile" runat="server" Font-Bold="True">Picture:</asp:label>
<%dim getID, getArtID
getID = Request.QueryString("id")
getArtID = Request.QueryString("artid")
%>
				<input id="filMyFile" type="file" runat="server">
                <input type="hidden" name="id" value="<%=getID%>" />
                <input type="hidden" name="ArtID" value="<%=getArtID%>" />
		  <asp:button id="cmdSend" runat="server" Text="Send"/>
				<br>
				<asp:Label id="lblInfo" runat="server" Font-Bold="True" Visible="false"></asp:Label>
				<table>
						<tr>
							<td>
<asp:Label id="lblText1" runat="server" Font-Bold="True" Visible="false">This was stored as file</asp:Label>

							</td>
						</tr>
				</TABLE>
		</FORM>
	</body>
</HTML>

Open in new window

Need to add this code to the above Form.
I tried it and it will not upload the file.
Any idea's on this would be GREAT!!!
Thanks
Carrzkiss
      <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            
</ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <img src="../graph/indicator_mozilla_blu.gif" /><br />
            uploading.............
        </ProgressTemplate>
        </asp:UpdateProgress>

Open in new window


The code above for the Progress, came from here
http://forums.asp.net/t/1107392.aspx/1
Post @ May 08, 2007 01:50 AM
0
Comment
Question by:Wayne Barron
  • 4
  • 2
7 Comments
 
LVL 18

Accepted Solution

by:
dj_alik earned 2000 total points
ID: 35717625
This example shows how to build a FileUpload page that displays the real-time upload progress.
http://mattberseth2.com/demo/Default.aspx?Name=ASP.NET+File+Upload+with+*Real-Time*+Progress+Bar&Filter=All
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 35717725
I have already looked at it, and is comes with .dll's that I believe have to be installed on the server-side.

Can someone please look at what I have provided and let me know
How to make it work?

I already have a fully functional Upload script that I spent 1/2 the day
Customizing so I do not need that part, just need to get the progress working in what I have.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35719189
Try below code




<HTML>
	<HEAD>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server" enctype="multipart/form-data">

      <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
				<asp:label id="lblFile" runat="server" Font-Bold="True">Picture:</asp:label>
<%dim getID, getArtID
getID = Request.QueryString("id")
getArtID = Request.QueryString("artid")
%>
				<input id="filMyFile" type="file" runat="server">
                <input type="hidden" name="id" value="<%=getID%>" />
                <input type="hidden" name="ArtID" value="<%=getArtID%>" />
		  <asp:button id="cmdSend" runat="server" Text="Send"/>
				<br>
				<asp:Label id="lblInfo" runat="server" Font-Bold="True" Visible="false"></asp:Label>
				<table>
						<tr>
							<td>
<asp:Label id="lblText1" runat="server" Font-Bold="True" Visible="false">This was stored as file</asp:Label>

							</td>
						</tr>
				</TABLE>
</ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <img src="../graph/indicator_mozilla_blu.gif" /><br />
            uploading.............
        </ProgressTemplate>
        </asp:UpdateProgress>
		</FORM>
	</body>
</HTML>

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 31

Author Comment

by:Wayne Barron
ID: 35722288
Unfortunantly, it did not work.
Thanks for the try...

Carrzkiss
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35727209
>it did not work.
It always helps to be more descriptive than that.
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 35727303
I really do not know what to say really.
When I use your modified code, it does not work.
As in: It does not upload, it does nothing.
I click the upload button and it just does nothing.
I check my database, and no new entry
I check my folder, and no new file.

I wish that I could tell you more, like maybe an error, but nothing right now.
0
 
LVL 31

Author Closing Comment

by:Wayne Barron
ID: 35838632
I am most likely going to end up using this, once I get the time to modify and convert it over to VB.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question