I have a in which i have uploaded a file, now i want to check before saving whether any file is uploaded or not. How can i check this.
I am using below code
set objRQ = Server.CreateObject("DataFactory.Request")
if objRQ.Form("txtIcon").Size = 0 or objRQ.Form("txtImage").Size = 0 then
it doesn't worked then i changed code as following
if Request.Form("txtIcon").Count = 0 or Request.Form("txtImage").Count = 0 then
this is also not working.
Now Please provide your inputs to achieve this.