Geeks With Blogs
Gaurav Taneja Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in.

/// <summary>

    /// update rights of Coverage area(Refer functionality save multiple checkbox functionality)

    /// </summary>

    /// <param name="sender"></param>

    /// <param name="e"></param>

    protected void btnCopy_Click(object sender, EventArgs e)

    {

        TerminalCatalogConfig objTerminalCatalogConfig = new TerminalCatalogConfig();

        Hashtable htbParam = new Hashtable();

        DataSet dsChk = new DataSet();

        int LocationId;

 

        for (int iCtr = 0; iCtr < grdLocation.Items.Count; iCtr++)

        {

            CheckBox mychkLocations = (CheckBox)grdLocation.Items[iCtr].FindControl("chkLocations");

            if (mychkLocations.Checked == true)

            {

                htbParam.Clear();

                LocationId = (int)grdLocation.Items[iCtr].OwnerTableView.DataKeyValues[iCtr]["KioskID"];

                htbParam.Add(TerminalCatalogConfig.KEY_FROMKIOSKID, (Convert.ToInt32(Session["TerminalId"])));

                htbParam.Add(TerminalCatalogConfig.KEY_TOKIOSKID, LocationId);

                htbParam.Add(TerminalCatalogConfig.KEY_UPDATETYPE, RadioButtonListCopyAction.SelectedItem.Value.ToString());

 

                Response objResponse = objTerminalCatalogConfig.CopyCatalogConfigForLocation(htbParam);

 

                if (objResponse.Status == Enums.ResponseStatus.error)

                {

                    lblMessage.CssClass = "lblMessage";

                    lblMessage.Text = GetResourceValue(Message.GetDBErrorMessage(objResponse.ResponseCode));

                }

                else

                {

                    lblMessage.Text = TioPortalUtilities.Message.messagePrompt("Locations", 2, 0);

                    lblMessage.CssClass = "lblMessageSuccess";

                }

            }

        }

    }

 

Posted on Thursday, April 3, 2008 7:10 PM Vini | Back to top


Comments on this post: Save Multiple check box value

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Gaurav Taneja | Powered by: GeeksWithBlogs.net