I'm trying to create a web page with form fields and a WebUpload control.. It's a support forum kind of thing that allows the user to enter details and add files as attachments.
A few questions..
If you select a few files to attach and then do something else on the page that causes a postback, the WebUpload control loses its contents and reverts back to original state.. is there a way of retaining the content ?
How can I use one button on the page to do a postback and have it upload the files at that time, not as a separate operation.. the files are going into the DB.
Yes, I see. You should go with the counter method.
Please let me know if you have more questions on that matter.
I can run the app with CTRL-F5 to not debug and then use the browser debugger to look at the javascript.. the fileinfodata shows both batch formNumers as 0 still, so I will have to just use the counter method.
ok will give it a go when I can get the application running again... visual studio 2019 just updated, now the site doesn't run.. gets an error iInfragistics.Web.UI.Framework.ImportManager.GetDTE(System.IServiceProvider) and wants the PBD.. no clue what to do about that.
Infragistics45.Web.jQuery.v19.2.dll!Infragistics.Web.UI.Framework.ImportManager.GetDTE(System.IServiceProvider provider)Infragistics45.Web.jQuery.v19.2.dll!Infragistics.Web.UI.Framework.ImportManager.GetActiveProjectPath(System.IServiceProvider provider)Infragistics45.Web.jQuery.v19.2.dll!Infragistics.Web.UI.Framework.ImportManager.getConfigFilePath(System.IServiceProvider provider, string webConfigName)Infragistics45.Web.jQuery.v19.2.dll!Infragistics.Web.UI.Framework.ImportManager.Initialize(System.Web.UI.Control control, bool internalCall)Infragistics45.Web.jQuery.v19.2.dll!Infragistics.Web.UI.Framework.ClientControlMain.OnInit(System.EventArgs e)Infragistics45.Web.jQuery.v19.2.dll!Infragistics.Web.UI.EditorControls.WebUpload.OnInit(System.EventArgs e)System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer)System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer)System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer)System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer)System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer)System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer)System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer)System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint)System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint)System.Web.dll!System.Web.UI.Page.ProcessRequest()System.Web.dll!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext context)System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context)App_Web_0huiuvj2.dll!ASP.default_aspx.ProcessRequest(System.Web.HttpContext context)System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()System.Web.dll!System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication.IExecutionStep step)System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step, ref bool completedSynchronously)System.Web.dll!System.Web.HttpApplication.PipelineStepManager.ResumeSteps(System.Exception error)System.Web.dll!System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext context, System.AsyncCallback cb)System.Web.dll!System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest wr, System.Web.HttpContext context)System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)[Native to Managed Transition][Managed to Native Transition]System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)[Native to Managed Transition][Managed to Native Transition]System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)[Native to Managed Transition][Managed to Native Transition]System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags)[AppDomain Transition]
as an image or video ? who'da thunk it
Okay, so you are selecting multiple files and sending them to the upload, where I was adding them one by one. For this scenario you could check the batch property in fileInfoData, you can find the uploading ids there too. But they are incrementing so your fix should be fine too.