Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bob G. on Jan 16, 2010 22:18
open dhtmlx forum
User control textbox data is not persisting on postback

I have a web page that uses the dhtmlXLayoutObject object with a web user control inside of one of the cells. The user control has a textbox and a button on it that when clicked, saves the contents of the textbox to the database. The user control works fine when it is on a plain aspx page by itself. I am persisting the value of the textbox in a session variable and then using this variable to save the value. When I embed the control in one of the cells on a page with the dhtmlXLayoutObject control the value of the textbox is null when I try to save it in the session variable. How do I persist this value across postbacks?

Thanks.
Answer posted by Alex (support) on Jan 18, 2010 01:40

You can use grid.cells(rowID,columnIndex).getValue() method to get cell value and http://www.dhtmlx.com/docs/products/dhtmlxAjax/samples/01_samples_of_usage/01_send_request.html to send it to the server.