Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6840371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:50:09+00:00 2026-05-26T23:50:09+00:00

i have this stored procedure in the update command of formview DECLARE @ResultTelID int

  • 0

i have this stored procedure in the update command of formview

DECLARE @ResultTelID int ; 
EXECUTE [CUSTOMER].[dbo].[uspUpdateClientTel] 
 @telephoneid
,@telephone
,@TelTypeID
,@DetailsTypeID
,@SortNo
,@ResultTelID OUTPUT

the first two varialbles are in the select query
but my doubt is how to pass values for the update parameters from the code behind

protected void FrmClient_ItemUpdating(object sender, FormViewUpdateEventArgs e)
{        
    string strtel =((form1.FindControl("telephoneidLabel") as Label).Text)as string;

    SqlConnection conTel = new SqlConnection();
    conTel.ConnectionString = Convert.ToString(ConfigurationManager.ConnectionStrings["CUSTOMERConnectionString"]);
    conTel.Open();

    string strcmd = "SELECT tel_type_id, details_type_id, sort_no from TELEPHONE where tel_id =" + strtel;
    SqlCommand cmd = new SqlCommand(strcmd , conTel);
    SqlDataReader rdrTel = cmd.ExecuteReader();
    while( rdrTel.Read())
    {
        int TeltypeID = (int)rdrTel["tel_type_id"];
        int DetailTypeID = (int)rdrTel["details_type_id"];
        Int16 Sort = (Int16)rdrTel["sort_no"];

        //sdsClient.UpdateParameters("TelTypeID").DefaultValue = (int)rdrTel["tel_type_id"];               
    }
    rdrTel.Close();
    conTel.Close();      
}

i want to know how to assign the value of the three prameters to the update command( sdsclient is the sqldatasource for the code)

thanks for any suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:50:09+00:00Added an answer on May 26, 2026 at 11:50 pm

    Add parameter as you do with SQLCommand.. have an idea from follow code snippet.

        <asp:sqldatasource id="SqlDataSource1" runat="server">
            <updateparameters>
                    <asp:parameter name="Status" type="String" />
                    <asp:parameter name="Comment" type="String" />
            </updateparameters>
    </asp:sqldatasource>
    

    Update their value as:

      SqlDataSource1.UpdateParameters["Status"].DefaultValue = "success";
            SqlDataSource1.UpdateParameters["Comment"].DefaultValue = "something";
            SqlDataSource1.Update();
    

    follow this asp.net forum thread for more details

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a stored procedure CREATE procedure [dbo].[get_unique_identifier] AS DECLARE @ret_val INT UPDATE seq
I have this stored Procedure in MS SQL2008 (C#) ALTER PROCEDURE UpdateProducts @ProductID INT,
I have inherited code that looks like this: Stored Procedure UpdateSomeStuff Update Table1 Set
I have a stored procedure that updates a table using linq, eg: (this is
I have this stored procedure that I want to use for my SAP crystal
I have this stored procedure, which is mapped in an Entity Framework 4.1 object.
I have this stored procedure: CREATE OR REPLACE PROCEDURE LIQUIDACION_OBTENER ( p_Cuenta IN NUMBER,
I have this stored procedure for Oracle: create or replace procedure bns_saa_message_get() <--- PROBLEM
If I have this stored proc definition minus the body ALTER PROCEDURE sp_AlloctionReport(@where NVARCHAR(1000),
I have a stored procedure that has this line: SET @SQL = 'SELECT path,title,tags

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.