Databinding to a textbox inside a repeater

G

Guest

Hi

I have a textbox inside a repeater and want to bind data
to the textbox using a method.
My html is:
<asp:TextBox ID="OriginalTextBox" ReadOnly="True"
Width="220px" Height="120px" Text='<%# GetOriginalText() %
' Runat="server" />

and in C# my method GetOriginalText() is:

public String GetOriginalText()
{
Webtest.TranslationDB translationDetails = new
Webtest.TranslationDB();

DataSet ds=new DataSet();
OleDbDataAdapter oda=new OleDbDataAdapter();
oda=translationDetails.GetTextTranslation
(myTaskName,myOriginalLanguage);
oda.Fill(ds,"trans");
return ds.ToString();
}

What I get in the textbox is:
System.Data.DataSet

I've tried returning the DataSet as well from
GetOriginalText() but that doesn't work.
What should I be returning in the method?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top