Wrox Home  
Search P2P Archive for: Go

  Return to Index  

ado_dotnet thread: =?gb2312?Q?=B4=F0=B8=B4:=5Bado=5Fdotnet=5D_Populating_a_variable_with_a_Dat? =?gb2312?Q?abase_recordset?=


Message #1 by "wang xiaohai" <chinappig@h...> on Mon, 15 Apr 2002 21:21:13 +0800
------=_NextPart_001_0000_01C1E4C3.7898F3D0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: quoted-printable

I think Maybe you can use the sentence like : <%# DataBinder.Eval(Contain
er.DataItem,"field"%>
It is a databind sentence,before you can use it,you must bind a dataset t
o a page object,and its value will be calculated runtime

----- =D4=AD=CA=BC=D3=CA=BC=FE -----
=B7=A2=BC=FE=C8=CB: Tiko
=B7=A2=CB=CD=CA=B1=BC=E4: 2002=C4=EA4=D4=C215=C8=D5 3:31
=CA=D5=BC=FE=C8=CB: ADO.NET
=D6=F7=CC=E2: [ado_dotnet] Populating a variable with a Database recordse
t

Hopefully someone can help.

I need to populate a variable for output on an aspx page (ie: <%=3DVariab
le%
>) given a return from a database. I am using VB.Net, a SQL database and
am trying to call the variable from a code-behind vb page.

I can get the thing to display in a datagrid as there are tons of
tutorials and references on doing that. I also can output it using
<asp:repeater> but that uses alot of code.

Is there a way, as there was in regular old ASP, to simply response.write
a value from a db out?

Any help would be greatly appreciated!
to unsubscribe send a blank email to leave-ado_dotnet-1080665U@p...
om.=B4=D3=CD=F8=D5=BE=B5=C3=B5=BD=B8=FC=B6=E0=D0=C5=CF=A2=A1=A3MSN Explor
er =C3=E2=B7=D1=CF=C2=D4=D8:http://explorer.msn.com/lccn


  Return to Index