Search Result

Collapse
2 results in 0.0014 seconds.
Keywords
Members
Tags
gridview1.datasource
  •  

  • Vili
    Guest started a topic What to consider when using SqlDatASource programmatically?

    What to consider when using SqlDatASource programmatically?

    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...
    See more | Go to post

  • 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;
    ...
    See more | Go to post
    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)
Working...