Click here to Skip to main content
15,895,781 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTotal Days of Month Pin
Socheat.Net2-Oct-08 17:28
Socheat.Net2-Oct-08 17:28 
AnswerRe: Total Days of Month Pin
Brij2-Oct-08 18:12
mentorBrij2-Oct-08 18:12 
GeneralRe: Total Days of Month Pin
Socheat.Net2-Oct-08 18:36
Socheat.Net2-Oct-08 18:36 
Questionfind checkbox in a nested controls(Panel -> DataList) Pin
Albert832-Oct-08 14:16
Albert832-Oct-08 14:16 
AnswerRe: find checkbox in a nested controls(Panel -> DataList) Pin
AlexeiXX32-Oct-08 16:24
AlexeiXX32-Oct-08 16:24 
QuestionRe: find checkbox in a nested controls(Panel -> DataList) Pin
Albert832-Oct-08 17:24
Albert832-Oct-08 17:24 
AnswerRe: find checkbox in a nested controls(Panel -> DataList) Pin
AlexeiXX33-Oct-08 4:21
AlexeiXX33-Oct-08 4:21 
QuestionRe: find checkbox in a nested controls(Panel -> DataList) Pin
Albert833-Oct-08 7:02
Albert833-Oct-08 7:02 
Thanks a lot. With the index it goes through the checkboxes that I have and not through the datalist items.

For example using your suggestion: this.inboxDL.Items[1]

CheckBox chkBox = (CheckBox)this.inboxDL.Items[1].FindControl("chkMarkerInbox");
Response.Write("check");
if (chkBox.Checked == true)
{
ddlTest.SelectedItem.Text = "works";
}

Only when I click on checkbox with index[1] ddlTest will change to "works".
But I have 5 more checkboxes which are not changing the state of ddlTest to "works".
So it goes through the checkboxes and not the datalist items as I understand.
Is it so?

But I made it work as follows. This way I assume when it encounter non checkbox controls it does nothing and when it does with Findcontrol it stores true/false in the isDeleted variable.
That's how I think the code works.

bool isDeleted = false;

foreach (DataListItem anItem in inboxDL.Items)
{
isDeleted =
((CheckBox)anItem.FindControl("chkMarkerInbox")).Checked;
if (isDeleted)
{
lbDel.Enabled = true;
ddlTest.SelectedItem.Text = "works";
}
}
Thanks again.
Questionplace a link in datalist to an image Pin
Meax2-Oct-08 12:07
Meax2-Oct-08 12:07 
AnswerRe: place a link in datalist to an image Pin
AlexeiXX32-Oct-08 16:32
AlexeiXX32-Oct-08 16:32 
QuestionWhy some business objects under App_code directory do not showing up when I place an ObjectDataSource control onto form? Pin
JUNEYT2-Oct-08 11:07
JUNEYT2-Oct-08 11:07 
QuestionBoth DataSource and DataSourceID are defined on 'Gridview' !! Pin
kindman_nb2-Oct-08 8:43
kindman_nb2-Oct-08 8:43 
AnswerRe: Both DataSource and DataSourceID are defined on 'Gridview' !! Pin
Adam °Wimsatt2-Oct-08 9:38
Adam °Wimsatt2-Oct-08 9:38 
GeneralRe: Both DataSource and DataSourceID are defined on 'Gridview' !! Pin
kindman_nb2-Oct-08 16:59
kindman_nb2-Oct-08 16:59 
QuestionCommunication between dynamically added custom user controls Pin
Adam °Wimsatt2-Oct-08 7:41
Adam °Wimsatt2-Oct-08 7:41 
AnswerRe: Communication between dynamically added custom user controls Pin
Andreas X2-Oct-08 20:06
professionalAndreas X2-Oct-08 20:06 
QuestionSaving a XmlDocument in Session Pin
drew252-Oct-08 4:35
drew252-Oct-08 4:35 
AnswerRe: Saving a XmlDocument in Session Pin
ToddHileHoffer2-Oct-08 4:55
ToddHileHoffer2-Oct-08 4:55 
Questionfile copying from 1 source to multiple destination???? Pin
Piyush Vardhan Singh2-Oct-08 0:11
Piyush Vardhan Singh2-Oct-08 0:11 
AnswerRe: file copying from 1 source to multiple destination???? Pin
Ashfield2-Oct-08 0:59
Ashfield2-Oct-08 0:59 
GeneralRe: file copying from 1 source to multiple destination???? Pin
Piyush Vardhan Singh2-Oct-08 1:41
Piyush Vardhan Singh2-Oct-08 1:41 
GeneralRe: file copying from 1 source to multiple destination???? Pin
Ashfield2-Oct-08 3:44
Ashfield2-Oct-08 3:44 
Question[Message Deleted] Pin
udhuman1-Oct-08 23:29
udhuman1-Oct-08 23:29 
AnswerRe: WDDX Format Pin
Ashfield2-Oct-08 1:01
Ashfield2-Oct-08 1:01 
GeneralRe: WDDX Format Pin
udhuman2-Oct-08 21:50
udhuman2-Oct-08 21:50 

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.