Click here to Skip to main content
15,883,857 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: case structure in vb.net!!! Pin
Michael Sync16-Aug-07 20:30
Michael Sync16-Aug-07 20:30 
GeneralRe: case structure in vb.net!!! Pin
Rharzkie16-Aug-07 20:39
Rharzkie16-Aug-07 20:39 
GeneralRe: case structure in vb.net!!! Pin
Michael Sync16-Aug-07 21:13
Michael Sync16-Aug-07 21:13 
GeneralRe: case structure in vb.net!!! Pin
Rharzkie16-Aug-07 20:48
Rharzkie16-Aug-07 20:48 
GeneralRe: case structure in vb.net!!! Pin
Michael Sync16-Aug-07 21:14
Michael Sync16-Aug-07 21:14 
GeneralRe: case structure in vb.net!!! Pin
Rharzkie17-Aug-07 20:17
Rharzkie17-Aug-07 20:17 
GeneralRe: case structure in vb.net!!! Pin
Michael Sync18-Aug-07 7:24
Michael Sync18-Aug-07 7:24 
QuestionGridview in asp.net 2.0 Pin
Milind Panchal16-Aug-07 19:16
Milind Panchal16-Aug-07 19:16 
Hi,

I am working on gridview. while deleting the record i am getting the error as

Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

my code is

protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int empid=0;
empid = Convert.ToInt32(GridView1.DataKeys[e.RowIndex]);
cmd = new SqlCommand("delete employee where empid='" + empid + "'", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}

please give me what is the syntax for it.

can any one help me urgently

thanks!
AnswerRe: Gridview in asp.net 2.0 Pin
nandhububbly16-Aug-07 19:28
nandhububbly16-Aug-07 19:28 
GeneralRe: Gridview in asp.net 2.0 Pin
N a r e s h P a t e l16-Aug-07 19:30
N a r e s h P a t e l16-Aug-07 19:30 
GeneralRe: Gridview in asp.net 2.0 Pin
Milind Panchal16-Aug-07 19:31
Milind Panchal16-Aug-07 19:31 
GeneralRe: Gridview in asp.net 2.0 Pin
N a r e s h P a t e l16-Aug-07 19:38
N a r e s h P a t e l16-Aug-07 19:38 
AnswerRe: Gridview in asp.net 2.0 Pin
nandhububbly16-Aug-07 19:41
nandhububbly16-Aug-07 19:41 
GeneralRe: Gridview in asp.net 2.0 Pin
N a r e s h P a t e l16-Aug-07 19:57
N a r e s h P a t e l16-Aug-07 19:57 
GeneralRe: Gridview in asp.net 2.0 Pin
Milind Panchal17-Aug-07 19:14
Milind Panchal17-Aug-07 19:14 
QuestionFileUpload control Pin
Imran Khan Pathan16-Aug-07 19:01
Imran Khan Pathan16-Aug-07 19:01 
AnswerRe: FileUpload control Pin
Michael Sync16-Aug-07 20:21
Michael Sync16-Aug-07 20:21 
GeneralRe: FileUpload control Pin
Imran Khan Pathan16-Aug-07 20:40
Imran Khan Pathan16-Aug-07 20:40 
GeneralRe: FileUpload control Pin
Michael Sync17-Aug-07 1:18
Michael Sync17-Aug-07 1:18 
GeneralRe: FileUpload control Pin
ahmed_fci200622-Sep-07 23:29
ahmed_fci200622-Sep-07 23:29 
GeneralRe: FileUpload control Pin
Michael Sync23-Sep-07 1:10
Michael Sync23-Sep-07 1:10 
GeneralRe: FileUpload control Pin
ahmed_fci200623-Sep-07 21:25
ahmed_fci200623-Sep-07 21:25 
Questionhi frens..pls do help me.. Pin
RRR1816-Aug-07 19:01
RRR1816-Aug-07 19:01 
AnswerRe: hi frens..pls do help me.. Pin
leckey17-Aug-07 3:07
leckey17-Aug-07 3:07 
QuestionIIS PROBLEM Pin
methhoo16-Aug-07 13:29
methhoo16-Aug-07 13:29 

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.