Rowupdating in asp
I do have a Update Products method in my business logic class which is ties into the data class. Once I got that in place, the dropdownlist populated. I haven't had many problems with gridview, but this one has thrown me. Enabled = allow Admin Edit End If Dim price As Text Box = CType(e. Read Only = Not allow Admin Edit End If //some more columns enabled/disabled too End If 0 Then Return If e. On the Gridview Row Updating event, I try to retrieve the value, but I'm getting the value 15. Because I just bound only the Get Products method resultset to the Grid View, it doesn't have the mechanism to handle Updates. But I tried to recreate everything at home, but I missed methods in my DAL class. Find Control("list Box Product"), List Box) If Not ddl Is Nothing Then ddl. Controls(0), Text Box) If Not price Is Nothing Then price. I must be missing something here, but I can't figure out what it is. Hi, I've have this problem before, the only solution i've found is to use only one templatefield with divs with fix width to simulate columns, and use only one Edit Item Template. In there, I enable and disable fields based on access levels etc...
I have the following code below in my Grid View1_Row Updating event. Maybe after midnight today, or sometime this weekend. When I go to configure the datasource for my Object Data Source, on my first screen where I designate the business object, my dropdownlist is blank. Turns out getting the DAL, BLL, and the Object Data Souce in place, did the trick. Tracing the code, using both methods above, the value of the textbox is not being passed back; it doesn't appear in the newvalues either. That probably needs to be linked into the Object Data Source along my Get Products, as well as the Add Products, and Delete Product methods. Problem is, I don't have the time at the moment yet. And back to my original question, how to I get the new value? I have a gridview, go into edit mode, enter a value in a textbox, then click update.