Wayne Barron
asked on
Adding Progress to Form (Code supplied that I am going to be using)
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.
I tried it and it will not upload the file.
Any idea's on this would be GREAT!!!
Thanks
Carrzkiss
The code above for the Progress, came from here
http://forums.asp.net/t/1107392.aspx/1
Post @ May 08, 2007 01:50 AM
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>
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>
The code above for the Progress, came from here
http://forums.asp.net/t/1107392.aspx/1
Post @ May 08, 2007 01:50 AM
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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>
ASKER
Unfortunantly, it did not work.
Thanks for the try...
Carrzkiss
Thanks for the try...
Carrzkiss
>it did not work.
It always helps to be more descriptive than that.
It always helps to be more descriptive than that.
ASKER
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.
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.
ASKER
I am most likely going to end up using this, once I get the time to modify and convert it over to VB.
ASKER
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.