Hi Telerik,
I am trying to figure out if I have something wrong with my architecture, or if I am just in need of a quick fix.
I have the following on my page:
and the following server-side code:
HandleUploadedFiles() works perfectly fine, but I am left with my Request's HTTPMethod set to POST and not GET. This means that if the user tries to refresh my Web Application they are prompted with a confirm form resubmission alert.
Previously, I had fixed this with the following:
But new additions to my code makes this a non-acceptable solution. Namely, I have implemented Start Edit / Cancel Edit / Save Changes -- and refreshing the page is analogous to 'Cancel Edit.' As such, refreshing via code isn't a possibility.
Could you show me how to parse an uploaded file while keeping the RadWindow wrapped in an update panel? Whenever I try to do it, Request.Files.Count is 0.
Thanks
I am trying to figure out if I have something wrong with my architecture, or if I am just in need of a quick fix.
I have the following on my page:
<
csw:UploadDashboardRadWindow
ID
=
"UploadDashboardWindow"
Runat
=
"Server"
>
<
ContentTemplate
>
<
div
ID
=
"UploadDashboardDecorationZone"
>
<
fieldset
id
=
"UploadDashboard"
>
<
legend
>Upload Dashboard</
legend
>
<
telerik:RadUpload
ID
=
"UploadDashboardSelector"
Runat
=
"server"
Width
=
"235px"
AllowedFileExtensions
=
".xml"
MaxFileInputsCount
=
"1"
ControlObjectsVisibility
=
"None"
/>
</
fieldset
>
<
div
class
=
"BottomButton"
>
<
telerik:RadButton
ID
=
"SubmitUploadDashboardButton"
Runat
=
"Server"
Text
=
"Upload"
OnClientClicked
=
"CloseUploadDashboard"
/>
</
div
>
</
div
>
</
ContentTemplate
>
</
csw:UploadDashboardRadWindow
>
and the following server-side code:
protected
void
Page_Init(
object
sender, EventArgs e)
{
if
(Request.Files.Count > 0) HandleUploadedFile();
}
HandleUploadedFiles() works perfectly fine, but I am left with my Request's HTTPMethod set to POST and not GET. This means that if the user tries to refresh my Web Application they are prompted with a confirm form resubmission alert.
Previously, I had fixed this with the following:
Page.Response.Redirect(Page.Request.Url.ToString(),
true
);
But new additions to my code makes this a non-acceptable solution. Namely, I have implemented Start Edit / Cancel Edit / Save Changes -- and refreshing the page is analogous to 'Cancel Edit.' As such, refreshing via code isn't a possibility.
Could you show me how to parse an uploaded file while keeping the RadWindow wrapped in an update panel? Whenever I try to do it, Request.Files.Count is 0.
Thanks