Hi all
I would like to get some ideas and opinions of my solution for
dataconnection on asp.net 2.0
I have created a class which encapsulates the sqldatasource usage.
With my class one can set select-, insert-, update- and deletecommand
with and without parameters and also get output parameters
Typical usage from code-behind:
I might have one gridview and a detailview...
Search Result
Collapse
2 results in 0.0014 seconds.
Keywords
Members
Tags
-
What to consider when using SqlDatASource programmatically?
-
How to pass parameters to stored procedure, which is used by sqlDataSource
I want to bind GridView with sqlDataSource like following
...Code:sqlDataSource1.SelectCommand = "GET_TRACKING_INFO"; sqlDataSource1.SelectCommandType = SqlDataSourceCommandType.StoredProcedure; sqlDataSource1.SelectParameters.Add("Group_code",TypeCode.String, "1"); sqlDataSource1.SelectParameters[0].Direction =ParameterDirection.Input; GridView1.DataSource = sqlDataSource1;Last edited by Frinavale; Mar 9 '09, 03:06 PM. Reason: Added [code] tags: Please post code in [code] [/code] tags. (Moved to ASP.NET from .NET)