using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class admin_tooted : System.Web.UI.Page { ToodeteHaldus t = new ToodeteHaldus(); protected void Page_Load(object sender, EventArgs e) { // t.LisaToode("proovitoode", "50.3"); Label1.Text = t.ProoviTervitus(); // grid1.DataSource = t.ToodeteLoetelu(); grid1.DataSource = t.NahtavateToodeteLoetelu(); grid1.DataBind(); repeater1.DataSource = t.ToodeteLoetelu(); repeater1.DataBind(); } protected void lisamisnupp_Click(object sender, EventArgs e) { if (txtNimetus.Text.Trim().Length > 0 && txtHind.Text.Trim().Length > 0) { t.LisaToode(txtNimetus.Text, txtHind.Text, pilt.FileBytes); txtNimetus.Text = ""; txtHind.Text = ""; Server.Transfer("tooted.aspx", false); } } }