Click here to Skip to main content
15,920,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: textbox Pin
padmanabhan N10-Jul-09 0:11
padmanabhan N10-Jul-09 0:11 
GeneralRe: textbox Pin
mylogics10-Jul-09 0:14
professionalmylogics10-Jul-09 0:14 
GeneralRe: textbox Pin
DoctorMick10-Jul-09 0:17
DoctorMick10-Jul-09 0:17 
GeneralRe: textbox Pin
Blue_Boy10-Jul-09 0:18
Blue_Boy10-Jul-09 0:18 
GeneralRe: textbox Pin
padmanabhan N10-Jul-09 0:23
padmanabhan N10-Jul-09 0:23 
GeneralRe: textbox Pin
Blue_Boy10-Jul-09 0:32
Blue_Boy10-Jul-09 0:32 
GeneralRe: textbox Pin
padmanabhan N10-Jul-09 0:43
padmanabhan N10-Jul-09 0:43 
GeneralRe: textbox Pin
DoctorMick10-Jul-09 0:52
DoctorMick10-Jul-09 0:52 
GeneralRe: textbox Pin
Blue_Boy10-Jul-09 0:55
Blue_Boy10-Jul-09 0:55 
GeneralRe: textbox Pin
Abhijit Jana10-Jul-09 5:31
professionalAbhijit Jana10-Jul-09 5:31 
AnswerRe: textbox Pin
padmanabhan N10-Jul-09 0:09
padmanabhan N10-Jul-09 0:09 
AnswerRe: textbox Pin
Vasudevan Deepak Kumar10-Jul-09 2:30
Vasudevan Deepak Kumar10-Jul-09 2:30 
Questionvalue in textbox Pin
mylogics9-Jul-09 23:45
professionalmylogics9-Jul-09 23:45 
AnswerRe: value in textbox Pin
Blue_Boy9-Jul-09 23:48
Blue_Boy9-Jul-09 23:48 
GeneralRe: value in textbox Pin
padmanabhan N9-Jul-09 23:57
padmanabhan N9-Jul-09 23:57 
AnswerRe: value in textbox Pin
DoctorMick10-Jul-09 0:15
DoctorMick10-Jul-09 0:15 
AnswerRe: value in textbox Pin
Brij10-Jul-09 2:15
mentorBrij10-Jul-09 2:15 
AnswerRe: value in textbox Pin
Abhijit Jana10-Jul-09 3:14
professionalAbhijit Jana10-Jul-09 3:14 
Questionerror Pin
mylogics9-Jul-09 23:26
professionalmylogics9-Jul-09 23:26 
AnswerRe: error Pin
padmanabhan N9-Jul-09 23:33
padmanabhan N9-Jul-09 23:33 
GeneralRe: error Pin
DoctorMick9-Jul-09 23:44
DoctorMick9-Jul-09 23:44 
AnswerRe: error Pin
Blue_Boy9-Jul-09 23:45
Blue_Boy9-Jul-09 23:45 
Questionget primary key value [modified] Pin
vikas shukla9-Jul-09 23:06
vikas shukla9-Jul-09 23:06 
hi sir
please help me
i want the primary key column value on gridview_rowcommand()
please send me code if possible
thanx

hi sir
i am using following code:


<asp:templatefield headertext="Status">
<itemtemplate>
<asp:linkbutton id="lb1" runat="server" onclick="lb1_Click" commandname="lock_user" commandargument="<%# Container.DataItemIndex %>">Lock



protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if ((e.CommandName).ToString() == "lock_user")
{


int index = Convert.ToInt32(e.CommandArgument);

string userid = GridView1.Rows[index].FindControl("UserIdName").ToString();

WebMsgBox.Show(userid);




}
}

but it gives blank messagebox and i want that userid.

modified on Friday, July 10, 2009 6:35 AM

AnswerRe: get primary key value Pin
padmanabhan N9-Jul-09 23:24
padmanabhan N9-Jul-09 23:24 
AnswerRe: get primary key value Pin
Manas Bhardwaj9-Jul-09 23:30
professionalManas Bhardwaj9-Jul-09 23:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.