Click here to Skip to main content
16,010,114 members
Home / Discussions / C#
   

C#

 
GeneralGetting assembly name Pin
mikker_1232-Aug-05 16:26
mikker_1232-Aug-05 16:26 
GeneralRe: Getting assembly name Pin
[Marc]2-Aug-05 16:31
[Marc]2-Aug-05 16:31 
GeneralRe: Getting assembly name Pin
mikker_1232-Aug-05 17:12
mikker_1232-Aug-05 17:12 
GeneralProper use of Refresh() and Invalidate() Pin
Mutty2-Aug-05 15:59
Mutty2-Aug-05 15:59 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
mikker_1232-Aug-05 16:20
mikker_1232-Aug-05 16:20 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
Mutty3-Aug-05 2:26
Mutty3-Aug-05 2:26 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
mikker_1233-Aug-05 8:34
mikker_1233-Aug-05 8:34 
GeneralDeleting a Whole Row Pin
tatchung2-Aug-05 15:34
tatchung2-Aug-05 15:34 
Hi!

I was just wondering how I could delete 1 row from the results I get in my datagrid. Everytime data shows in my datagrid, an edit/delete button appears for every row i fetch. Now what I want to happen is that if I fire my delete button only the row aligned to it gets removed. Now my problem is that my page hangs when i click the delete button. I've debugged it and it stops right before my curly bracket

<br />
if (Page.Request.QueryString["Mode"] == "Delete")<br />
{<br />
objCol.DeleteColors(Page.Request.QueryString["key"],"");<br />
Response.Redirect ("SysColors.aspx");<br />
}


<br />
//objCol<br />
public bool DeleteColors(string strObject,string strColors)<br />
{<br />
try<br />
{<br />
strSQL = " DELETE FROM sys_colors";<br />
strSQL += " WHERE object = '" + strObject+ "' ";<br />
strSQL += " AND c_code = '" + strColors + "' ";<br />
<br />
OdbcCommand cmdDelete = new OdbcCommand();<br />
cmdDelete.CommandText  = strSQL;<br />
cmdDelete.Connection = cnnDS;<br />
cmdDelete.ExecuteNonQuery();		<br />
				<br />
return true;<br />
}<br />
catch (Exception e)<br />
{<br />
throw e;<br />
}


I hope I didnt forget anything this time...Thanx for all your help! Much appreciated! My apologies for the inconveniences

Kampai!!!
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 15:52
protectorChristian Graus2-Aug-05 15:52 
GeneralRe: Deleting a Whole Row Pin
mikker_1232-Aug-05 16:08
mikker_1232-Aug-05 16:08 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 16:19
tatchung2-Aug-05 16:19 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 16:50
protectorChristian Graus2-Aug-05 16:50 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 17:10
tatchung2-Aug-05 17:10 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 17:45
protectorChristian Graus2-Aug-05 17:45 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 17:52
tatchung2-Aug-05 17:52 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 17:57
protectorChristian Graus2-Aug-05 17:57 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 18:05
tatchung2-Aug-05 18:05 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 18:07
protectorChristian Graus2-Aug-05 18:07 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 18:13
tatchung2-Aug-05 18:13 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 18:15
protectorChristian Graus2-Aug-05 18:15 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 18:21
tatchung2-Aug-05 18:21 
GeneralRe: Deleting a Whole Row Pin
tatchung4-Aug-05 21:53
tatchung4-Aug-05 21:53 
GeneralRe: Deleting a Whole Row Pin
Christian Graus7-Aug-05 13:18
protectorChristian Graus7-Aug-05 13:18 
GeneralGet control form its NAME Pin
Radgar2-Aug-05 13:15
Radgar2-Aug-05 13:15 
GeneralRe: Get control form its NAME Pin
Christian Graus2-Aug-05 14:41
protectorChristian Graus2-Aug-05 14:41 

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.