473,607 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

REALLY FRUSTRATING, Please help!!

I riepilogate with corrections and updates:

I've an Ajax Accordion that gets data from a database, in its content
there is a Repeater that gets data from another table, depending which
header is selected in the accordion.

in the Repeater I've a checkbox (one for eache repeated field) checked
by default that I select/deselect triggering the method
OnCheckedChange d which updates the record in the table connected to
the repeater.

this method OnCheckedChange d is triggered correctly (with the right
ClientID) when I deselect the a checkbox. I use the passed sender
checkbox's ClientID to identify and modify the record in the table

PROBLEM:
when I deselect the CheckBox, the correct sender ClientID is passed,
when I select the previously deselected checkbox a wrong ClientID is
passed!
in particolar, i found that it is passed the ClientID of last
unselected chechbox in the repeater

Please help, I'm going nuts!

here is the essential structure:
=============== =======aspx
page=========== =============== ==============
<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Shipp ing.aspx.cs"
Inherits="test" MaintainScrollP ositionOnPostba ck="true" %>
<ajaxToolkit:To olkitScriptMana ger EnablePartialRe ndering="true"
runat="Server" ID="ToolkitScri ptManager1" />
<ajaxToolkit:Ac cordion ID="MyAccordion " runat="server"
SelectedIndex=" 0" HeaderCssClass= "accordionHeade r"
HeaderSelectedC ssClass="accord ionHeaderSelect ed"
ContentCssClass ="accordionCont ent"
FadeTransitions ="false" FramesPerSecond ="1"
TransitionDurat ion="1" AutoSize="None"
RequireOpenedPa ne="true" SuppressHeaderP ostbacks="false "
Width="900px" >
<ContentTemplat e>
<asp:Repeater ID="Repeater1" runat="server"
DataSourceID="S qlDataSource1">
<ItemTemplate >
<asp:CheckBox ID="ManifestChe ckBox"
runat="server" AutoPostBack="t rue"
Checked="True" OnCheckedChange d =
"ManifestCheckB ox_CheckedChang ed" />
</ItemTemplate>
</asp:Repeater>
</ContentTemplate >
</ajaxToolkit:Acc ordion>
<asp:SqlDataSou rce ID="SqlDataSour ce1" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:XXXXXXXXXXXX XXX %>"
SelectCommand=" SELECT * FROM [tblPICManifest] WHERE
([PICBatchID] =
@PICBatchID)">
<SelectParamete rs>
<asp:ControlPar ameter ControlID="sele ctedLbl"
DefaultValue=""
Name="PICBatchI D"
PropertyName="T ext" Type="Int32" />
</SelectParameter s>
</asp:SqlDataSour ce>
=============== =======aspx.cs
code=========== =============== ==============
protected void Page_Load(objec t sender, EventArgs e)
{
if (!IsPostBack)
else
{
............
}
protected void ManifestCheckBo x_CheckedChange d(object sender,
EventArgs e)
{
Control ctrSender = (Control)sender ;
string controlID = ctrSender.Clien tID;
............

}
--
ciao
Vittorix

Dec 19 '07 #1
4 1279
Probably a good idea not to start with "riepilogat e". You scared me away
from reading the rest of your post after seeing that!
"Vittorix" <vi******@gmail .comwrote in message
news:8c******** *************** ***********@f3g 2000hsg.googleg roups.com...
>I riepilogate with corrections and updates:

I've an Ajax Accordion that gets data from a database, in its content
there is a Repeater that gets data from another table, depending which
header is selected in the accordion.

in the Repeater I've a checkbox (one for eache repeated field) checked
by default that I select/deselect triggering the method
OnCheckedChange d which updates the record in the table connected to
the repeater.

this method OnCheckedChange d is triggered correctly (with the right
ClientID) when I deselect the a checkbox. I use the passed sender
checkbox's ClientID to identify and modify the record in the table

PROBLEM:
when I deselect the CheckBox, the correct sender ClientID is passed,
when I select the previously deselected checkbox a wrong ClientID is
passed!
in particolar, i found that it is passed the ClientID of last
unselected chechbox in the repeater

Please help, I'm going nuts!

here is the essential structure:
=============== =======aspx
page=========== =============== ==============
<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Shipp ing.aspx.cs"
Inherits="test" MaintainScrollP ositionOnPostba ck="true" %>
<ajaxToolkit:To olkitScriptMana ger EnablePartialRe ndering="true"
runat="Server" ID="ToolkitScri ptManager1" />
<ajaxToolkit:Ac cordion ID="MyAccordion " runat="server"
SelectedIndex=" 0" HeaderCssClass= "accordionHeade r"
HeaderSelectedC ssClass="accord ionHeaderSelect ed"
ContentCssClass ="accordionCont ent"
FadeTransitions ="false" FramesPerSecond ="1"
TransitionDurat ion="1" AutoSize="None"
RequireOpenedPa ne="true" SuppressHeaderP ostbacks="false "
Width="900px" >
<ContentTemplat e>
<asp:Repeater ID="Repeater1" runat="server"
DataSourceID="S qlDataSource1">
<ItemTemplate >
<asp:CheckBox ID="ManifestChe ckBox"
runat="server" AutoPostBack="t rue"
Checked="True" OnCheckedChange d =
"ManifestCheckB ox_CheckedChang ed" />
</ItemTemplate>
</asp:Repeater>
</ContentTemplate >
</ajaxToolkit:Acc ordion>
<asp:SqlDataSou rce ID="SqlDataSour ce1" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:XXXXXXXXXXXX XXX %>"
SelectCommand=" SELECT * FROM [tblPICManifest] WHERE
([PICBatchID] =
@PICBatchID)">
<SelectParamete rs>
<asp:ControlPar ameter ControlID="sele ctedLbl"
DefaultValue=""
Name="PICBatchI D"
PropertyName="T ext" Type="Int32" />
</SelectParameter s>
</asp:SqlDataSour ce>
=============== =======aspx.cs
code=========== =============== ==============
protected void Page_Load(objec t sender, EventArgs e)
{
if (!IsPostBack)
else
{
............
}
protected void ManifestCheckBo x_CheckedChange d(object sender,
EventArgs e)
{
Control ctrSender = (Control)sender ;
string controlID = ctrSender.Clien tID;
............

}
--
ciao
Vittorix

Dec 20 '07 #2
"Scott M." <sm**@nospam.no spamwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
Probably a good idea not to start with "riepilogat e". You scared me away
from reading the rest of your post after seeing that!
The OP is obviously Italian, and by "riepilogat e" he means "recapitulate". ..
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Dec 20 '07 #3
Scott M. wrote:
Probably a good idea not to start with "riepilogat e".
sorry :)
Now can I get some help?

--
ciao
Vittorix
Dec 20 '07 #4
Mark Rae [MVP] wrote:
>Probably a good idea not to start with "riepilogat e". You scared me
away from reading the rest of your post after seeing that!

The OP is obviously Italian, and by "riepilogat e" he means
"recapitulate". ..
you got me :-D

--
ciao
Vittorix
Dec 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1928
by: Sky Sigal | last post by:
I coming unglued... really need some help. 3 days chasing my tail all over MSDN's documentation ...and I'm getting nowhere. I have a problem with TypeConverters and storage of expandableobjects to attributes in tags (think Style tag -> Style object). The problem that I am chasing is: Html side:
2
4713
by: clinttoris | last post by:
Hello, If someone could help me it would be appreciated as I am not having much luck. I'm struggling with my asp code and have some questions relating to asp and oracle database. First question. I have a web survey that I am working on and have successfully dynamically taken the info from a database, displayed it on the screen and then taken the users answers and inserted them into a
1
5889
by: Margaret101 | last post by:
Hi!! I'm trying to do some simple paging with goes to the database once and then shows and hides the results to display 3 items at a time. It uses a next and previous button. The next button works but the previous button displays all previous results and not just the last three results. What i need it to do is hide all results and show the last three This is my code and i really do need a little help pleaaaaaase!! <SCRIPT> var...
22
9222
by: SQACSharp | last post by:
I'm trying to get the control name of an editbox in another window. The following code set the value "MyPassword" in the password EditBox but it fail to return the control name of the EditBox. I'm sure the problem is the way i'm using the sendmessage API, the return string and the lParam return 0....is anybody have a clue? any sendmessage api expert here? public static extern Int32 FindWindow(String lpClassName,String
0
1188
by: tyson verdez | last post by:
imma beginner and my iinstructur doesnt do hands on wit us we learn out of a lecture but it doesnt help some1 please help me 1. (The MyTriangle class) Write a class/program named MyTriangle. Within the class, define two methods as follows. /** Returns true if the sum of ANY two sides is greater than the third side. Otherwise, returns false. */ public static boolean isValid(double side1, double side2, double side3)
3
1088
by: ummaria | last post by:
Hello I have a drop down list that retrieves data from a data base. Under that I have a textbox that I want to retrieve information also from the database depending on the previously selected item. For example, if i select "Computer" from the dropdown list, the textbox should display "PC". This is part of my graduation project and I really need help. Thanks
1
3182
lolixpop
by: lolixpop | last post by:
Hi everybody thanks for reading! i have a few actionscript questions that i really need help on...any help would be greatly appreciated! Okay so i came upon this tutorial: http://www.kirupa.com/developer/mx/fadegrid2.htm It looks awesome! I absolutly love it but i'm not quite sure how to apply it to my banner. My banner consists of 3 movie clips that moves...like instead of a still image like the one shown on the tutorial there are several text...
0
979
by: Vittorix | last post by:
Hi everybody. I've an Ajax Accordion that gets data from a database, in its content there is a Repeater that gets data from another table, depending which header is selected in the accordion. in the Repeater I've a checkbox (one for eache repeated field) checked by default that I select/deselect triggering the method OnCheckedChanged which updates the record in the table connected to the repeater.
0
8049
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7985
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8322
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6803
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3953
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4013
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2461
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.