Click here to Skip to main content
15,923,006 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
ID        int            Unchecked
UserName  varchar(50)    Checked
Role      varchar(50)    Checked
Full_Name varchar(50)    Checked
Email     varchar(50)    Checked
Role_ID   nchar(10)    Checked

Hi Everyone this is my Login table. I have another table Role as given below. I have a gridview with columns similar to Role table and one image button for users. When i will click the User image button present inside gridview then the usernames present in login table should displayin a popup window or balloon extender.how will i do it please help and only those user image button will be visible which is attached some role.
Role_ID      int              Unchecked
Role_Name    nvarchar(MAX)    Checked
Description  nvarchar(MAX)    Checked
Posted
Updated 15-May-14 0:34am
v2
Comments
Prasad Avunoori 15-May-14 6:46am    
Why are you using "Role" field in User Table when you already have Role_Id?
Prasad Avunoori 15-May-14 6:50am    
Use some thing like this.

<asp:TemplateField HeaderText="Edit Controls" ItemStyle-Width="15%">
<itemtemplate>
<asp:ImageButton ImageUrl="~/Styles/Images/Edit.jpg" CommandName="Edit" runat="server"
ID="btn_Edit" ToolTip="Edit Organisation" />
<asp:LinkButton ID="LinkButton1" CommandArgument='<%# Eval("OrganisationID") %>' CommandName="Delete" runat="server">delete

<itemstyle width="15%">

1 solution

Hello,

Basically you will have to write some JavaScript as popup is going to get displayed on the client side and the server side code to return the user names for a given role. This server side code (service) will be called using AJAX and the returned data (JSON) will be rendered inside the popup. Hope this helps you get started. Please don't forget to check some of the below mentioned CP Articles.

Regards,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900