Click here to Skip to main content
15,892,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
AnswerRe: get primary key value Pin
himanshu25619-Jul-09 23:35
himanshu25619-Jul-09 23:35 
Questionhow we read the device which is connected to our system's serial port ? Pin
avika9-Jul-09 22:19
avika9-Jul-09 22:19 
AnswerRe: how we read the device which is connected to our system's serial port ? Pin
Manas Bhardwaj9-Jul-09 22:43
professionalManas Bhardwaj9-Jul-09 22:43 
GeneralRe: how we read the device which is connected to our system's serial port ? Pin
avika9-Jul-09 22:48
avika9-Jul-09 22:48 
GeneralRe: how we read the device which is connected to our system's serial port ? Pin
Manas Bhardwaj9-Jul-09 22:57
professionalManas Bhardwaj9-Jul-09 22:57 
GeneralRe: how we read the device which is connected to our system's serial port ? Pin
DoctorMick9-Jul-09 23:45
DoctorMick9-Jul-09 23:45 
GeneralRe: how we read the device which is connected to our system's serial port ? Pin
avika10-Jul-09 0:07
avika10-Jul-09 0:07 
QuestionShort cut key in ASP.Net Pin
Amit Patel19859-Jul-09 22:04
Amit Patel19859-Jul-09 22:04 
AnswerRe: Short cut key in ASP.Net Pin
Manas Bhardwaj9-Jul-09 22:12
professionalManas Bhardwaj9-Jul-09 22:12 
QuestionWeb Chat Implementation Approach Pin
platso_5889-Jul-09 21:35
platso_5889-Jul-09 21:35 
AnswerRe: Web Chat Implementation Approach Pin
Manas Bhardwaj9-Jul-09 22:14
professionalManas Bhardwaj9-Jul-09 22:14 
QuestionEditable gridview Pin
kanadoss9-Jul-09 21:23
kanadoss9-Jul-09 21:23 
AnswerRe: Editable gridview Pin
K03069-Jul-09 21:28
K03069-Jul-09 21:28 
QuestionBest CMS for .net applications Pin
riya319-Jul-09 21:17
riya319-Jul-09 21:17 
AnswerRe: Best CMS for .net applications Pin
K03069-Jul-09 21:26
K03069-Jul-09 21:26 

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.