Click here to Skip to main content
15,890,512 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Grid in ASP.Net Pin
R. Giskard Reventlov5-Jun-12 5:34
R. Giskard Reventlov5-Jun-12 5:34 
AnswerRe: Grid in ASP.Net Pin
Sandeep Mewara5-Jun-12 5:59
mveSandeep Mewara5-Jun-12 5:59 
AnswerRe: Grid in ASP.Net Pin
David Mujica5-Jun-12 6:03
David Mujica5-Jun-12 6:03 
AnswerRe: Grid in ASP.Net Pin
taha bahraminezhad Jooneghani5-Jun-12 6:18
taha bahraminezhad Jooneghani5-Jun-12 6:18 
AnswerRe: Grid in ASP.Net Pin
ZurdoDev5-Jun-12 7:40
professionalZurdoDev5-Jun-12 7:40 
AnswerRe: Grid in ASP.Net Pin
thatraja5-Jun-12 15:01
professionalthatraja5-Jun-12 15:01 
AnswerRe: Grid in ASP.Net Pin
Abhinav S5-Jun-12 17:20
Abhinav S5-Jun-12 17:20 
Questionaspxgridview and checkbox problem Pin
tomorrow_ft4-Jun-12 22:33
tomorrow_ft4-Jun-12 22:33 
Quote:
hi,
I am using an aspxgridview and two checkboxes(for header and dataitem).When I check header checkbox I want to check all checkbox.I am also using java script code.essentially, I can do this, but I must check header checkbox twice times.I didnt understand why it is happening.ı am writing this code checkbox_checked event and header checkbox's autopostpak is true. When I used normal gridview I didnt have any problem I could do this without problem.,



<script language="javascript" type="text/javascript">
function SelectAll(id) {

var IsChecked = id.checked;
var Chk = id;
// Parent = document.getElementById('GrdPerliste');
Parent = document.getElementById('<% = GrdPerliste.ClientID%>');

var items = Parent.getElementsByTagName('input');
for (i = 0; i < items.length; i++) {
var deneme = items[i].type;
if (items[i].id != Chk && items[i].type == "checkbox") {
if (items[i].checked != IsChecked)
{ items[i].click(); }
}
}

}
</script>
protected void Checksec_CheckedChanged2(object sender, EventArgs e)
{
CheckBox chk = (CheckBox)sender;
GridViewHeaderTemplateContainer bulundugucontainer = (GridViewHeaderTemplateContainer)chk.NamingContainer;


((CheckBox)bulundugucontainer.FindControl("Checksec")).Attributes.Add("onclick", "javascript:SelectAll('" + ((CheckBox)bulundugucontainer.FindControl("Checksec")).ClientID + "')");

}

AnswerRe: aspxgridview and checkbox problem Pin
Sandeep Mewara5-Jun-12 5:55
mveSandeep Mewara5-Jun-12 5:55 
Questionitemupdating in detailsview Pin
Gaurav Software Developer4-Jun-12 19:41
Gaurav Software Developer4-Jun-12 19:41 
AnswerRe: itemupdating in detailsview Pin
Sandeep Mewara5-Jun-12 6:02
mveSandeep Mewara5-Jun-12 6:02 
QuestionGetting data to the ASP.NET application from BAPI at Runtime and displaying that data(table) in Crysral Report Pin
venugopalreddy14-Jun-12 6:15
venugopalreddy14-Jun-12 6:15 
AnswerRe: Getting data to the ASP.NET application from BAPI at Runtime and displaying that data(table) in Crysral Report Pin
jkirkerx4-Jun-12 11:53
professionaljkirkerx4-Jun-12 11:53 
GeneralSearch for BAPI Pin
jkirkerx5-Jun-12 6:44
professionaljkirkerx5-Jun-12 6:44 
QuestionC# work with linq to sql Pin
classy_dog4-Jun-12 5:34
classy_dog4-Jun-12 5:34 
AnswerRe: C# work with linq to sql Pin
DeDawg4-Jun-12 7:19
DeDawg4-Jun-12 7:19 
QuestionDropDownList is giving following error : System.NullReferenceException Pin
M.S Varma4-Jun-12 2:29
M.S Varma4-Jun-12 2:29 
AnswerRe: DropDownList is giving following error : System.NullReferenceException Pin
VJ Reddy4-Jun-12 6:15
VJ Reddy4-Jun-12 6:15 
AnswerRe: DropDownList is giving following error : System.NullReferenceException Pin
taha bahraminezhad Jooneghani4-Jun-12 11:27
taha bahraminezhad Jooneghani4-Jun-12 11:27 
QuestionEvery time I click a button in mymodal popup to add new row in Gridview it Disappears Pin
sheringkapoting4-Jun-12 2:18
sheringkapoting4-Jun-12 2:18 
AnswerRe: Every time I click a button in mymodal popup to add new row in Gridview it Disappears Pin
jkirkerx4-Jun-12 7:48
professionaljkirkerx4-Jun-12 7:48 
QuestionProcedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
ajitkmr094-Jun-12 1:10
ajitkmr094-Jun-12 1:10 
AnswerRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
Richard MacCutchan4-Jun-12 1:59
mveRichard MacCutchan4-Jun-12 1:59 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
ajitkmr094-Jun-12 20:53
ajitkmr094-Jun-12 20:53 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
Richard MacCutchan4-Jun-12 22:10
mveRichard MacCutchan4-Jun-12 22:10 

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.