UtilityBelt has the code built in to do it.

Look at:
http://www.learnasp.com/freebook/learn/utilitybelt_search_sqlclient_cs.aspx
and notice how DBPopulate is used. 

1 of the arguments to DBPopulate could be a textbox.

The other way is use a ExecuteScalar ADO.net method and assign the
.text property that way.

http://www.learnasp.com/freebook/learn/executescalar.aspx
has a VB.net ExecuteScalar sample that is easy to convert to C#

http://www.learnasp.com/freebook/learn/datareader.aspx
has a VB.net sample that is easy to convert to C#

http://www.learnasp.com/ref
has a great section on converting VB.net to C# and Vice versa. Just select 
"choose C# or VB.net" from dropdown.
http://www.learnasp.com/


On Fri, 11 Mar 2005 05:41:28 -0000, smn25_rpm <[EMAIL PROTECTED]> wrote:
>  
>  
>  sir,
>  
>  pls send the code to retrieve values from a database into a textbox.
>  plz send the c# code.. 
>  
>  thank u
>  
>  
>  
>  
>  
>  
>  
>  
>  Yahoo! Groups Sponsor 
>  
>  ADVERTISEMENT
>  
>  
>  ________________________________
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to