html text area problem

  • Thread starter Thread starter shalin
  • Start date Start date
S

shalin

I am trying to set text to a text area through ASP.net code.If the
text area is disabled, then the text is set correctly but if the
textarea is enabled, then the text is not set. The previous value
persists. ie the text area is not refreshed with the new value.
I tried disabling it, setting the text and reenabling it but does not
work.

Please help me out.
 
Actually I am adding the controls during run time and then I am using
find control and setting the value

here the "taComm" is the textarea

Dim ctl
ctl = myTable.FindControl("taComm")

ctl.innerhtml = ""
ctl.innerhtml = Replace(dbdata.Tables("Table1").Rows(recordno)(Trim(arrControl(2,
i))), "*****", vbCrLf & vbCrLf).ToString

When I keep a break point here in ctl it is getting the value from the
dataset, but when the page gets loaded there is nothing in the
textarea.

-shalin
 
Back
Top