Binding MS SQL Data Value to textbox

9 views
Skip to first unread message

Richard Walsh

unread,
Jan 4, 2010, 10:15:42 AM1/4/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Maybe I'm not using the correct wording, but what I am trying to find
is how to have a textbox display the value of a ms sql database field.
I am using ASP.NET C#.

My presumption was to use the string <%# fieldname %> in the Text
property. From what I have seen this is correct, but i have no idea
how to bind on the c# side. I've been searching and searching, and it
is driving me insane. On the php side it was simple, create a
datasource reference the return set, and simply <?php echo $datasource
['fieldname']; ?>. I can't imagine it being any more different than
that, but I cant seem to find or understand a method for assigning a
data source to a textbox.

Cerebrus

unread,
Jan 5, 2010, 2:37:42 AM1/5/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Databinding is a vast concept and difficult to explain here. You
should read up on the topic.

Here's a good starting point : http://support.microsoft.com/kb/307860

SeanJC

unread,
Jan 25, 2010, 7:44:56 PM1/25/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I agree
Reply all
Reply to author
Forward
0 new messages