Click here to Skip to main content
15,900,816 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: logo beside title page Pin
kimo code20-Sep-07 1:43
kimo code20-Sep-07 1:43 
GeneralRe: logo beside title page Pin
pmarfleet20-Sep-07 2:01
pmarfleet20-Sep-07 2:01 
GeneralRe: logo beside title page Pin
kimo code20-Sep-07 2:02
kimo code20-Sep-07 2:02 
AnswerRe: logo beside title page Pin
Guffa20-Sep-07 3:04
Guffa20-Sep-07 3:04 
GeneralRe: logo beside title page Pin
kimo code20-Sep-07 3:05
kimo code20-Sep-07 3:05 
Questionrow_command event not fire Pin
kirtiarora20-Sep-07 1:14
kirtiarora20-Sep-07 1:14 
AnswerRe: row_command event not fire Pin
Sathesh Sakthivel20-Sep-07 1:16
Sathesh Sakthivel20-Sep-07 1:16 
GeneralRe: row_command event not fire Pin
kirtiarora20-Sep-07 1:21
kirtiarora20-Sep-07 1:21 
*****************for prompting message box*****************
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
ImageButton img = new ImageButton();
img = (ImageButton)e.Row.FindControl("imgdelete");
img.Attributes.Add("onclick", "javascript:return " +
"confirm('Are you sure you want to delete this record " + DataBinder.Eval(e.Row.DataItem,"propertyid") + "')");

}


***********delete row after click on ok of prompt window***********
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
if (GridView1.Rows.Count > 0)
{
string s = GridView1.DataKeys[e.RowIndex].Value.ToString();



SqlCommand cmd = new SqlCommand("delete from property_info where propertyid=@propertyid", conn);
cmd.Parameters.Add("@propertyid", SqlDbType.Int).Value = s;
cmd.Connection.Open();
cmd.ExecuteNonQuery();
cmd.Connection.Close();
}

}



protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Delete")
{
int s=Convert.ToInt32(e.CommandArgument);



SqlCommand cmd = new SqlCommand("delete from property_info where propertyid=@propertyid", conn);
cmd.Parameters.Add("@propertyid", SqlDbType.Int).Value = s;
cmd.Connection.Open();
cmd.ExecuteNonQuery();
cmd.Connection.Close();
}
}
AnswerRe: row_command event not fire Pin
Jintal Patel20-Sep-07 1:45
Jintal Patel20-Sep-07 1:45 
GeneralRe: row_command event not fire Pin
kirtiarora20-Sep-07 1:52
kirtiarora20-Sep-07 1:52 
GeneralRe: row_command event not fire [modified] Pin
sugunavathy15-Feb-08 19:22
sugunavathy15-Feb-08 19:22 
QuestionHow to Read Email from Mailbox using ASP.NET? Pin
Arora_Shweta20-Sep-07 1:07
Arora_Shweta20-Sep-07 1:07 
AnswerRe: How to Read Email from Mailbox using ASP.NET? Pin
Sathesh Sakthivel20-Sep-07 1:13
Sathesh Sakthivel20-Sep-07 1:13 
AnswerRe: How to Read Email from Mailbox using ASP.NET? Pin
Malcolm Smart20-Sep-07 1:26
Malcolm Smart20-Sep-07 1:26 
QuestionA few Dataset question. Pin
Saksida Bojan20-Sep-07 1:01
Saksida Bojan20-Sep-07 1:01 
AnswerRe: A few Dataset question. Pin
Sathesh Sakthivel20-Sep-07 1:10
Sathesh Sakthivel20-Sep-07 1:10 
GeneralRe: A few Dataset question. Pin
Saksida Bojan20-Sep-07 1:57
Saksida Bojan20-Sep-07 1:57 
QuestionAdding values to resource files (resx) Pin
Krugger40420-Sep-07 0:33
Krugger40420-Sep-07 0:33 
Questionhow to implement blog and forum in asp.net with vb.net Pin
rahul.net1120-Sep-07 0:03
rahul.net1120-Sep-07 0:03 
AnswerRe: how to implement blog and forum in asp.net with vb.net Pin
Colin Angus Mackay20-Sep-07 0:16
Colin Angus Mackay20-Sep-07 0:16 
GeneralRe: how to implement blog and forum in asp.net with vb.net Pin
rahul.net1120-Sep-07 0:36
rahul.net1120-Sep-07 0:36 
GeneralRe: how to implement blog and forum in asp.net with vb.net Pin
Pete O'Hanlon20-Sep-07 1:01
mvePete O'Hanlon20-Sep-07 1:01 
GeneralRe: how to implement blog and forum in asp.net with vb.net [modified] Pin
rahul.net1120-Sep-07 2:46
rahul.net1120-Sep-07 2:46 
GeneralRe: how to implement blog and forum in asp.net with vb.net Pin
Colin Angus Mackay20-Sep-07 7:11
Colin Angus Mackay20-Sep-07 7:11 
AnswerRe: how to implement blog and forum in asp.net with vb.net Pin
Sathesh Sakthivel20-Sep-07 1:15
Sathesh Sakthivel20-Sep-07 1:15 

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.