hi guy's ...
i want use stored procedure in 3-Tier for CRUD !
this procedure :
USE [RahgoshafanDB]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE PROCEDURE Category_Insert@Category NVARCHAR(MAX), @Toz NVARCHAR(MAX) AS BEGIN INSERT INTO Category(Category, Toz) VALUES (@Category, @Toz) ENDthis data access layer :
using System;using System.Data;using System.Data.SqlClient;namespace DAL{ public class Category_Dal { SqlConnection SqlCon = new SqlConnection("Data Source=.;Initial Catalog=RahgoshafanDB;Integrated Security=True"); int id; public void Category_Insert() { try { SqlCommand cmd = new SqlCommand("Category_Insert", SqlCon); cmd.CommandType = CommandType.StoredProcedure; SqlCon.Open(); cmd.ExecuteNonQuery(); } finally { if (SqlCon.State != ConnectionState.Closed) SqlCon.Close(); } } }}butt now ... i not know write in BLL and Button_Insert
please help !

Ankur JainPosted Apr 15, 2015, 11:46 AM
please have a look on these articles...
http://www.dotnetfunda.com/articles/show/2708/3-tier-architecture-in-aspnet-a-complete-article
http://www.aspdotnet-suresh.com/2010/05/introduction-to-3-tier-architecture-in_17.html
ghasem dehPosted Apr 22, 2015, 9:13 AM
please Help !
i want insert image (image field in sql server 2008 r2)
butt error : ImageToByte(pictureBox1.Image) ...
this my code :
ghasem dehPosted Apr 15, 2015, 12:21 PM