R
ronaldlee
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.NotSupportedException: Collection is
read-only.
Source Error:
Line 87: Else
Line 88:
Line 89: objRS.Open("UPDATE Customers SET Customer_Name = '" &
SQL_safe(Request.Form.Item("realname")) & "', customer_Email = '"
& SQL_safe(Request.Form.Item("email")) & "',
Customer_Address_Line1 = '" &
SQL_safe(Request.Form.Item("billing_house")) & "',
Customer_Address_Line2 = '" &
SQL_safe(Request.Form.Item("billing_street")) & "',
Customer_Address_Line3 = '" &
SQL_safe(Request.Form.Item("billing_area")) & "',
Customer_Address_Line4 = '" &
SQL_safe(Request.Form.Item("billing_town")) & "',
Customer_Address_Line5 = '" &
SQL_safe(Request.Form.Item("billing_county")) & "',
Customer_Address_Line6 = '" &
SQL_safe(Request.Form.Item("billing_postcode")) & "',
Customer_Delivery_Address_Line1 = '" &
SQL_safe(Request.Form.Item("delivery_house")) & "',
Customer_Delivery_Address_Line2 = '" &
SQL_safe(Request.Form.Item("delivery_street")) & "',
Customer_Delivery_Address_Line3 = '" &
SQL_safe(Request.Form.Item("delivery_area")) & "',
Customer_Delivery_Address_Line4 = '" &
SQL_safe(Request.Form.Item("delivery_town")) & "',
Customer_Delivery_Address_Line5 = '" &
SQL_safe(Request.Form.Item("delivery_county")) & "',
Customer_Delivery_Address_Line6 = '" &
SQL_safe(Request.Form.Item("delivery_postcode")) & "',
Customer_Telephone = '" &
SQL_safe(Request.Form.Item("telephone")) & "', Customer_Fax = '"
& SQL_safe(Request.Form.Item("fax")) & "' WHERE CustomerID =
" & Session("CustomerID"), objConn)
Stack Trace:
[NotSupportedException: Collection is read-only.]
System.Collections.Specialized.NameValueCollection.Set(String name,
String value) +2029663
System.Collections.Specialized.NameValueCollection.set_Item(String
name, String value) +10
ASP.details_aspx.__Render__control1(HtmlTextWriter __w, Control
parameterContainer) in C:\MySite\details.aspx:89
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
+3153695
System.Web.UI.Page.Render(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+5916
anyone know why it is read only?
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
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.NotSupportedException: Collection is
read-only.
Source Error:
Line 87: Else
Line 88:
Line 89: objRS.Open("UPDATE Customers SET Customer_Name = '" &
SQL_safe(Request.Form.Item("realname")) & "', customer_Email = '"
& SQL_safe(Request.Form.Item("email")) & "',
Customer_Address_Line1 = '" &
SQL_safe(Request.Form.Item("billing_house")) & "',
Customer_Address_Line2 = '" &
SQL_safe(Request.Form.Item("billing_street")) & "',
Customer_Address_Line3 = '" &
SQL_safe(Request.Form.Item("billing_area")) & "',
Customer_Address_Line4 = '" &
SQL_safe(Request.Form.Item("billing_town")) & "',
Customer_Address_Line5 = '" &
SQL_safe(Request.Form.Item("billing_county")) & "',
Customer_Address_Line6 = '" &
SQL_safe(Request.Form.Item("billing_postcode")) & "',
Customer_Delivery_Address_Line1 = '" &
SQL_safe(Request.Form.Item("delivery_house")) & "',
Customer_Delivery_Address_Line2 = '" &
SQL_safe(Request.Form.Item("delivery_street")) & "',
Customer_Delivery_Address_Line3 = '" &
SQL_safe(Request.Form.Item("delivery_area")) & "',
Customer_Delivery_Address_Line4 = '" &
SQL_safe(Request.Form.Item("delivery_town")) & "',
Customer_Delivery_Address_Line5 = '" &
SQL_safe(Request.Form.Item("delivery_county")) & "',
Customer_Delivery_Address_Line6 = '" &
SQL_safe(Request.Form.Item("delivery_postcode")) & "',
Customer_Telephone = '" &
SQL_safe(Request.Form.Item("telephone")) & "', Customer_Fax = '"
& SQL_safe(Request.Form.Item("fax")) & "' WHERE CustomerID =
" & Session("CustomerID"), objConn)
Stack Trace:
[NotSupportedException: Collection is read-only.]
System.Collections.Specialized.NameValueCollection.Set(String name,
String value) +2029663
System.Collections.Specialized.NameValueCollection.set_Item(String
name, String value) +10
ASP.details_aspx.__Render__control1(HtmlTextWriter __w, Control
parameterContainer) in C:\MySite\details.aspx:89
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
+3153695
System.Web.UI.Page.Render(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+5916
anyone know why it is read only?
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*