п»ї<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.ADO" %>
<html>
<head>
<script language="C#" runat="server">
{
string strCn = "DSN=pubs";
string strCmd = "Select * From Products";
ADOConnection cn = new ADOConnection(strCn);
ADODataSetCommand cmd = new ADODataSetCommand(strCmd,cn);
DataSet ds = new DataSet();
cmd.FillDataSet(ds, "Products");
ListBox1.DataSource = ds.tables["Products"].DefaultView;
ListBox1.DataBind();
}
</head>
<body>
<form method="post" action="2000081703.aspx" runat="server"
<asp:ListBox id="ListBox1" Runat="server">
<DataTextField="ProductName" DataValueField="ProductID" />
</form>
</body>
</html>
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!