Click here to Skip to main content
15,918,742 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Double quote error in Saving Pin
Guffa20-Sep-07 22:36
Guffa20-Sep-07 22:36 
AnswerRe: Double quote error in Saving Pin
hifiger200421-Sep-07 4:59
hifiger200421-Sep-07 4:59 
AnswerRe: Double quote error in Saving Pin
Paddy Boyd21-Sep-07 4:44
Paddy Boyd21-Sep-07 4:44 
QuestionConvert date string into javascript date object in 'yyyy-MM-dd' and 'yyyy.MM.dd' formats Pin
Alagumani20-Sep-07 2:47
Alagumani20-Sep-07 2:47 
AnswerRe: Convert date string into javascript date object in 'yyyy-MM-dd' and 'yyyy.MM.dd' formats Pin
Guffa20-Sep-07 3:24
Guffa20-Sep-07 3:24 
AnswerRe: Convert date string into javascript date object in 'yyyy-MM-dd' and 'yyyy.MM.dd' formats Pin
Shog920-Sep-07 9:10
sitebuilderShog920-Sep-07 9:10 
Questionfind How Many SQL server Present in network Pin
Sachin Pimpale20-Sep-07 0:13
Sachin Pimpale20-Sep-07 0:13 
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 

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.