protected void btnSave_Click(object sender, EventArgs e) { model.Image img = new model.Image(); img.ImgName = txtTitle.Text.Trim(); img.ImgPath = txtMain.Text; img.TypeId = int.Parse(droplstImgType.SelectedValue); Response.Redirect("../imgview.aspx?imgid="+ImgMng.AddImg(img).ToString()); }
protected void btnSave_Click(object sender, EventArgs e) { model.Image img = new model.Image(); img.ImgName = txtTitle.Text.Trim(); img.ImgPath = txtMain.Text; img.TypeId = int.Parse(droplstImgType.SelectedValue); Response.Redirect("../imgview.aspx?imgid=" + ImgMng.AddImg(img).ToString()); }