using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Reflection; using SubSonic; using System.Data; public partial class QuerryWhere : System.Web.UI.Page { private void CreateDynamicControls() { panGvHolder.Controls.Clear(); Query qry = Northwind.Product.CreateQuery(); qry.Columns.AddRange(Northwind.Product.Schema.Columns); qry.WHERE("UnitPrice > 15").AND("UnitsInStock < 20 "); //WHERE("UnitPrice > 15").AND("UnitsInStock < 30 "); using (IDataReader rdr = qry.ExecuteReader()) { Response.Write("<table>"); while (rdr.Read()) { Response.Write("<tr>"); for (int i = 0; i < rdr.FieldCount; i++) { Response.Write("<td>"); Response.Write(rdr[i].ToString() + " "); Response.Write("<td>"); } //eof for Response.Write("</br>"); Response.Write("</tr>"); } Response.Write("<table>"); } } //eof method #region TemplateMethods protected override void OnInit(EventArgs e) { } //eof OnInit protected override void CreateChildControls() { base.CreateChildControls(); CreateDynamicControls(); } //protected override void CreateChildControls ( ) protected void Page_Load(object sender, EventArgs e) { } protected override object SaveViewState() { return new Pair(base.SaveViewState(), null); } protected override void LoadViewState(object savedState) { base.LoadViewState(((Pair)savedState).First); EnsureChildControls(); } //LoadViewState #endregion //TemplateMethods #region DisplayMethods #endregion //DisplayMethods #region ClickEventHandlers #endregion ClickEventHandlers #region Properties //set here page properties to use with the viewstate #endregion //Properties } //eof class
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 !!!!