473,385 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASP Page Error

Hi,
I have an ASP page with 3 fields.in the form action i am calling another page to insert the 3 values to the database. when i tried to display the query the the value of the fields were empty.
i am pasting the code snippet down. please help me,how to solve this issue.
Expand|Select|Wrap|Line Numbers
  1. Set l_Con = ConnectDb()
  2.  
  3. Session("fileid") = GenerateUniqueFileID 
  4. l_FolderPath =   Request.ServerVariables("APPL_PHYSICAL_PATH") & "data\PressReleases"
  5.  
  6. Set Uploader = New FileUploader
  7. Uploader.Upload()    
  8.  
  9. l_desc=replace(Uploader.form("desc"),"'","''")
  10. l_date=replace(Uploader.form("demo"),"'","''")    
  11.  
  12. For Each File In Uploader.Files.Items
  13.      File.SaveToDisk l_FolderPath
  14.      fname= File.fileName    
  15. Next
  16.  
  17. Set l_Rs =Server.CreateObject("Adodb.Recordset")
  18.  
  19. l_strSql = "Insert Into Marketing_pressReleases([Desc],FileName,PDF_Date) values ('"& l_desc &"','"& fname &"','"& l_date &"') "
  20.  
  21. Response.Write(l_strSql)
  22. l_Rs.Open l_strSql,l_con
  23.  
  24. Set l_Rs=nothing
  25.  
  26. If err.number > 0 then        
  27. Response.Redirect("../errpage.asp?errtype=1")
  28. End if

When I tried to see the values in the response.write I got the result as
"Insert Into Marketing_pressReleases([Desc],FileName,PDF_Date) values ('','','') "
ALl the fields were empty.
the worst part is the same piece of code works well in other pages of my application. please help me!!!
Jun 30 '11 #1
0 1294

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gordon | last post by:
I have IIS 5.0 running on a Win2000 server. I have scripts that I want to run on the web page. It was suggested to me to create an .HTA page instead of .asp or .html to make them run. The...
1
by: lpatel | last post by:
During a Script session, when I hit the browser 'Back' button I get Pag error. I get this error only from a couple of the pages. Would anyone what the problem could be? or how to go about fixin...
0
by: xixi | last post by:
we are using db2 udb v8.1 on win 64 bit HP titanium machine with fp3 with type 4 db2jcc.jar driver. i have two database created under different patition on same drive. when i do db2dart on the...
1
by: Mark | last post by:
I have .aspx code-behinds that inherit from the class below. The code runs just fine, but the form designer bombs at design time when trying to view the .aspx page in VS.NET 2003. If I comment...
0
by: Steven K | last post by:
Hello, I have a Master Page with ContentPlaceHolders. I also have a content page which I need to add some JavaScript to. If I place the JavaScript in the content page, I get the following...
2
by: David R | last post by:
I've been following the "ASP.NET Custom Error Pages" article (http://www.aspnetresources.com/articles/CustomErrorPages.aspx), but when I implement either subscribing to base.Error or overriding...
3
by: =?Utf-8?B?am9uZWZlcg==?= | last post by:
any ideas?... when my website loads, there are completely no errors until I click a box. Whether it is a textbox or a combo box The error says Line 115 Error: Object expected I know that...
1
by: jobs | last post by:
Do I have access to the name of the page calling a class from inside the class? What's the cleanest way to force a page error from inside a class so that I'm automatically redirected to the...
3
by: =?Utf-8?B?U3RldmUgTGFGb3JnZQ==?= | last post by:
I have an intranet site and want to create a simple master page to be shared across all applications that are built for that site. I build my master page in c:\inetpub\wwwroot\Masters as...
1
by: jdub33 | last post by:
I have a web project that used a vb6 class library. The asp page would call a createobject() to access the class library. I recently updated the vb6 class library to .net2005. I unregistered the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.