Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
i have one gird .in that two link button i.e Accept ,Reject..
when i click on accept then i want to do reject linkbutton visible false of that perticular row...
not for all row so how can i do???
plz help me..
 
my code is below:-
 
LinkButton lb = (LinkButton)e.CommandSource;
       if (e.CommandName.Equals("accept"))
       {
           string[] commandArgs = e.CommandArgument.ToString().Split(new char[] { ',' });
           int profileid = Convert.ToInt32(commandArgs[0]);
           int friendID = Convert.ToInt32(commandArgs[1]);
 
           SysATGlobal.DB.ExecuteSelectQuery("update DSMailBox.HDR_GROUP set ACCEPT_STATUS=1  where PROFILE_ID='" + profileid + "' and FRIEND_ID='" + friendID + "'",true);
           lb.Text = "Request Accept successfully";
           GrdATDataView.Columns[2].Visible = false;
 

 
       }
       else
       {
           string[] commandArgs = e.CommandArgument.ToString().Split(new char[] { ',' });
           int profileid = Convert.ToInt32(commandArgs[0]);
           int friendID = Convert.ToInt32(commandArgs[1]);
 

            SysATGlobal.DB.ExecuteSelectQuery("update DSMailBox.HDR_GROUP set REJECT_STATUS=1 where PROFILE_ID='" + profileid + "' and FRIEND_ID='" + friendID + "'",true);
            lb.Text = "Request Rejected";
            GrdATDataView.Columns[1].Visible = false;
 
       }
Posted 28 Nov '12 - 18:51


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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 325
1 Sergey Alexandrovich Kryukov 140
2 Mohammed Hameed 123
3 Santhosh G_ 113
4 Ron Beyer 99
0 Sergey Alexandrovich Kryukov 8,286
1 OriginalGriff 6,561
2 CPallini 3,533
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 29 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid