Click here to Skip to main content
15,908,172 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Access parent page controls from Iframe Pin
Michael Sync13-Aug-07 5:49
Michael Sync13-Aug-07 5:49 
GeneralRe: Access parent page controls from Iframe [modified] Pin
rana7813-Aug-07 5:54
rana7813-Aug-07 5:54 
GeneralRe: Access parent page controls from Iframe Pin
Michael Sync13-Aug-07 6:28
Michael Sync13-Aug-07 6:28 
AnswerRe: Access parent page controls from Iframe Pin
Nick.cheng.liu13-Aug-07 6:21
Nick.cheng.liu13-Aug-07 6:21 
GeneralRe: Access parent page controls from Iframe Pin
Michael Sync13-Aug-07 6:31
Michael Sync13-Aug-07 6:31 
GeneralRe: Access parent page controls from Iframe [modified] Pin
Nick.cheng.liu13-Aug-07 6:39
Nick.cheng.liu13-Aug-07 6:39 
GeneralRe: Access parent page controls from Iframe Pin
rana7813-Aug-07 6:46
rana7813-Aug-07 6:46 
QuestionDelete Empty row from Gridview Pin
kjosh13-Aug-07 4:26
kjosh13-Aug-07 4:26 
Hi,

I have a Gridview and one button ADD which will insert new row to Gridview and is outside of Gridview. Gridview contain one button DELETE column which is used to delete that row from gridview.

When the Delete button is clicked I want to delete that row For this I am doing like this: Where ID is the unique column in Gridview.

private DataRow FindRowByID(string id)

{

DataTable dt = (DataTable)Session["dt"];

DataRow[] rows = dt.Select("ID = " + id.ToString());

return rows[0];

}

Gridview_RowCommand()

{

if (e.CommandName == "RemovePartner")

{

string ind = e.CommandArgument.ToString();

FindRowByID.Delete(ind);

}

}

This is working fine when the inserted row ha ID value. If the user add a new row but did not enter any value into ID column and clicked on Delete then ID contain null value then how to delete that newly inserted row from Gridview.

Thanks

AnswerRe: Delete Empty row from Gridview Pin
Michael Sync13-Aug-07 6:44
Michael Sync13-Aug-07 6:44 
QuestionRetaining viewstate of dynamic controls Pin
Krugger40413-Aug-07 4:07
Krugger40413-Aug-07 4:07 
AnswerRe: Retaining viewstate of dynamic controls Pin
John-ph13-Aug-07 6:30
John-ph13-Aug-07 6:30 
QuestionUpdating gridview after changes to database Pin
JacquesDP13-Aug-07 3:44
JacquesDP13-Aug-07 3:44 
AnswerRe: Updating gridview after changes to database Pin
kubben13-Aug-07 4:00
kubben13-Aug-07 4:00 
AnswerRe: Updating gridview after changes to database Pin
Blue_Boy13-Aug-07 21:08
Blue_Boy13-Aug-07 21:08 
GeneralRe: Updating gridview after changes to database Pin
JacquesDP13-Aug-07 21:27
JacquesDP13-Aug-07 21:27 
GeneralRe: Updating gridview after changes to database Pin
Blue_Boy13-Aug-07 21:30
Blue_Boy13-Aug-07 21:30 
Questionhow to set default orientation(Landscape) for Internet Explorer Browser. Pin
Amit Agarrwal13-Aug-07 3:34
Amit Agarrwal13-Aug-07 3:34 
QuestionASP.Net 2.0 TreeViewControl Pin
ranandbe13-Aug-07 3:14
ranandbe13-Aug-07 3:14 
QuestionHow to Enable and disable controls in .aspx page using javascript Pin
Balagurunathan S13-Aug-07 2:48
Balagurunathan S13-Aug-07 2:48 
AnswerRe: How to Enable and disable controls in .aspx page using javascript Pin
sathish s13-Aug-07 3:25
sathish s13-Aug-07 3:25 
QuestionFLVPlayer Compatible with c#.net Pin
harryforum13-Aug-07 2:25
harryforum13-Aug-07 2:25 
QuestionDropdown SelectedIndex Pin
| Muhammad Waqas Butt |13-Aug-07 0:49
professional| Muhammad Waqas Butt |13-Aug-07 0:49 
AnswerRe: Dropdown SelectedIndex Pin
N a v a n e e t h13-Aug-07 0:55
N a v a n e e t h13-Aug-07 0:55 
GeneralRe: Dropdown SelectedIndex Pin
| Muhammad Waqas Butt |13-Aug-07 2:57
professional| Muhammad Waqas Butt |13-Aug-07 2:57 
GeneralRe: Dropdown SelectedIndex Pin
N a v a n e e t h13-Aug-07 3:49
N a v a n e e t h13-Aug-07 3:49 

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.