A
A Traveler
Hello,
I have a textbox in a datagrid row which has autopostback. When it posts
back, it updates a prop on an object in a session variable.
In order to update the right object, in the ItemDataBound of the grid, i was
adding the objects ID property as a
MyTextbox.Attributes.Add("recid",rowDataItemObj.RecID)
along with several other attributes.
For some reason these attributes are not being added the first time through.
But when do a postback, then they get added properly. The code adding the
attributes is not enclosed in any IsPostback checks.
anyone ever had this problem before, or can help?
Thanks in advance,
- ArthurDent
I have a textbox in a datagrid row which has autopostback. When it posts
back, it updates a prop on an object in a session variable.
In order to update the right object, in the ItemDataBound of the grid, i was
adding the objects ID property as a
MyTextbox.Attributes.Add("recid",rowDataItemObj.RecID)
along with several other attributes.
For some reason these attributes are not being added the first time through.
But when do a postback, then they get added properly. The code adding the
attributes is not enclosed in any IsPostback checks.
anyone ever had this problem before, or can help?
Thanks in advance,
- ArthurDent