ReadOnly Fields in a WebPart

Hi, this is my first post, and sorry for my awful english...

I'm developing two webparts, which work connected, the provider has a GridView (reading the data from a SQL database), and the consumer displays the detail of the selected row in the consumer's gridview...

The consumer has a button which saves the displayed information into a sharepoint list...

I need to use textbox controls to display the data, but when i set them in readonly, or enabled = false mode, they clear their contents before any event...


Here is the code...

http://gianni.gellona.googlepages.com/Reclamos.cs.txt




Answer this question

ReadOnly Fields in a WebPart

  • RE66

    Have you tried leaving the textboxes enabled in CreateChildControls and disabling them only after the text has been set Try disabling them after LessSuscriptor() perhaps at the bottom of RenderContents. May be text can't be set if disabled.
  • JimT Utah

    bump

  • Pradeep Gupta

    perfect!, now it works pretty well, thank you!!! :D


  • Brandon Bohling

    dratted event sequence ;-)

  • ReadOnly Fields in a WebPart