I have this error in Line 89.
Collection is read-only.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.NotSuppo rtedException: Collection is
read-only.
Source Error:
Line 87: Else
Line 88:
Line 89: objRS.Open("UPD ATE Customers SET Customer_Name = '" &
SQL_safe(Reques t.Form.Item("re alname")) & "', customer_Email = '"
& SQL_safe(Reques t.Form.Item("em ail")) & "',
Customer_Addres s_Line1 = '" &
SQL_safe(Reques t.Form.Item("bi lling_house")) & "',
Customer_Addres s_Line2 = '" &
SQL_safe(Reques t.Form.Item("bi lling_street")) & "',
Customer_Addres s_Line3 = '" &
SQL_safe(Reques t.Form.Item("bi lling_area")) & "',
Customer_Addres s_Line4 = '" &
SQL_safe(Reques t.Form.Item("bi lling_town")) & "',
Customer_Addres s_Line5 = '" &
SQL_safe(Reques t.Form.Item("bi lling_county")) & "',
Customer_Addres s_Line6 = '" &
SQL_safe(Reques t.Form.Item("bi lling_postcode" )) & "',
Customer_Delive ry_Address_Line 1 = '" &
SQL_safe(Reques t.Form.Item("de livery_house")) & "',
Customer_Delive ry_Address_Line 2 = '" &
SQL_safe(Reques t.Form.Item("de livery_street") ) & "',
Customer_Delive ry_Address_Line 3 = '" &
SQL_safe(Reques t.Form.Item("de livery_area")) & "',
Customer_Delive ry_Address_Line 4 = '" &
SQL_safe(Reques t.Form.Item("de livery_town")) & "',
Customer_Delive ry_Address_Line 5 = '" &
SQL_safe(Reques t.Form.Item("de livery_county") ) & "',
Customer_Delive ry_Address_Line 6 = '" &
SQL_safe(Reques t.Form.Item("de livery_postcode ")) & "',
Customer_Teleph one = '" &
SQL_safe(Reques t.Form.Item("te lephone")) & "', Customer_Fax = '"
& SQL_safe(Reques t.Form.Item("fa x")) & "' WHERE CustomerID =
" & Session("Custom erID"), objConn)
Stack Trace:
[NotSupportedExc eption: Collection is read-only.]
System.Collecti ons.Specialized .NameValueColle ction.Set(Strin g name,
String value) +2029663
System.Collecti ons.Specialized .NameValueColle ction.set_Item( String
name, String value) +10
ASP.details_asp x.__Render__con trol1(HtmlTextW riter __w, Control
parameterContai ner) in C:\MySite\detai ls.aspx:89
System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer)
+3153695
System.Web.UI.P age.Render(Html TextWriter writer) +25
System.Web.UI.C ontrol.RenderCo ntrolInternal(H tmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer,
ControlAdapter adapter) +139
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +24
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
+5916
anyone know why it is read only?
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*