asp.net - Pull one record from the database and bind to an HTML tag -


What is the definitive way to drag a record from the database in ASP.NET and bind it and HTML tags? Countdown to brevity and style points

For summarizing, you would like to use SqlDataSource.

  & lt; Asp: SqlDataSource id = "sql" runat = "server" connection string = '& lt;% $ connectionString: Mycvention string% & gt;' SelectCommandType = "Text" SelectCommand = "Choose MyField from MyTable where id = @id" & gt; & Lt; SelectParameters & gt; & Lt; Asp: ControlParameter ControlID = "txtUserName" property name = "text" name = "id" /> & Lt; / SelectParameters & gt; & Lt; / ASP: SQLDataSource & gt; & Lt; ASP: BulletLunt Runat = "Server" DatacetField = "MyFilled" Datasource ID = "SKL" & gt; & Lt; / ASP: BulletedList & gt;  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -