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

  • SEARCH
  • Home
  • 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 7521947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:22:40+00:00 2026-05-30T02:22:40+00:00

Hi i am workin on a webapplication where manager assigns work to the employees

  • 0

Hi i am workin on a webapplication where manager assigns work to the employees from grid..

i have database tables like this

     ManagerTable
      Customerid
      name
      and some other columns
     EmployeeTable
     empid
      employeeName
     Worktable
      CustomerID
      EmpID

Database:

Table 1                                               Table 2
CustomerID | CustomerName|CustomerAddress          EmpID |EmpName
---------                                          -------------------
 1 | One    |--|--                                 1 | EmployeeName
 2 | Two                                           2 | EmployeeName
 3 | Three

            Table 3
            Tb1 | Tb2
            ---------
//            1 | 1
//            1 | 2

when ever manager assigns check box to a partcualr employee with unique id like(CustomerID,EmployeeID) should be store on a button click in worktable and i have to retriev the data from work table using the IDS stored in the table and show them in grid

when ever a employee logins with his id it should check and get the data assigen to him in a grid all the employees have same web page

can any one help me with querys and code will be most helpfull…

  • 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-30T02:22:41+00:00Added an answer on May 30, 2026 at 2:22 am

    i to had a same problem as yours i hpe you are using a template in the grid…giving checkBox some id…for example i had given in my example “Chkselect” id for checkbox…i dnt how ur gona give ur table two…but in my example had bindde table two to dropdown and then on button click every thing runs…

               Aspx
    
               <obout:Column DataField="CUSTOMER_LOAN_NO" HeaderText="CUSTOMER_LOAN_NO"  ReadOnly="true">
           <%-- <TemplateSettings RowEditTemplateControlId="txtCustmLn" RowEditTemplateControlPropertyName="value"/>  --%>    
           <TemplateSettings TemplateId="ChkSelect1" />      
            </obout:Column> 
    
    <obout:GridTemplate ID="ChkSelect1" runat="server" >
            <Template>
            <obout:OboutCheckBox runat="server" ID="Chkselect"  ToolTip="<%# Container.Value %>"  ></obout:OboutCheckBox>
            </Template>
            </obout:GridTemplate>   
    
    
        Aspx page behind code
    
    
                void grid1_RowDataBound(object sender, GridRowEventArgs e)
    {
        if (e.Row.RowType == GridRowType.DataRow && GrdCustomerData.RowsInViewState.Count > 0)
        {
            GridDataControlFieldCell cell = e.Row.Cells[0] as GridDataControlFieldCell;
            CheckBox chk = cell.FindControl("Chkselect") as CheckBox;
    
            GridDataControlFieldCell cellInViewState = GrdCustomerData.RowsInViewState[e.Row.RowIndex].Cells[0] as GridDataControlFieldCell;
            CheckBox chkInViewState = cellInViewState.FindControl("Chkselect") as CheckBox;
    
            if (cell.Value == chkInViewState.ToolTip)
            {
                chk.Checked = chkInViewState.Checked;
            }
        }
    }
    
    protected void BtnAssignWork_Click(object sender, EventArgs e)
    {
        string LoanIds = "";
    
        for (int i = 0; i < GrdCustomerData.RowsInViewState.Count; i++)
        {
            GridDataControlFieldCell cell = GrdCustomerData.RowsInViewState[i].Cells[0] as GridDataControlFieldCell;
            CheckBox chk = cell.FindControl("Chkselect") as CheckBox;
    
            if (chk.Checked == true)
            {
                if (!string.IsNullOrEmpty(LoanIds))
                   LoanIds += "";
    
               LoanIds = chk.ToolTip;
                        SqlConnection myconn = new SqlConnection(connstring);
                        SqlCommand mycomm = new SqlCommand("SP_AssignedWork", myconn);
                        myconn.Open();
                        mycomm.CommandType = CommandType.StoredProcedure;
                        mycomm.Parameters.Add("@LoanID", SqlDbType.VarChar).Value = LoanIds;
                        mycomm.Parameters.Add("@EmpID", SqlDbType.VarChar).Value = DDLSelectEmployee.SelectedValue;
                        mycomm.ExecuteNonQuery();
                        myconn.Close();
                    }
                }
    
    
            }
        }
    

    i hope this helps……

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

Sidebar

Related Questions

I have a problem with SSRS Report Manager web application(but again I see this
I'm working on web application which has a database UserName|Password|UserType Anil|Anil|Manager ghouse|Ghouse|Admin raghu|raghu|User Now
I'm working on a database design for a Java web application work flow app
I am working on a webapplication and I do most of the XHTML stuff
I'm currently working on web application using VB in ASP.NET. Right now I have
Im working on a Web-Application (MyWebApp). I have a Service-Reference to a WCF-Webservice. The
I am working on a web application (asp.net mvc3) I have a Main div.
I'm working on a web application. I have entities that are supposed to be
I'm working on a web application written on php. I have some objects (represented
I'm working on a web application related to genome searching. This application makes use

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.