Click here to Skip to main content
15,891,864 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ComponentArt:Dialog datalist checkbox validation Pin
gavindon15-Apr-11 3:45
gavindon15-Apr-11 3:45 
QuestionAuto update in Client's machine Pin
Ramkumar_S14-Apr-11 21:19
Ramkumar_S14-Apr-11 21:19 
AnswerRe: Auto update in Client's machine Pin
Ravi Sant14-Apr-11 23:30
Ravi Sant14-Apr-11 23:30 
AnswerNeed some clarification Pin
David Mujica15-Apr-11 3:17
David Mujica15-Apr-11 3:17 
GeneralRe: Need some clarification Pin
Not Active15-Apr-11 6:51
mentorNot Active15-Apr-11 6:51 
Questioncheck box in datalist Pin
hurera111114-Apr-11 20:29
hurera111114-Apr-11 20:29 
AnswerRe: check box in datalist Pin
m@dhu15-Apr-11 2:49
m@dhu15-Apr-11 2:49 
GeneralRe: check box in datalist [modified] Pin
hurera111117-Apr-11 18:01
hurera111117-Apr-11 18:01 
foreach (DataListItem dli in DataList1.Items)
{
CheckBox check = (CheckBox)dli.FindControl("ChkLGRole");
if (cbox.Checked == true)
{
if (cbox.Text == "i am not done")
{
//code to disable..
}
else
{
//Redirect based on other options.

}

}

The checkbox is in Component Art DIalog Datalist. and showing in datalist dynamically through the code, i want to disable the 1st checkbox if other is getting selected and if 1st one is getting selected the 1st one gets disable automatically. how is this possible please help me.

code is this

<ComponentArt:Dialog ID="caDropDownDialog" runat="server"
Alignment="MiddleCentre" AlignmentElement="<%#lblSelectedValues.ClientID %>"
AllowDrag="true" AllowResize="false" AnimationDuration="1000"
CloseTransition="Fade" Modal="false"
RenderOverWindowedObjects="true" ShowTransition="Fade" AnimationType="Outline"
BackColor="AliceBlue" style="top: 92px; left: 14px">
<Header>
Choose the values from the list below:
</Header>
<Content>
<asp:Panel ID="panSelectArea" runat="server" Width="500px" CssClass="rowGap">
<asp:DataList ID="dlstSubspecialities" runat="server" RepeatColumns="3">
<ItemTemplate>
<table class="tablesize">
<tr>
<td class="input">
<asp:CheckBox ID="chktop" runat="server" OnCheckedChanged="chktop_CheckedChanged" CausesValidation="False" />

</td>
<td>
<%# ((ListItem)Container.DataItem).Text %>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</asp:Panel>
<div style="Height:25px; width:520px; background:#3F3F3F; display:block; paddingBlush | :O ; margin:20px -5px 0 -5px;" > </div>
</Content>
<Footer><center>
<%--<asp:Label ID="lblSelected" runat="server" Font-Bold="false" ></asp:Label>--%>
<%--<asp:CheckBox ID="cbuncheckall" runat ="server" AutoPostBack ="true" Text="Unselect All" />--%>
<asp:Button ID="btnOK" runat="server" CausesValidation="false" Width=55px
CssClass="Button" OnClientClick="caDropDownDialog.IsShowing=false;$.loading({mask: true, effect: 'ellipsis update'});" Text="OK" />
<asp:Button ID="btnCancel" runat="server" CausesValidation="false" Width=55px
CssClass="Button" OnClientClick="caDropDownDialog.Close();$.loading({mask: true, effect: 'ellipsis update'});" Text="Cancel" />

</center>
</Footer>
</ComponentArt:Dialog>


protected void chktop_CheckedChanged(object sender, EventArgs e)
{

BindData();

}

modified on Monday, April 18, 2011 12:14 AM

GeneralRe: check box in datalist Pin
m@dhu20-Apr-11 23:43
m@dhu20-Apr-11 23:43 
GeneralRe: check box in datalist Pin
Prasanta_Prince21-Apr-11 2:44
Prasanta_Prince21-Apr-11 2:44 
QuestionHelp in ASP.NET web service Pin
akosidandan14-Apr-11 19:49
akosidandan14-Apr-11 19:49 
AnswerRe: Help in ASP.NET web service Pin
Pravin Patil, Mumbai15-Apr-11 0:40
Pravin Patil, Mumbai15-Apr-11 0:40 
GeneralRe: Help in ASP.NET web service Pin
akosidandan15-Apr-11 0:59
akosidandan15-Apr-11 0:59 
GeneralRe: Help in ASP.NET web service Pin
akosidandan15-Apr-11 17:31
akosidandan15-Apr-11 17:31 
AnswerRe: Help in ASP.NET web service Pin
Prasanta_Prince15-Apr-11 2:37
Prasanta_Prince15-Apr-11 2:37 
GeneralRe: Help in ASP.NET web service Pin
akosidandan15-Apr-11 17:31
akosidandan15-Apr-11 17:31 
QuestionPage Life Cycle Pin
CodingLover14-Apr-11 18:18
CodingLover14-Apr-11 18:18 
AnswerRe: Page Life Cycle Pin
Ravi Sant14-Apr-11 23:36
Ravi Sant14-Apr-11 23:36 
GeneralRe: Page Life Cycle Pin
gavindon15-Apr-11 3:26
gavindon15-Apr-11 3:26 
AnswerRe: Page Life Cycle Pin
Pravin Patil, Mumbai15-Apr-11 0:38
Pravin Patil, Mumbai15-Apr-11 0:38 
GeneralRe: Page Life Cycle Pin
Prasanta_Prince15-Apr-11 3:02
Prasanta_Prince15-Apr-11 3:02 
AnswerRe: Page Life Cycle Pin
TweakBird15-Apr-11 18:02
TweakBird15-Apr-11 18:02 
QuestionASP .NET 4.0 (C#) - Access 2007 Table Relationships and DataGrid Pin
Matt U.14-Apr-11 11:06
Matt U.14-Apr-11 11:06 
Questiontop% filter in ssrs report Pin
gavindon14-Apr-11 9:13
gavindon14-Apr-11 9:13 
QuestionCounting nodes in treeview Pin
sarang_k13-Apr-11 23:48
sarang_k13-Apr-11 23:48 

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.