Click here to Skip to main content
15,900,511 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDreamwaver visualization help [modified] Pin
saadani19-Sep-07 23:05
saadani19-Sep-07 23:05 
QuestionSend mail through ASP Page.......... Pin
suveenmohan19-Sep-07 23:01
suveenmohan19-Sep-07 23:01 
AnswerRe: Send mail through ASP Page.......... Pin
Christian Graus20-Sep-07 0:54
protectorChristian Graus20-Sep-07 0:54 
AnswerRe: Send mail through ASP Page.......... Pin
kuyak200024-Sep-07 19:49
kuyak200024-Sep-07 19:49 
QuestionHow to use Enterprise Library for Data Access from SQL2005 Pin
babutkchn19-Sep-07 3:35
babutkchn19-Sep-07 3:35 
AnswerRe: How to use Enterprise Library for Data Access from SQL2005 Pin
Brent Lamborn21-Sep-07 9:19
Brent Lamborn21-Sep-07 9:19 
QuestionHow to Dynamically populate Checkbox in Gridview asp.net 2.0 Pin
SJSaranya19-Sep-07 3:12
SJSaranya19-Sep-07 3:12 
AnswerRe: How to Dynamically populate Checkbox in Gridview asp.net 2.0 Pin
saini arun19-Sep-07 4:27
saini arun19-Sep-07 4:27 
Hi!
I am asuming that you have placed check box in your grid. You have a delete button in your page. When you click on that button, it will delete all records for which the check boxes were checked.
If you have a different scenario then plz let me know.

You can use the following code in the onclick event of that button.


protected void btnDelete_Click(object sender, ImageClickEventArgs e)
{
string strUserId = "";
foreach (GridViewRow gv in gvUsersToDelete.Rows) //traverse thru each row of the grid
{
//chkDelete is the name of the checkbox you placed in the grid. We first find that checkbox from the current gridview row and get it in a local checkbox type object, cb.
CheckBox cb = (CheckBox)gv.FindControl("chkDelete");
if (cb.Checked == true) // now check if the check box in this row is checked or not
{
// our grid had User ID in its column 0. So we are getting the userid from the 0th column in the //current row.
strUserId = gv.Cells[0].Text;
DeleteThisUser(strUserId); // passing userid to DeleteThisUser function.
}
}
}

private void DeleteThisUser(String strUserId)
{
// code to delete the matching strUserId.
}



“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”

QuestionAlerting the user to save before leaving the page Pin
samerh19-Sep-07 3:08
samerh19-Sep-07 3:08 
AnswerRe: Alerting the user to save before leaving the page Pin
Pete O'Hanlon19-Sep-07 4:02
mvePete O'Hanlon19-Sep-07 4:02 
GeneralRe: Change js Tooltip Pin
tadhg8819-Sep-07 1:27
tadhg8819-Sep-07 1:27 
QuestionClosing all child window swhen parent window is closed using Javascript Pin
Phanindra Kumar19-Sep-07 0:54
Phanindra Kumar19-Sep-07 0:54 
AnswerRe: Closing all child window swhen parent window is closed using Javascript Pin
Guffa19-Sep-07 3:08
Guffa19-Sep-07 3:08 
QuestionPHP stuff Pin
#realJSOP19-Sep-07 0:00
professional#realJSOP19-Sep-07 0:00 
AnswerRe: PHP stuff Pin
Johnny ²19-Sep-07 9:59
Johnny ²19-Sep-07 9:59 
GeneralRe: PHP stuff Pin
#realJSOP20-Sep-07 0:06
professional#realJSOP20-Sep-07 0:06 
GeneralRe: PHP stuff Pin
Christian Graus21-Sep-07 2:10
protectorChristian Graus21-Sep-07 2:10 
Questionasp and ajax control confuse Pin
mmm!@#18-Sep-07 21:41
mmm!@#18-Sep-07 21:41 
AnswerRe: asp and ajax control confuse Pin
milpo21-Sep-07 2:20
milpo21-Sep-07 2:20 
QuestionRe: asp and ajax control confuse Pin
mmm!@#23-Sep-07 19:02
mmm!@#23-Sep-07 19:02 
QuestionHow to convert an ASPX page to PDF page? Pin
That's Aragon18-Sep-07 19:32
That's Aragon18-Sep-07 19:32 
AnswerRe: How to convert an ASPX page to PDF page? Pin
Manuel F. Hernandez20-Sep-07 7:58
Manuel F. Hernandez20-Sep-07 7:58 
GeneralRe: How to convert an ASPX page to PDF page? Pin
milpo21-Sep-07 2:24
milpo21-Sep-07 2:24 
Questionaspx page & javascript, Fusion Charts Pin
rcwoods18-Sep-07 11:53
rcwoods18-Sep-07 11:53 
Questionmysql error and php header Pin
militiaware18-Sep-07 1:38
militiaware18-Sep-07 1:38 

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.